| Modifier and Type | Method and Description |
|---|---|
void |
addItemToCollection(Item item,
CollectionItem collection)
Add an item to a collection.
|
void |
copyItem(Item item,
CollectionItem targetParent,
String path,
boolean deepCopy)
Copy an item to the given path
|
void |
createBatchContentItems(CollectionItem parent,
Set<ContentItem> contentItems)
Create new content items in a parent collection.
|
CollectionItem |
createCollection(CollectionItem parent,
CollectionItem collection)
Create a new collection.
|
CollectionItem |
createCollection(CollectionItem parent,
CollectionItem collection,
Set<Item> children)
Create a new collection with an initial set of items.
|
ContentItem |
createContent(CollectionItem parent,
ContentItem content)
Create new content item.
|
void |
createContentItems(CollectionItem parent,
Set<ContentItem> contentItems)
Create new content items in a parent collection.
|
void |
createTicket(Item item,
Ticket ticket)
Creates a ticket on an item.
|
void |
createTicket(String path,
Ticket ticket)
Creates a ticket on an item.
|
Set<CollectionItem> |
findCollectionItems(CollectionItem collectionItem)
find the set of collection items as children of the given collection item.
|
Item |
findItemByPath(String path)
Find content item by path.
|
Item |
findItemByPath(String path,
String parentUid)
Find content item by path relative to the identified parent
item.
|
Item |
findItemByUid(String uid)
Find an item with the specified uid.
|
Item |
findItemParentByPath(String path)
Find content item's parent by path.
|
Set<Item> |
findItems(ItemFilter filter)
Find items by filter.
|
SortedSet<NoteItem> |
findNotesByTriageStatus(CollectionItem collection,
TriageStatusQueryContext context)
Find note items by triage status that belong to a collection.
|
SortedSet<NoteItem> |
findNotesByTriageStatus(NoteItem note,
TriageStatusQueryContext context)
Find note items by triage status that belong to a recurring note series.
|
<STAMP_TYPE extends Stamp> |
findStampByInternalItemUid(String internalItemUid,
Class<STAMP_TYPE> clazz)
Searches for an item stamp by item uid.
|
HomeCollectionItem |
getRootItem(User user)
Get the root item for a user
|
HomeCollectionItem |
getRootItem(User user,
boolean forceReload)
Get the root item for a user
|
Ticket |
getTicket(Item item,
String key) |
Set<ContentItem> |
loadChildren(CollectionItem collection,
Date timestamp)
Load all children for collection that have been updated since a
given timestamp.
|
void |
moveItem(Item item,
CollectionItem oldParent,
CollectionItem newParent)
Move item from one collection to another
|
void |
removeBatchContentItems(CollectionItem parent,
Set<ContentItem> contentItems)
remove existing content items in a parent collection.
|
void |
removeCollection(CollectionItem collection)
Remove collection item
|
void |
removeContent(ContentItem content)
Remove content item
|
void |
removeItem(Item item)
Remove an item.
|
void |
removeItemFromCollection(Item item,
CollectionItem collection)
Remove an item from a collection.
|
void |
removeItemsFromCollection(CollectionItem collection)
Remove items from a collection.
|
void |
removeTicket(Item item,
String key)
Removes a ticket from an item.
|
void |
removeTicket(Item item,
Ticket ticket)
Removes a ticket from an item.
|
void |
updateBatchContentItems(CollectionItem parent,
Set<ContentItem> contentItems)
updates existing content items in a parent collection.
|
CollectionItem |
updateCollection(CollectionItem collection)
Update collection item
|
CollectionItem |
updateCollection(CollectionItem collection,
Set<Item> children)
Update a collection and set child items.
|
void |
updateCollectionTimestamp(CollectionItem parent) |
ContentItem |
updateContent(ContentItem content)
Update an existing content item.
|
void |
updateContentItems(CollectionItem parent,
Set<ContentItem> contentItems)
Update content items.
|
HomeCollectionItem getRootItem(User user)
user - The givern user.HomeCollectionItem getRootItem(User user, boolean forceReload)
user - The givern user.forceReload - if true, cleans hibernate session before loading.<STAMP_TYPE extends Stamp> STAMP_TYPE findStampByInternalItemUid(String internalItemUid, Class<STAMP_TYPE> clazz)
internalItemUid - item internal uidclazz - stamp typeItem findItemByUid(String uid)
uid - uid of item to findItem findItemByPath(String path)
path - The given path.Item findItemByPath(String path, String parentUid)
path - The pathe relative.parentUid - Identified parent item.Item findItemParentByPath(String path)
path - The given path.void addItemToCollection(Item item, CollectionItem collection)
item - item to add to collectioncollection - collection to add item tovoid copyItem(Item item, CollectionItem targetParent, String path, boolean deepCopy)
item - item to copytargetParent - existing source collectionpath - path to copy item todeepCopy - true for deep copy, else shallow copy will
be performedorg.osaf.cosmo.dao.hibernate.ItemNotFoundException - if parent item specified by path does not existorg.osaf.cosmo.dao.hibernate.DuplicateItemNameException - if path points to an item with the same pathvoid moveItem(Item item, CollectionItem oldParent, CollectionItem newParent)
item - item to moveoldParent - parent to remove item fromnewParent - parent to add item tovoid removeItem(Item item)
item - item to removevoid removeItemFromCollection(Item item, CollectionItem collection)
item - item to remove from collectioncollection - item to remove item fromSet<ContentItem> loadChildren(CollectionItem collection, Date timestamp)
collection - collectiontimestamp - timestampCollectionItem createCollection(CollectionItem parent, CollectionItem collection)
parent - parent of collection.collection - collection to createCollectionItem createCollection(CollectionItem parent, CollectionItem collection, Set<Item> children)
parent - parent of collection.collection - collection to createchildren - collection childrenCollectionItem updateCollection(CollectionItem collection, Set<Item> children)
collection - collection to updatechildren - children to updatevoid removeCollection(CollectionItem collection)
collection - collection item to removeCollectionItem updateCollection(CollectionItem collection)
collection - collection item to updateContentItem createContent(CollectionItem parent, ContentItem content)
parent - parent collection of content. If null, content is assumed to
live in the top-level user collectioncontent - content to createvoid createContentItems(CollectionItem parent, Set<ContentItem> contentItems)
parent - parent collection of content items.contentItems - content items to createorg.osaf.cosmo.model.CollectionLockedException - if parent CollectionItem is lockedvoid updateCollectionTimestamp(CollectionItem parent)
parent - parent collection of content items.void createBatchContentItems(CollectionItem parent, Set<ContentItem> contentItems)
parent - parent collection of content items.contentItems - content items to createorg.osaf.cosmo.model.CollectionLockedException - if parent CollectionItem is lockedvoid updateBatchContentItems(CollectionItem parent, Set<ContentItem> contentItems)
parent - parent collection of content items.contentItems - content items to updateorg.osaf.cosmo.model.CollectionLockedException - if parent CollectionItem is lockedvoid removeBatchContentItems(CollectionItem parent, Set<ContentItem> contentItems)
parent - parent collection of content items.contentItems - content items to removeorg.osaf.cosmo.model.CollectionLockedException - if parent CollectionItem is lockedvoid updateContentItems(CollectionItem parent, Set<ContentItem> contentItems)
parent - parent that new content items will be added to.contentItems - to updateorg.osaf.cosmo.model.CollectionLockedException - if parent CollectionItem is lockedContentItem updateContent(ContentItem content)
content - content item to updatevoid removeContent(ContentItem content)
content - content item to removeSet<CollectionItem> findCollectionItems(CollectionItem collectionItem)
collectionItem - parent collection itemSet<Item> findItems(ItemFilter filter)
filter - filter to use in searchSortedSet<NoteItem> findNotesByTriageStatus(CollectionItem collection, TriageStatusQueryContext context)
collection - collectioncontext - the query contextSortedSet<NoteItem> findNotesByTriageStatus(NoteItem note, TriageStatusQueryContext context)
note - recurring notecontext - the query contextvoid createTicket(Item item, Ticket ticket)
item - the item to be ticketedticket - the ticket to be savedvoid createTicket(String path, Ticket ticket)
path - the path of the item to be ticketedticket - the ticket to be savedTicket getTicket(Item item, String key)
item - the ticketed itemkey - the ticket to returnnull if the ticket does not exists. Tickets are
inherited, so if the specified item does not have the ticket
but an ancestor does, it will still be returned.void removeTicket(Item item, Ticket ticket)
item - the item to be de-ticketedticket - the ticket to removevoid removeTicket(Item item, String key)
item - the item to be de-ticketedkey - the key of the ticket to removevoid removeItemsFromCollection(CollectionItem collection)
collection - The collection contains all items which will be removed.Copyright © 2012–2018 1&1. All rights reserved.