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 ofCockpitObjectAbstractCollectionDao
-
-
Constructor Summary
Constructors Constructor Description DefaultCockpitObjectAbstractCollectionDao()DefaultCockpitObjectAbstractCollectionDao(java.lang.String typeCode)
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
findElements
public java.util.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
public int getElementCount(CockpitObjectAbstractCollectionModel collection)
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 java.util.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 java.util.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
public boolean collectionContains(CockpitObjectAbstractCollectionModel collection, ItemModel item)
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 public java.util.List<CockpitObjectCollectionModel> getCollectionsByUser(UserModel user)
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
public java.util.List<CockpitObjectCollectionModel> findCollectionsByUser(UserModel user)
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 java.util.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
public java.util.List<CockpitObjectCollectionModel> findReadableCollectionsByUser(UserModel userModel)
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 java.util.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
public java.util.List<CockpitObjectCollectionModel> findWritableCollectionsByUser(UserModel userModel)
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 java.util.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
public java.util.List<CockpitObjectSpecialCollectionModel> findSpecialCollectionsByUser(UserModel user)
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 java.util.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 java.util.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 public java.util.List<CockpitObjectAbstractCollectionModel> 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
public java.util.List<CockpitObjectAbstractCollectionModel> 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
-
-