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:CockpitObjectAbstractCollectionDao
Finds elements of the given object collection.- Specified by:
findElements
in 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:CockpitObjectAbstractCollectionDao
Return total count of elements in the collection.- Specified by:
getElementCount
in 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:CockpitObjectAbstractCollectionDao
Returns all elements of the collection that contain given item.- Specified by:
getElementsContainingItem
in 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:CockpitObjectAbstractCollectionDao
Returns all elements of the collection that contain given item.- Specified by:
findElementsContainingItem
in 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:CockpitObjectAbstractCollectionDao
Returns true if the collection contains at least one element with the given item, false otherwise.- Specified by:
collectionContains
in 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:CockpitObjectAbstractCollectionDao
Returns all collections that belongs to the specified user.- Specified by:
getCollectionsByUser
in 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:CockpitObjectAbstractCollectionDao
Returns all collections that belongs to the specified user.- Specified by:
findCollectionsByUser
in 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:CockpitObjectAbstractCollectionDao
Gets the readable collections for user.- Specified by:
getReadableCollectionsForUser
in 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:CockpitObjectAbstractCollectionDao
Gets the readable collections for user.- Specified by:
findReadableCollectionsByUser
in 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:CockpitObjectAbstractCollectionDao
Gets the writable collections for user.- Specified by:
getWritableCollectionsForUser
in 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:CockpitObjectAbstractCollectionDao
Gets the writable collections for user.- Specified by:
findWritableCollectionsByUser
in 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:CockpitObjectAbstractCollectionDao
Returns all special collections af any type that belongs to the specified user.- Specified by:
getSpecialCollectionsByUser
in 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:CockpitObjectAbstractCollectionDao
Returns all special collections af any type that belongs to the specified user.- Specified by:
findSpecialCollectionsByUser
in 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:CockpitObjectAbstractCollectionDao
Returns all special collections af the specified type that belongs to the specified type.- Specified by:
getSpecialCollections
in 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:CockpitObjectAbstractCollectionDao
Returns all special collections af the specified type that belongs to the specified type.- Specified by:
findSpecialCollections
in 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:CockpitObjectAbstractCollectionDao
Gets the global collections that is collections that have no user set.- Specified by:
getGlobalCollections
in interfaceCockpitObjectAbstractCollectionDao
- Returns:
- the global collections
-
findGlobalCollections
public java.util.List<CockpitObjectAbstractCollectionModel> findGlobalCollections()
Description copied from interface:CockpitObjectAbstractCollectionDao
Gets the global collections that is collections that have no user set.- Specified by:
findGlobalCollections
in interfaceCockpitObjectAbstractCollectionDao
- Returns:
- the global collections
-
-