Package de.hybris.platform.cockpit.daos
Interface CockpitObjectAbstractCollectionDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCockpitObjectAbstractCollectionDao
-
Method Summary
Modifier and TypeMethodDescriptionbooleancollectionContains(CockpitObjectAbstractCollectionModel collection, ItemModel item) Returns true if the collection contains at least one element with the given item, false otherwise.Returns all collections that belongs to the specified user.findElements(CockpitObjectAbstractCollectionModel collection, int start, int count) Finds elements of the given object collection.findElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Returns all elements of the collection that contain given item.Gets the global collections that is collections that have no user set.findReadableCollectionsByUser(UserModel userModel) Gets the readable collections for user.findSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Returns all special collections af the specified type that belongs to the specified type.Returns all special collections af any type that belongs to the specified user.findWritableCollectionsByUser(UserModel userModel) Gets the writable collections for user.Deprecated.intgetElementCount(CockpitObjectAbstractCollectionModel collection) Return total count of elements in the collection.getElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Deprecated.since 6.3, usefindElementsContainingItem(CockpitObjectAbstractCollectionModel, ItemModel)insteadDeprecated.since 6.3, usefindGlobalCollections()insteadgetReadableCollectionsForUser(UserModel userModel) Deprecated.since 6.3, usefindReadableCollectionsByUser(UserModel)insteadgetSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Deprecated.since 6.3, usefindSpecialCollections(UserModel, CockpitSpecialCollectionType)insteadDeprecated.since 6.3, usefindSpecialCollectionsByUser(UserModel)insteadgetWritableCollectionsForUser(UserModel userModel) Deprecated.since 6.3, usefindWritableCollectionsByUser(UserModel)instead
-
Method Details
-
findElements
List<ObjectCollectionItemReferenceModel> findElements(CockpitObjectAbstractCollectionModel collection, int start, int count) Finds elements of the given object collection.- Parameters:
collection- the object collection to search elements ofstart- starting index of the searchcount- max. count of elements to be found- Returns:
- elements of the given object collection according to given offset and count
-
getElementCount
Return total count of elements in the collection.- Returns:
- total count of elements in the collection
-
getElementsContainingItem
@Deprecated List<ObjectCollectionItemReferenceModel> getElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Deprecated.since 6.3, usefindElementsContainingItem(CockpitObjectAbstractCollectionModel, ItemModel)insteadReturns all elements of the collection that contain given item.- Parameters:
collection- the collection to search initem- the item to search for- Returns:
- all elements of the collection that contain given item
-
findElementsContainingItem
List<ObjectCollectionItemReferenceModel> findElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Returns all elements of the collection that contain given item.- Parameters:
collection- the collection to search initem- the item to search for- Returns:
- all elements of the collection that contain given item
-
collectionContains
Returns true if the collection contains at least one element with the given item, false otherwise.- Parameters:
collection- the collection to search initem- the item to search for- Returns:
- true if the collection contains at least one element with the given item, false otherwise
-
getCollectionsByUser
Deprecated.since 6.3, usefindCollectionsByUser(UserModel)insteadReturns all collections that belongs to the specified user.- Parameters:
user- the user we look collections- Returns:
- the collections by user
-
findCollectionsByUser
Returns all collections that belongs to the specified user.- Parameters:
user- the user we look collections- Returns:
- the collections by user
-
getSpecialCollectionsByUser
Deprecated.since 6.3, usefindSpecialCollectionsByUser(UserModel)insteadReturns all special collections af any type that belongs to the specified user.- Parameters:
user- the user we look collections- Returns:
- the special collections by user
-
findSpecialCollectionsByUser
Returns all special collections af any type that belongs to the specified user.- Parameters:
user- the user we look collections- Returns:
- the special collections by user
-
getSpecialCollections
@Deprecated List<CockpitObjectSpecialCollectionModel> getSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Deprecated.since 6.3, usefindSpecialCollections(UserModel, CockpitSpecialCollectionType)insteadReturns all special collections af the specified type that belongs to the specified type.- Parameters:
user- the user we look collectionscollectionType- the collection type we look for- Returns:
- the special collections
-
findSpecialCollections
List<CockpitObjectSpecialCollectionModel> findSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Returns all special collections af the specified type that belongs to the specified type.- Parameters:
user- the user we look collectionscollectionType- the collection type we look for- Returns:
- the special collections
-
getGlobalCollections
Deprecated.since 6.3, usefindGlobalCollections()insteadGets the global collections that is collections that have no user set.- Returns:
- the global collections
-
findGlobalCollections
List<CockpitObjectAbstractCollectionModel> findGlobalCollections()Gets the global collections that is collections that have no user set.- Returns:
- the global collections
-
getReadableCollectionsForUser
Deprecated.since 6.3, usefindReadableCollectionsByUser(UserModel)insteadGets the readable collections for user.- Parameters:
userModel- the user model- Returns:
- the readable collections for user
-
findReadableCollectionsByUser
Gets the readable collections for user.- Parameters:
userModel- the user model- Returns:
- the readable collections for user
-
getWritableCollectionsForUser
Deprecated.since 6.3, usefindWritableCollectionsByUser(UserModel)insteadGets the writable collections for user.- Parameters:
userModel- the user model- Returns:
- the writable collections for user
-
findWritableCollectionsByUser
Gets the writable collections for user.- Parameters:
userModel- the user model- Returns:
- the writable collections for user
-
findCollectionsByUser(UserModel)instead