Package de.hybris.platform.catalog.daos
Interface CatalogVersionDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
CatalogVersionMockDao,DefaultCatalogVersionDao
public interface CatalogVersionDao extends Dao
TheCatalogVersionModelDAO.- Spring Bean ID:
- catalogVersionDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<CatalogVersionModel>findAllCatalogVersions()Returns allCatalogVersionModels defined in the system.java.lang.IntegerfindAllCategoriesCount(CatalogVersionModel catalogVersion)Returns the count ofCategoryModels which are assigned to thisCatalogVersionModel.java.lang.IntegerfindAllKeywordsCount(CatalogVersionModel catalogVersion)Returns the count ofKeywordModels which are assigned to thisCatalogVersionModel.java.lang.IntegerfindAllMediasCount(CatalogVersionModel catalogVersion)Returns the count ofMediaModels which are assigned to thisCatalogVersionModel.java.lang.IntegerfindAllProductsCount(CatalogVersionModel catalogVersion)Returns the count ofProductModels 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 thisCatalogVersionModeljava.util.Collection<CatalogVersionModel>findReadableCatalogVersions(PrincipalModel principal)Returns allCatalogVersionModels that are readable for the given principal.java.util.Collection<CatalogVersionModel>findWritableCatalogVersions(PrincipalModel principal)Returns allCatalogVersionModels 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 allCatalogVersionModels 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 allCatalogVersionModels 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 allCatalogVersionModels defined in the system.- Returns:
- an empty collection if no catalog version was found
-
findAllCategoriesCount
java.lang.Integer findAllCategoriesCount(CatalogVersionModel catalogVersion)
Returns the count ofCategoryModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
CategoryModels which are assigned to thisCatalogVersionModel
-
findAllProductsCount
java.lang.Integer findAllProductsCount(CatalogVersionModel catalogVersion)
Returns the count ofProductModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
CategoryModels which are assigned to thisCatalogVersionModel
-
findAllMediasCount
java.lang.Integer findAllMediasCount(CatalogVersionModel catalogVersion)
Returns the count ofMediaModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
MediaModels which are assigned to thisCatalogVersionModel
-
findAllKeywordsCount
java.lang.Integer findAllKeywordsCount(CatalogVersionModel catalogVersion)
Returns the count ofKeywordModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
KeywordModels 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
-
-