Class DefaultCockpitObjectAbstractCollectionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CockpitObjectAbstractCollectionModel>
de.hybris.platform.cockpit.daos.impl.DefaultCockpitObjectAbstractCollectionDao
- All Implemented Interfaces:
CockpitObjectAbstractCollectionDao,Dao,GenericDao<CockpitObjectAbstractCollectionModel>
public class DefaultCockpitObjectAbstractCollectionDao
extends DefaultGenericDao<CockpitObjectAbstractCollectionModel>
implements CockpitObjectAbstractCollectionDao
Default implementation of
CockpitObjectAbstractCollectionDao-
Constructor Summary
ConstructorsConstructorDescription -
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.protected SearchResult<ObjectCollectionItemReferenceModel>findElementsInternal(CockpitObjectAbstractCollectionModel collection, int start, int count, boolean needTotal) 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.since 6.3intgetElementCount(CockpitObjectAbstractCollectionModel collection) Return total count of elements in the collection.getElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Deprecated.since 6.3getElementsContainingItemInternal(CockpitObjectAbstractCollectionModel collection, ItemModel item, int count) Deprecated.since 6.3getReadableCollectionsForUser(UserModel userModel) Deprecated.since 6.3getSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Deprecated.since 6.3Deprecated.since 6.3getWritableCollectionsForUser(UserModel userModel) Deprecated.since 6.3Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultCockpitObjectAbstractCollectionDao
public DefaultCockpitObjectAbstractCollectionDao() -
DefaultCockpitObjectAbstractCollectionDao
-
-
Method Details
-
findElements
public List<ObjectCollectionItemReferenceModel> findElements(CockpitObjectAbstractCollectionModel collection, int start, int count) Description copied from interface:CockpitObjectAbstractCollectionDaoFinds elements of the given object collection.- Specified by:
findElementsin interfaceCockpitObjectAbstractCollectionDao- 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
Description copied from interface:CockpitObjectAbstractCollectionDaoReturn total count of elements in the collection.- Specified by:
getElementCountin interfaceCockpitObjectAbstractCollectionDao- Returns:
- total count of elements in the collection
-
getElementsContainingItem
@Deprecated public List<ObjectCollectionItemReferenceModel> getElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all elements of the collection that contain given item.- Specified by:
getElementsContainingItemin interfaceCockpitObjectAbstractCollectionDao- Parameters:
collection- the collection to search initem- the item to search for- Returns:
- all elements of the collection that contain given item
-
findElementsContainingItem
public List<ObjectCollectionItemReferenceModel> findElementsContainingItem(CockpitObjectAbstractCollectionModel collection, ItemModel item) Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all elements of the collection that contain given item.- Specified by:
findElementsContainingItemin interfaceCockpitObjectAbstractCollectionDao- Parameters:
collection- the collection to search initem- the item to search for- Returns:
- all elements of the collection that contain given item
-
collectionContains
Description copied from interface:CockpitObjectAbstractCollectionDaoReturns true if the collection contains at least one element with the given item, false otherwise.- Specified by:
collectionContainsin interfaceCockpitObjectAbstractCollectionDao- 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
-
findElementsInternal
protected SearchResult<ObjectCollectionItemReferenceModel> findElementsInternal(CockpitObjectAbstractCollectionModel collection, int start, int count, boolean needTotal) -
getElementsContainingItemInternal
public SearchResult<ObjectCollectionItemReferenceModel> getElementsContainingItemInternal(CockpitObjectAbstractCollectionModel collection, ItemModel item, int count) -
getCollectionsByUser
Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all collections that belongs to the specified user.- Specified by:
getCollectionsByUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
user- the user we look collections- Returns:
- the collections by user
-
findCollectionsByUser
Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all collections that belongs to the specified user.- Specified by:
findCollectionsByUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
user- the user we look collections- Returns:
- the collections by user
-
getReadableCollectionsForUser
@Deprecated public List<CockpitObjectCollectionModel> getReadableCollectionsForUser(UserModel userModel) Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoGets the readable collections for user.- Specified by:
getReadableCollectionsForUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
userModel- the user model- Returns:
- the readable collections for user
-
findReadableCollectionsByUser
Description copied from interface:CockpitObjectAbstractCollectionDaoGets the readable collections for user.- Specified by:
findReadableCollectionsByUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
userModel- the user model- Returns:
- the readable collections for user
-
getWritableCollectionsForUser
@Deprecated public List<CockpitObjectCollectionModel> getWritableCollectionsForUser(UserModel userModel) Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoGets the writable collections for user.- Specified by:
getWritableCollectionsForUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
userModel- the user model- Returns:
- the writable collections for user
-
findWritableCollectionsByUser
Description copied from interface:CockpitObjectAbstractCollectionDaoGets the writable collections for user.- Specified by:
findWritableCollectionsByUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
userModel- the user model- Returns:
- the writable collections for user
-
getSpecialCollectionsByUser
@Deprecated public List<CockpitObjectSpecialCollectionModel> getSpecialCollectionsByUser(UserModel user) Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all special collections af any type that belongs to the specified user.- Specified by:
getSpecialCollectionsByUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
user- the user we look collections- Returns:
- the special collections by user
-
findSpecialCollectionsByUser
Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all special collections af any type that belongs to the specified user.- Specified by:
findSpecialCollectionsByUserin interfaceCockpitObjectAbstractCollectionDao- Parameters:
user- the user we look collections- Returns:
- the special collections by user
-
getSpecialCollections
@Deprecated public List<CockpitObjectSpecialCollectionModel> getSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all special collections af the specified type that belongs to the specified type.- Specified by:
getSpecialCollectionsin interfaceCockpitObjectAbstractCollectionDao- Parameters:
user- the user we look collectionscollectionType- the collection type we look for- Returns:
- the special collections
-
findSpecialCollections
public List<CockpitObjectSpecialCollectionModel> findSpecialCollections(UserModel user, CockpitSpecialCollectionType collectionType) Description copied from interface:CockpitObjectAbstractCollectionDaoReturns all special collections af the specified type that belongs to the specified type.- Specified by:
findSpecialCollectionsin interfaceCockpitObjectAbstractCollectionDao- Parameters:
user- the user we look collectionscollectionType- the collection type we look for- Returns:
- the special collections
-
getGlobalCollections
Deprecated.since 6.3Description copied from interface:CockpitObjectAbstractCollectionDaoGets the global collections that is collections that have no user set.- Specified by:
getGlobalCollectionsin interfaceCockpitObjectAbstractCollectionDao- Returns:
- the global collections
-
findGlobalCollections
Description copied from interface:CockpitObjectAbstractCollectionDaoGets the global collections that is collections that have no user set.- Specified by:
findGlobalCollectionsin interfaceCockpitObjectAbstractCollectionDao- Returns:
- the global collections
-