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 ofCMSContentCatalogDao
interface.
-
-
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 boolean
executeRelationshipCount(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
.ContentCatalogModel
findContentCatalogById(java.lang.String id)
Find a single content catalog having the given id.boolean
hasCMSItems(CatalogVersionModel versionModel)
Checks whether there are some CMS items related to passed as parameterCatalogVersionModel
object.boolean
hasCMSRelations(CatalogVersionModel versionModel)
Checks whether there are someCMSRelationModel
objects related to passed as parameterCatalogVersionModel
object.-
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:
findAllContentCatalogs
in interfaceCMSContentCatalogDao
- Returns:
- the collection of found
ContentCatalogModel
objects 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:
findAllContentCatalogsOrderedBy
in interfaceCMSContentCatalogDao
- Parameters:
orderField
- the order field- Returns:
- the collection of found
ContentCatalogModel
objects or empty collection when not found
-
hasCMSItems
public boolean hasCMSItems(CatalogVersionModel versionModel)
Checks whether there are some CMS items related to passed as parameterCatalogVersionModel
object.- Specified by:
hasCMSItems
in interfaceCMSContentCatalogDao
- Parameters:
versionModel
- theCatalogVersionModel
object- Returns:
- true, if successful
-
hasCMSRelations
public boolean hasCMSRelations(CatalogVersionModel versionModel)
Checks whether there are someCMSRelationModel
objects related to passed as parameterCatalogVersionModel
object.- Specified by:
hasCMSRelations
in interfaceCMSContentCatalogDao
- Parameters:
versionModel
- theCatalogVersionModel
model- 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:
findContentCatalogById
in interfaceCMSContentCatalogDao
- Parameters:
id
- catalog id- Returns:
- Matching
ContentCatalogModel
-
-