Package de.hybris.platform.catalog
Class CatalogVersionMockDao
java.lang.Object
de.hybris.platform.catalog.CatalogVersionMockDao
- All Implemented Interfaces:
CatalogVersionDao,Dao
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
CATALOG_ID
- See Also:
-
CATALOGVERSION_ONE
- See Also:
-
CATALOGVERSION_TWO
- See Also:
-
CATALOGVERSION_DOESNOTEXIST
- See Also:
-
-
Constructor Details
-
CatalogVersionMockDao
public CatalogVersionMockDao()
-
-
Method Details
-
findCatalogVersions
Description copied from interface:CatalogVersionDao- Specified by:
findCatalogVersionsin interfaceCatalogVersionDao- Returns:
- a collection with the found CatalogVersionModel or empty collection is nothing was found.
-
findReadableCatalogVersions
Description copied from interface:CatalogVersionDaoReturns allCatalogVersionModels that are readable for the given principal. The method takes the group membership into account.- Specified by:
findReadableCatalogVersionsin interfaceCatalogVersionDao- Parameters:
principal- givenPrincipalModel
-
findWritableCatalogVersions
Description copied from interface:CatalogVersionDaoReturns allCatalogVersionModels which are writable for the given principal. The method takes the group membership into account.- Specified by:
findWritableCatalogVersionsin interfaceCatalogVersionDao- Parameters:
principal- givenPrincipalModel
-
findAllCatalogVersions
Description copied from interface:CatalogVersionDaoReturns allCatalogVersionModels defined in the system.- Specified by:
findAllCatalogVersionsin interfaceCatalogVersionDao- Returns:
- an empty collection if no catalog version was found
-
findAllCategoriesCount
Description copied from interface:CatalogVersionDaoReturns the count ofCategoryModels which are assigned to thisCatalogVersionModel.- Specified by:
findAllCategoriesCountin interfaceCatalogVersionDao- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
CategoryModels which are assigned to thisCatalogVersionModel
-
findAllProductsCount
Description copied from interface:CatalogVersionDaoReturns the count ofProductModels which are assigned to thisCatalogVersionModel.- Specified by:
findAllProductsCountin interfaceCatalogVersionDao- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
CategoryModels which are assigned to thisCatalogVersionModel
-
findAllMediasCount
Description copied from interface:CatalogVersionDaoReturns the count ofMediaModels which are assigned to thisCatalogVersionModel.- Specified by:
findAllMediasCountin interfaceCatalogVersionDao- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
MediaModels which are assigned to thisCatalogVersionModel
-
findAllKeywordsCount
Description copied from interface:CatalogVersionDaoReturns the count ofKeywordModels which are assigned to thisCatalogVersionModel.- Specified by:
findAllKeywordsCountin interfaceCatalogVersionDao- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- the number of
KeywordModels which are assigned to thisCatalogVersionModel
-
findDuplicatedIds
Description copied from interface:CatalogVersionDaoReturns collection of duplicated identifiers (and their count) which are assigned to thisCatalogVersionModel- Specified by:
findDuplicatedIdsin interfaceCatalogVersionDao- Returns:
- collection of duplicated item identifiers data objects
-