Class DefaultCMSContentCatalogDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSContentCatalogDao
- All Implemented Interfaces:
CMSContentCatalogDao,Dao
Default implementation of
CMSContentCatalogDao interface.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecuteRelationshipCount(FlexibleSearchQuery fQuery, CatalogVersionModel versionModel) Find all content catalogs.findAllContentCatalogsOrderedBy(String orderField) Find all content catalogs ordered by fieldorderField.Find a single content catalog having the given id.booleanhasCMSItems(CatalogVersionModel versionModel) Checks whether there are some CMS items related to passed as parameterCatalogVersionModelobject.booleanhasCMSRelations(CatalogVersionModel versionModel) Checks whether there are someCMSRelationModelobjects related to passed as parameterCatalogVersionModelobject.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultCMSContentCatalogDao
public DefaultCMSContentCatalogDao()
-
-
Method Details
-
findAllContentCatalogs
Find all content catalogs.- Specified by:
findAllContentCatalogsin interfaceCMSContentCatalogDao- Returns:
- the collection of found
ContentCatalogModelobjects or empty collection when not found
-
findAllContentCatalogsOrderedBy
Find all content catalogs ordered by fieldorderField.- Specified by:
findAllContentCatalogsOrderedByin interfaceCMSContentCatalogDao- Parameters:
orderField- the order field- Returns:
- the collection of found
ContentCatalogModelobjects or empty collection when not found
-
hasCMSItems
Checks whether there are some CMS items related to passed as parameterCatalogVersionModelobject.- Specified by:
hasCMSItemsin interfaceCMSContentCatalogDao- Parameters:
versionModel- theCatalogVersionModelobject- Returns:
- true, if successful
-
hasCMSRelations
Checks whether there are someCMSRelationModelobjects related to passed as parameterCatalogVersionModelobject.- Specified by:
hasCMSRelationsin interfaceCMSContentCatalogDao- Parameters:
versionModel- theCatalogVersionModelmodel- Returns:
- true, if successful
-
executeRelationshipCount
protected boolean executeRelationshipCount(FlexibleSearchQuery fQuery, CatalogVersionModel versionModel) -
findContentCatalogById
Find a single content catalog having the given id.- Specified by:
findContentCatalogByIdin interfaceCMSContentCatalogDao- Parameters:
id- catalog id- Returns:
- Matching
ContentCatalogModel
-