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 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 catalogVersionName)
java.util.Collection<DuplicatedItemIdentifier>
findDuplicatedIds(CatalogVersionModel catalogVersionModel)
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.FlexibleSearchService
getFlexibleSearchService()
void
setFlexibleSearchService(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:
findCatalogVersions
in 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:CatalogVersionDao
Returns allCatalogVersionModel
s which are writable for the given principal. The method takes the group membership into account.- Specified by:
findWritableCatalogVersions
in interfaceCatalogVersionDao
- Parameters:
principal
- givenPrincipalModel
-
findReadableCatalogVersions
public java.util.Collection<CatalogVersionModel> findReadableCatalogVersions(PrincipalModel principal)
Description copied from interface:CatalogVersionDao
Returns allCatalogVersionModel
s that are readable for the given principal. The method takes the group membership into account.- Specified by:
findReadableCatalogVersions
in interfaceCatalogVersionDao
- Parameters:
principal
- givenPrincipalModel
-
findAllCatalogVersions
public java.util.Collection<CatalogVersionModel> findAllCatalogVersions()
Description copied from interface:CatalogVersionDao
Returns allCatalogVersionModel
s defined in the system.- Specified by:
findAllCatalogVersions
in interfaceCatalogVersionDao
- Returns:
- an empty collection if no catalog version was found
-
findAllProductsCount
public java.lang.Integer findAllProductsCount(CatalogVersionModel catalogVersion)
Description copied from interface:CatalogVersionDao
Returns the count ofProductModel
s which are assigned to thisCatalogVersionModel
.- Specified by:
findAllProductsCount
in interfaceCatalogVersionDao
- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
CategoryModel
s which are assigned to thisCatalogVersionModel
-
findAllMediasCount
public java.lang.Integer findAllMediasCount(CatalogVersionModel catalogVersion)
Description copied from interface:CatalogVersionDao
Returns the count ofMediaModel
s which are assigned to thisCatalogVersionModel
.- Specified by:
findAllMediasCount
in interfaceCatalogVersionDao
- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
MediaModel
s which are assigned to thisCatalogVersionModel
-
findAllKeywordsCount
public java.lang.Integer findAllKeywordsCount(CatalogVersionModel catalogVersion)
Description copied from interface:CatalogVersionDao
Returns the count ofKeywordModel
s which are assigned to thisCatalogVersionModel
.- Specified by:
findAllKeywordsCount
in interfaceCatalogVersionDao
- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
KeywordModel
s which are assigned to thisCatalogVersionModel
-
findAllCategoriesCount
public java.lang.Integer findAllCategoriesCount(CatalogVersionModel catalogVersion)
Description copied from interface:CatalogVersionDao
Returns the count ofCategoryModel
s which are assigned to thisCatalogVersionModel
.- Specified by:
findAllCategoriesCount
in interfaceCatalogVersionDao
- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- the number of
CategoryModel
s which are assigned to thisCatalogVersionModel
-
findDuplicatedIds
public java.util.Collection<DuplicatedItemIdentifier> findDuplicatedIds(CatalogVersionModel catalogVersionModel)
Description copied from interface:CatalogVersionDao
Returns collection of duplicated identifiers (and their count) which are assigned to thisCatalogVersionModel
- Specified by:
findDuplicatedIds
in interfaceCatalogVersionDao
- Returns:
- collection of duplicated item identifiers data objects
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
getFlexibleSearchService
public FlexibleSearchService getFlexibleSearchService()
- Returns:
- the flexibleSearchService
-
-