public class RecordItemCollection extends ItemCollection
RecordItem
objects of a Cumulus catalog. Every time you get an ItemCollection for the table Cumulus.TABLE_NAME_ASSET_RECORDS
the CumulusJavaClasses will return an instance of this class. Most of the functionality is available through methods of the
base class except for the category assignment which is added functionality for asset records.Modifier and Type | Method and Description |
---|---|
RecordItemCollection |
clone()
Create a clone of this collection.
|
Item |
createItem()
Create a new RecordItem object.
|
Item |
createItem(java.lang.String permissionTemplate)
Create a new RecordItem object.
|
RecordItem |
createRecordItem()
Create a new RecordItem object.
|
RecordItem |
createRecordItem(java.lang.String permissionTemplate)
Create a new RecordItem object.
|
int |
find(java.util.Set<java.lang.Integer> categoryIDs,
java.util.EnumSet<FindFlag> flags,
CombineMode combine)
Find record items using assigned categories.
|
int |
find(java.util.Set<java.lang.Integer> categoryIDs,
java.util.EnumSet<FindFlag> flags,
CombineMode combine,
boolean logSearchStatistic)
Find record items using assigned categories.
|
Item |
getItemByID(int itemID)
Return a RecordItem specified by ID.
|
RecordItem |
getRecordItemByID(int recordID)
Return a RecordItem specified by ID.
|
addCatalogingListener, addCollectionListener, addFilter, addFilter, addGlobalCatalogingListener, addGlobalCollectionListener, addItemByID, addItemsByID, catalogAsset, catalogAsset, catalogAsset, catalogAssets, catalogAssets, catalogAssets, close, equals, find, find, find, find, findAll, getCatalog, getCumulusSession, getItemCount, getItemIDs, getItemPosition, getItemTotalCount, getLayout, getMultiSorting, getSortDirection, getSorting, getTableName, hashCode, hasItem, iterator, matchIDs, moveItem, moveItemByID, removeAllItems, removeCatalogingListener, removeCollectionListener, removeFilter, removeGlobalCatalogingListener, removeGlobalCollectionListener, removeItemsByID, setFreesorted, setMultiSorting, setSortDirection, setSorting, updateItems, updateItems, updateWantedFields, updateWantedFields
public RecordItemCollection clone()
ItemCollection
clone
in class ItemCollection
public Item createItem() throws PermissionDeniedException, CumulusException
Item.save()
method to save thecreateItem
in class ItemCollection
PermissionDeniedException
- if the current user does not have the necessary permissions for this operation.CumulusException
- on other errors.Item.save()
public Item createItem(java.lang.String permissionTemplate) throws PermissionDeniedException, CumulusException
Item.save()
method to save thecreateItem
in class ItemCollection
permissionTemplate
- the permission template to apply to the new itemPermissionDeniedException
- if the current user does not have the necessary permissions for this operation.CumulusException
- on other errors.Item.save()
public RecordItem createRecordItem() throws PermissionDeniedException, CumulusException
Item.save()
method to save thePermissionDeniedException
- if the current user does not have the necessary permissions for this operation.CumulusException
- on other errors.Item.save()
public RecordItem createRecordItem(java.lang.String permissionTemplate) throws PermissionDeniedException, CumulusException
Item.save()
method to save thepermissionTemplate
- the permission template to apply to the new itemPermissionDeniedException
- if the current user does not have the necessary permissions for this operation.CumulusException
- on other errors.Item.save()
public Item getItemByID(int itemID) throws ItemNotFoundException, CumulusException
getItemByID
in class ItemCollection
itemID
- The ID of the item to be returned.ItemNotFoundException
- if the collection does not contain the given item.CumulusException
- on other errors.ItemCollection.hasItem(int)
,
ItemCollection.addItemByID(int)
,
ItemCollection.addItemsByID(java.util.List)
public RecordItem getRecordItemByID(int recordID) throws ItemNotFoundException, CumulusException
recordID
- The ID of the item to be returned.ItemNotFoundException
- if the collection does not contain the given item.CumulusException
- on other errors.ItemCollection.hasItem(int)
,
ItemCollection.addItemByID(int)
,
ItemCollection.addItemsByID(java.util.List)
public int find(java.util.Set<java.lang.Integer> categoryIDs, java.util.EnumSet<FindFlag> flags, CombineMode combine) throws CumulusException
categoryIDs
- The IDs of the categories to search by.flags
- The flags that control the way the categories are searched.combine
- specifies how to combine the result of this search with the existing contents of the collection.: CombineMode.FIND_NEW
: the search replaces the current contents of the collection.CombineMode.FIND_NARROW
: the search result will only leave the items in the collection that match the
query.CombineMode.FIND_BROADEN
: the search result will be added to the current
collection contents.CumulusException
- on errorpublic int find(java.util.Set<java.lang.Integer> categoryIDs, java.util.EnumSet<FindFlag> flags, CombineMode combine, boolean logSearchStatistic) throws CumulusException
categoryIDs
- The IDs of the categories to search by.flags
- The flags that control the way the categories are searched.combine
- specifies how to combine the result of this search with the existing contents of the collection.: CombineMode.FIND_NEW
: the search replaces the current contents of the collection.CombineMode.FIND_NARROW
: the search result will only leave the items in the collection that match the
query.CombineMode.FIND_BROADEN
: the search result will be added to the current
collection contents.logSearchStatistic
- specifies whether the query result has to be logged in the search statisticCumulusException
- on errorwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.