Class DefaultCatalogVersionDao
- java.lang.Object
-
- de.hybris.platform.catalog.daos.impl.DefaultCatalogVersionDao
-
- All Implemented Interfaces:
CatalogVersionDao,Dao
public class DefaultCatalogVersionDao extends java.lang.Object implements CatalogVersionDao
Default implementation for theCatalogVersionDao.
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogVersionDao()
-
Method Summary
All Methods Instance Methods Concrete 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 catalogVersionName)java.util.Collection<DuplicatedItemIdentifier>findDuplicatedIds(CatalogVersionModel catalogVersionModel)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.FlexibleSearchServicegetFlexibleSearchService()voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-
-
Method Detail
-
findCatalogVersions
public java.util.Collection<CatalogVersionModel> findCatalogVersions(java.lang.String catalogId, java.lang.String catalogVersionName)
Description copied from interface:CatalogVersionDao- Specified by:
findCatalogVersionsin interfaceCatalogVersionDao- Returns:
- a collection with the found CatalogVersionModel or empty collection is nothing was found.
-
findWritableCatalogVersions
public java.util.Collection<CatalogVersionModel> findWritableCatalogVersions(PrincipalModel principal)
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
-
findReadableCatalogVersions
public java.util.Collection<CatalogVersionModel> findReadableCatalogVersions(PrincipalModel principal)
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
-
findAllCatalogVersions
public java.util.Collection<CatalogVersionModel> 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
-
findAllProductsCount
public java.lang.Integer findAllProductsCount(CatalogVersionModel catalogVersion)
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
public java.lang.Integer findAllMediasCount(CatalogVersionModel catalogVersion)
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
public java.lang.Integer findAllKeywordsCount(CatalogVersionModel catalogVersion)
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
-
findAllCategoriesCount
public java.lang.Integer findAllCategoriesCount(CatalogVersionModel catalogVersion)
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
-
findDuplicatedIds
public java.util.Collection<DuplicatedItemIdentifier> findDuplicatedIds(CatalogVersionModel catalogVersionModel)
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
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
getFlexibleSearchService
public FlexibleSearchService getFlexibleSearchService()
- Returns:
- the flexibleSearchService
-
-