Package de.hybris.platform.catalog.daos
Interface CatalogVersionDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
CatalogVersionMockDao
,DefaultCatalogVersionDao
public interface CatalogVersionDao extends Dao
TheCatalogVersionModel
DAO.- Spring Bean ID:
- catalogVersionDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<CatalogVersionModel>
findAllCatalogVersions()
Returns allCatalogVersionModel
s defined in the system.java.lang.Integer
findAllCategoriesCount(CatalogVersionModel catalogVersion)
Returns the count ofCategoryModel
s which are assigned to thisCatalogVersionModel
.java.lang.Integer
findAllKeywordsCount(CatalogVersionModel catalogVersion)
Returns the count ofKeywordModel
s which are assigned to thisCatalogVersionModel
.java.lang.Integer
findAllMediasCount(CatalogVersionModel catalogVersion)
Returns the count ofMediaModel
s which are assigned to thisCatalogVersionModel
.java.lang.Integer
findAllProductsCount(CatalogVersionModel catalogVersion)
Returns the count ofProductModel
s which are assigned to thisCatalogVersionModel
.java.util.Collection<CatalogVersionModel>
findCatalogVersions(java.lang.String catalogId, java.lang.String version)
java.util.Collection<DuplicatedItemIdentifier>
findDuplicatedIds(CatalogVersionModel catalogVersion)
Returns collection of duplicated identifiers (and their count) which are assigned to thisCatalogVersionModel
java.util.Collection<CatalogVersionModel>
findReadableCatalogVersions(PrincipalModel principal)
Returns allCatalogVersionModel
s that are readable for the given principal.java.util.Collection<CatalogVersionModel>
findWritableCatalogVersions(PrincipalModel principal)
Returns allCatalogVersionModel
s which are writable for the given principal.
-
-
-
Method Detail
-
findCatalogVersions
java.util.Collection<CatalogVersionModel> findCatalogVersions(java.lang.String catalogId, java.lang.String version)
- Returns:
- a collection with the found CatalogVersionModel or empty collection is nothing was found.
-
findWritableCatalogVersions
java.util.Collection<CatalogVersionModel> findWritableCatalogVersions(PrincipalModel principal)
Returns allCatalogVersionModel
s which are writable for the given principal. The method takes the group membership into account.- Parameters:
principal
- givenPrincipalModel
-
findReadableCatalogVersions
java.util.Collection<CatalogVersionModel> findReadableCatalogVersions(PrincipalModel principal)
Returns allCatalogVersionModel
s that are readable for the given principal. The method takes the group membership into account.- Parameters:
principal
- givenPrincipalModel
-
findAllCatalogVersions
java.util.Collection<CatalogVersionModel> findAllCatalogVersions()
Returns allCatalogVersionModel
s defined in the system.- Returns:
- an empty collection if no catalog version was found
-
findAllCategoriesCount
java.lang.Integer findAllCategoriesCount(CatalogVersionModel catalogVersion)
Returns the count ofCategoryModel
s which are assigned to thisCatalogVersionModel
.- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
CategoryModel
s which are assigned to thisCatalogVersionModel
-
findAllProductsCount
java.lang.Integer findAllProductsCount(CatalogVersionModel catalogVersion)
Returns the count ofProductModel
s which are assigned to thisCatalogVersionModel
.- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
CategoryModel
s which are assigned to thisCatalogVersionModel
-
findAllMediasCount
java.lang.Integer findAllMediasCount(CatalogVersionModel catalogVersion)
Returns the count ofMediaModel
s which are assigned to thisCatalogVersionModel
.- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
MediaModel
s which are assigned to thisCatalogVersionModel
-
findAllKeywordsCount
java.lang.Integer findAllKeywordsCount(CatalogVersionModel catalogVersion)
Returns the count ofKeywordModel
s which are assigned to thisCatalogVersionModel
.- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
KeywordModel
s which are assigned to thisCatalogVersionModel
-
findDuplicatedIds
java.util.Collection<DuplicatedItemIdentifier> findDuplicatedIds(CatalogVersionModel catalogVersion)
Returns collection of duplicated identifiers (and their count) which are assigned to thisCatalogVersionModel
- Parameters:
catalogVersion
-- Returns:
- collection of duplicated item identifiers data objects
-
-