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
public class DefaultCMSContentCatalogDao extends AbstractItemDao implements CMSContentCatalogDao
Default implementation ofCMSContentCatalogDaointerface.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSContentCatalogDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanexecuteRelationshipCount(FlexibleSearchQuery fQuery, CatalogVersionModel versionModel)java.util.Collection<ContentCatalogModel>findAllContentCatalogs()Find all content catalogs.java.util.Collection<ContentCatalogModel>findAllContentCatalogsOrderedBy(java.lang.String orderField)Find all content catalogs ordered by fieldorderField.ContentCatalogModelfindContentCatalogById(java.lang.String id)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
-
-
-
-
Method Detail
-
findAllContentCatalogs
public java.util.Collection<ContentCatalogModel> findAllContentCatalogs()
Find all content catalogs.- Specified by:
findAllContentCatalogsin interfaceCMSContentCatalogDao- Returns:
- the collection of found
ContentCatalogModelobjects or empty collection when not found
-
findAllContentCatalogsOrderedBy
public java.util.Collection<ContentCatalogModel> findAllContentCatalogsOrderedBy(java.lang.String orderField)
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
public boolean hasCMSItems(CatalogVersionModel versionModel)
Checks whether there are some CMS items related to passed as parameterCatalogVersionModelobject.- Specified by:
hasCMSItemsin interfaceCMSContentCatalogDao- Parameters:
versionModel- theCatalogVersionModelobject- Returns:
- true, if successful
-
hasCMSRelations
public boolean hasCMSRelations(CatalogVersionModel versionModel)
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
public ContentCatalogModel findContentCatalogById(java.lang.String id)
Find a single content catalog having the given id.- Specified by:
findContentCatalogByIdin interfaceCMSContentCatalogDao- Parameters:
id- catalog id- Returns:
- Matching
ContentCatalogModel
-
-