Class DefaultCMSPageTemplateDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSPageTemplateDao
- All Implemented Interfaces:
CMSPageTemplateDao,Dao
Default implementation of
CMSPageTemplateDao interface.-
Field Summary
FieldsFields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllPageTemplatesByCatalogVersion(CatalogVersionModel catalogVersion) Find all page templates by catalog version.findAllPageTemplatesByCatalogVersion(CatalogVersionModel catalogVersion, boolean active) Find all page templates by catalog version andactiveboolean flag.findAllPageTemplatesByCatalogVersions(Collection<CatalogVersionModel> catalogVersions, boolean active) Find all page templates by catalog versions andactiveboolean flag.findAllRestrictedPageTemplatesByCatalogVersion(CatalogVersionModel catalogVersion, boolean active, CMSPageTypeModel pageType) Find all restricted page templates by catalog version,activeboolean flag and cms page type.findAllRestrictedPageTemplatesByCatalogVersion(Collection<CatalogVersionModel> catalogVersions, boolean active, CMSPageTypeModel pageType) Find all restricted page templates by catalog versions,activeboolean flag and cms page type.findPageTemplatesByIdAndCatalogVersion(String id, CatalogVersionModel catalogVersion) Find page templates by id and catalog version.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Field Details
-
CATALOG_VERSIONS_QUERY_PARAM
- See Also:
-
-
Constructor Details
-
DefaultCMSPageTemplateDao
public DefaultCMSPageTemplateDao()
-
-
Method Details
-
findAllPageTemplatesByCatalogVersion
public Collection<PageTemplateModel> findAllPageTemplatesByCatalogVersion(CatalogVersionModel catalogVersion) Find all page templates by catalog version.- Specified by:
findAllPageTemplatesByCatalogVersionin interfaceCMSPageTemplateDao- Parameters:
catalogVersion- the catalog version- Returns:
- the collection of found
PageTemplateModelobjects or empty collection when not found.
-
findAllPageTemplatesByCatalogVersion
public Collection<PageTemplateModel> findAllPageTemplatesByCatalogVersion(CatalogVersionModel catalogVersion, boolean active) Find all page templates by catalog version andactiveboolean flag.- Specified by:
findAllPageTemplatesByCatalogVersionin interfaceCMSPageTemplateDao- Parameters:
catalogVersion- the catalog versionactive- determines which page templates to find - active or not active- Returns:
- the collection of found
PageTemplateModelobjects or empty collection when not found.
-
findAllPageTemplatesByCatalogVersions
public Collection<PageTemplateModel> findAllPageTemplatesByCatalogVersions(Collection<CatalogVersionModel> catalogVersions, boolean active) Find all page templates by catalog versions andactiveboolean flag.- Specified by:
findAllPageTemplatesByCatalogVersionsin interfaceCMSPageTemplateDao- Parameters:
catalogVersions- the catalog versionsactive- determines which page templates to find - active or not active- Returns:
- the collection of found
PageTemplateModelobjects or empty collection when not found.
-
findAllRestrictedPageTemplatesByCatalogVersion
public Collection<PageTemplateModel> findAllRestrictedPageTemplatesByCatalogVersion(CatalogVersionModel catalogVersion, boolean active, CMSPageTypeModel pageType) Find all restricted page templates by catalog version,activeboolean flag and cms page type.- Specified by:
findAllRestrictedPageTemplatesByCatalogVersionin interfaceCMSPageTemplateDao- Parameters:
catalogVersion- the catalog versionactive- determines which page templates to find - active or not activepageType- the cms page type- Returns:
- the collection of found
PageTemplateModelobjects or empty collection when not found.
-
findPageTemplatesByIdAndCatalogVersion
public List<PageTemplateModel> findPageTemplatesByIdAndCatalogVersion(String id, CatalogVersionModel catalogVersion) Find page templates by id and catalog version.- Specified by:
findPageTemplatesByIdAndCatalogVersionin interfaceCMSPageTemplateDao- Parameters:
id- the id ofPageTemplateModelobject to findcatalogVersion- the catalog version- Returns:
- the list of found
PageTemplateModelobjects or empty list when not found.
-
findAllRestrictedPageTemplatesByCatalogVersion
public Collection<PageTemplateModel> findAllRestrictedPageTemplatesByCatalogVersion(Collection<CatalogVersionModel> catalogVersions, boolean active, CMSPageTypeModel pageType) Description copied from interface:CMSPageTemplateDaoFind all restricted page templates by catalog versions,activeboolean flag and cms page type.- Specified by:
findAllRestrictedPageTemplatesByCatalogVersionin interfaceCMSPageTemplateDao- Parameters:
catalogVersions- the catalog versionsactive- determines which page templates to find - active or not activepageType- the cms page type- Returns:
- the collection of found
PageTemplateModelobjects or empty collection when not found.
-