Package de.hybris.platform.catalog.daos
Interface CatalogVersionDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
BackofficeCatalogVersionDao,CatalogVersionMockDao,DefaultCatalogVersionDao
The
CatalogVersionModel DAO.- Spring Bean ID:
- catalogVersionDao
-
Method Summary
Modifier and TypeMethodDescriptionReturns allCatalogVersionModels defined in the system.findAllCategoriesCount(CatalogVersionModel catalogVersion) Returns the count ofCategoryModels which are assigned to thisCatalogVersionModel.findAllKeywordsCount(CatalogVersionModel catalogVersion) Returns the count ofKeywordModels which are assigned to thisCatalogVersionModel.findAllMediasCount(CatalogVersionModel catalogVersion) Returns the count ofMediaModels which are assigned to thisCatalogVersionModel.findAllProductsCount(CatalogVersionModel catalogVersion) Returns the count ofProductModels which are assigned to thisCatalogVersionModel.findCatalogVersions(String catalogId, String version) findDuplicatedIds(CatalogVersionModel catalogVersion) Returns collection of duplicated identifiers (and their count) which are assigned to thisCatalogVersionModelfindReadableCatalogVersions(PrincipalModel principal) Returns allCatalogVersionModels that are readable for the given principal.findWritableCatalogVersions(PrincipalModel principal) Returns allCatalogVersionModels which are writable for the given principal.
-
Method Details
-
findCatalogVersions
- Returns:
- a collection with the found CatalogVersionModel or empty collection is nothing was found.
-
findWritableCatalogVersions
Returns allCatalogVersionModels which are writable for the given principal. The method takes the group membership into account.- Parameters:
principal- givenPrincipalModel
-
findReadableCatalogVersions
Returns allCatalogVersionModels that are readable for the given principal. The method takes the group membership into account.- Parameters:
principal- givenPrincipalModel
-
findAllCatalogVersions
Collection<CatalogVersionModel> findAllCatalogVersions()Returns allCatalogVersionModels defined in the system.- Returns:
- an empty collection if no catalog version was found
-
findAllCategoriesCount
Returns the count ofCategoryModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
CategoryModels which are assigned to thisCatalogVersionModel
-
findAllProductsCount
Returns the count ofProductModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
CategoryModels which are assigned to thisCatalogVersionModel
-
findAllMediasCount
Returns the count ofMediaModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
MediaModels which are assigned to thisCatalogVersionModel
-
findAllKeywordsCount
Returns the count ofKeywordModels which are assigned to thisCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
KeywordModels which are assigned to thisCatalogVersionModel
-
findDuplicatedIds
Returns collection of duplicated identifiers (and their count) which are assigned to thisCatalogVersionModel- Parameters:
catalogVersion-- Returns:
- collection of duplicated item identifiers data objects
-