Class DefaultCMSPageDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSPageDao
-
- All Implemented Interfaces:
CMSPageDao,Dao
public class DefaultCMSPageDao extends AbstractItemDao implements CMSPageDao
Default implementation ofCMSPageDaointerface
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringANDprotected static java.lang.StringCATALOG_VERSIONS_QUERY_PARAMprotected static java.lang.StringCONTENT_SLOTS_QUERY_PARAMprotected static java.lang.StringLABELS_QUERY_PARAMprotected static java.lang.StringORprotected static java.lang.StringPAGE_STATUSES_QUERY_PARAM-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSPageDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendPageStatusesToQuery(java.lang.StringBuilder queryBuilder, java.util.List<CmsPageStatus> pageStatuses, java.util.Map<java.lang.String,java.lang.Object> queryParameters, java.lang.String queryConcatOperator)Appends page statuses to the query builder and adds page statuses to the query parameters.java.util.Collection<ContentPageModel>findAllContentPagesByCatalogVersions(java.util.Collection<CatalogVersionModel> catalogVersions)Find all active content pages by catalog versions.java.util.Collection<ContentPageModel>findAllContentPagesByCatalogVersionsAndPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find all content pages by catalog versions and a list of page statuses.java.util.Collection<AbstractPageModel>findAllPagesByCatalogVersion(CatalogVersionModel catalogVersion)Find all active pages by catalog version.java.util.Collection<AbstractPageModel>findAllPagesByCatalogVersionAndPageStatuses(CatalogVersionModel catalogVersion, java.util.List<CmsPageStatus> pageStatuses)Find all pages by catalog version and a list of page statuses.protected <T extends AbstractPageModel>
java.util.Collection<T>findAllPagesByCatalogVersionAndPageStatuses(java.lang.String typeCode, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find all pages by item model type code, catalog versions and page status.java.util.Collection<AbstractPageModel>findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions)Find all pages by composed type ofcomposedTypeand catalog versions.java.util.Collection<AbstractPageModel>findAllPagesByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find all pages by composed type ofcomposedTypeand catalog versions.java.util.Collection<ContentPageModel>findDefaultContentPageByLabelAndCatalogVersions(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions)Find default content page with active status by label and catalog versions.java.util.Collection<ContentPageModel>findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find default content page by label, catalog versions and page status.java.util.Collection<AbstractPageModel>findDefaultPageByTypeAndCatalogVersions(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions)Find default page by type and catalog versions.java.util.Collection<AbstractPageModel>findDefaultPageByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find default page by type and catalog versions.java.util.List<AbstractPageModel>findDefaultPagesByType(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions)Find default pages by composed type ofcomposedTypeand catalogVersions.ContentPageModelfindHomepage(java.util.Collection<CatalogVersionModel> catalogVersions)Find homepage with active status for the given collection of catalog versions.ContentPageModelfindHomepageByPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find homepage for the given collection of catalog versions and page statuses.java.util.Collection<ContentPageModel>findHomepagesByPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find all homepages for the given collection of catalog versions and page statuses.java.util.Collection<AbstractPageModel>findPagesByContentSlots(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions)Finds and returns all pages for the given collection of content slots.java.util.Collection<AbstractPageModel>findPagesByContentSlotsAndPageStatuses(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Finds and returns all pages for the given collection of content slots.java.util.List<AbstractPageModel>findPagesById(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)Find pages by id and catalog versions.java.util.List<AbstractPageModel>findPagesByIdAndCatalogVersion(java.lang.String id, CatalogVersionModel catalogVersion)Find active pages by id and catalog version.java.util.List<AbstractPageModel>findPagesByIdAndCatalogVersionAndPageStatuses(java.lang.String id, CatalogVersionModel catalogVersion, java.util.List<CmsPageStatus> pageStatuses)Find pages by id and catalog version and a list of page statuses.<T extends AbstractPageModel>
java.util.List<T>findPagesByIdAndPageStatuses(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find pages by id and catalog versions and page status.java.util.Collection<ContentPageModel>findPagesByLabel(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions)Find pages by label and catalog versions.<T extends AbstractPageModel>
java.util.Collection<T>findPagesByLabelAndPageStatuses(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find pages by label, catalog versions and page statuses.<T extends AbstractPageModel>
java.util.Collection<T>findPagesByLabelsAndPageStatuses(java.util.Collection<java.lang.String> labels, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Find content pages by labels, catalog versions and page statuses.java.util.Collection<AbstractPageModel>findPagesByPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions)Finds and returns all pages that uses given content slots by page templatesjava.util.Collection<AbstractPageModel>findPagesByPageTemplateContentSlotsAndPageStatuses(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)Finds and returns all pages that uses given content slots by page templatesjava.util.List<AbstractPageModel>findPagesByType(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, boolean isDefault)Find default or non-default active pages by composed type ofcomposedTypeand catalogVersions.java.util.List<AbstractPageModel>findPagesByTypeAndPageStatuses(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, boolean isDefault, java.util.List<CmsPageStatus> pageStatuses)Find default or non-default pages by composed type ofcomposedTypeand catalogVersions and a list of page statuses.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Field Detail
-
AND
protected static final java.lang.String AND
- See Also:
- Constant Field Values
-
OR
protected static final java.lang.String OR
- See Also:
- Constant Field Values
-
CATALOG_VERSIONS_QUERY_PARAM
protected static final java.lang.String CATALOG_VERSIONS_QUERY_PARAM
- See Also:
- Constant Field Values
-
PAGE_STATUSES_QUERY_PARAM
protected static final java.lang.String PAGE_STATUSES_QUERY_PARAM
- See Also:
- Constant Field Values
-
CONTENT_SLOTS_QUERY_PARAM
protected static final java.lang.String CONTENT_SLOTS_QUERY_PARAM
- See Also:
- Constant Field Values
-
LABELS_QUERY_PARAM
protected static final java.lang.String LABELS_QUERY_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
findPagesByLabel
public java.util.Collection<ContentPageModel> findPagesByLabel(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions)
Find pages by label and catalog versions.- Specified by:
findPagesByLabelin interfaceCMSPageDao- Parameters:
label- the label ofContentPageModelobject to findcatalogVersions- the catalog versions- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findPagesByLabelAndPageStatuses
public <T extends AbstractPageModel> java.util.Collection<T> findPagesByLabelAndPageStatuses(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind pages by label, catalog versions and page statuses.- Specified by:
findPagesByLabelAndPageStatusesin interfaceCMSPageDao- Parameters:
label- the label ofContentPageModelobject to findcatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findPagesByLabelsAndPageStatuses
public <T extends AbstractPageModel> java.util.Collection<T> findPagesByLabelsAndPageStatuses(java.util.Collection<java.lang.String> labels, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind content pages by labels, catalog versions and page statuses.- Specified by:
findPagesByLabelsAndPageStatusesin interfaceCMSPageDao- Parameters:
labels- the labels ofContentPageModelobject to findcatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findDefaultContentPageByLabelAndCatalogVersions
public java.util.Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersions(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions)
Find default content page with active status by label and catalog versions.- Specified by:
findDefaultContentPageByLabelAndCatalogVersionsin interfaceCMSPageDao- Parameters:
label- the labelcatalogVersions- the catalog versions- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses
public java.util.Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses(java.lang.String label, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Find default content page by label, catalog versions and page status.- Specified by:
findDefaultContentPageByLabelAndCatalogVersionsAndPageStatusesin interfaceCMSPageDao- Parameters:
label- the labelcatalogVersions- the catalog versionspageStatuses- - page status. i.e. active, deleted- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findDefaultPageByTypeAndCatalogVersions
public java.util.Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersions(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions)
Find default page by type and catalog versions.- Specified by:
findDefaultPageByTypeAndCatalogVersionsin interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versions- Returns:
- the collection of found pages or empty collection when not found.
-
findDefaultPageByTypeAndCatalogVersionsAndPageStatuses
public java.util.Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Find default page by type and catalog versions.- Specified by:
findDefaultPageByTypeAndCatalogVersionsAndPageStatusesin interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found pages or empty collection when not found.
-
findAllPagesByCatalogVersion
public java.util.Collection<AbstractPageModel> findAllPagesByCatalogVersion(CatalogVersionModel catalogVersion)
Find all active pages by catalog version.- Specified by:
findAllPagesByCatalogVersionin interfaceCMSPageDao- Parameters:
catalogVersion- the catalog version- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findAllPagesByTypeAndCatalogVersions
public java.util.Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions)
Find all pages by composed type ofcomposedTypeand catalog versions.- Specified by:
findAllPagesByTypeAndCatalogVersionsin interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versions- Returns:
- the collection of found pages or empty collection when not found.
-
findAllPagesByTypeAndCatalogVersionsAndPageStatuses
public java.util.Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Find all pages by composed type ofcomposedTypeand catalog versions.- Specified by:
findAllPagesByTypeAndCatalogVersionsAndPageStatusesin interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found pages or empty collection when not found.
-
findAllContentPagesByCatalogVersions
public java.util.Collection<ContentPageModel> findAllContentPagesByCatalogVersions(java.util.Collection<CatalogVersionModel> catalogVersions)
Find all active content pages by catalog versions.- Specified by:
findAllContentPagesByCatalogVersionsin interfaceCMSPageDao- Parameters:
catalogVersions- the catalog versions- Returns:
- the collection of found pages or empty collection when not found.
-
findAllContentPagesByCatalogVersionsAndPageStatuses
public java.util.Collection<ContentPageModel> findAllContentPagesByCatalogVersionsAndPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind all content pages by catalog versions and a list of page statuses.- Specified by:
findAllContentPagesByCatalogVersionsAndPageStatusesin interfaceCMSPageDao- Parameters:
catalogVersions- the catalog versionspageStatuses- a list of page statuses- Returns:
- the collection of found pages or empty collection when not found.
-
findAllPagesByCatalogVersionAndPageStatuses
public java.util.Collection<AbstractPageModel> findAllPagesByCatalogVersionAndPageStatuses(CatalogVersionModel catalogVersion, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind all pages by catalog version and a list of page statuses.- Specified by:
findAllPagesByCatalogVersionAndPageStatusesin interfaceCMSPageDao- Parameters:
catalogVersion- the catalog versionpageStatuses- a list of page statuses- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findAllPagesByCatalogVersionAndPageStatuses
protected <T extends AbstractPageModel> java.util.Collection<T> findAllPagesByCatalogVersionAndPageStatuses(java.lang.String typeCode, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Find all pages by item model type code, catalog versions and page status.- Parameters:
typeCode- the item model type code; must be of type or sub-type ofAbstractPageModelcatalogVersions- the catalog versionspageStatuses- a list of page statuses- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findPagesByPageTemplateContentSlots
public java.util.Collection<AbstractPageModel> findPagesByPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions)
Finds and returns all pages that uses given content slots by page templates- Specified by:
findPagesByPageTemplateContentSlotsin interfaceCMSPageDao- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered with- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findPagesByPageTemplateContentSlotsAndPageStatuses
public java.util.Collection<AbstractPageModel> findPagesByPageTemplateContentSlotsAndPageStatuses(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Finds and returns all pages that uses given content slots by page templates- Specified by:
findPagesByPageTemplateContentSlotsAndPageStatusesin interfaceCMSPageDao- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered withpageStatuses- - page status. i.e. active, deleted- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findPagesByIdAndCatalogVersion
public java.util.List<AbstractPageModel> findPagesByIdAndCatalogVersion(java.lang.String id, CatalogVersionModel catalogVersion)
Find active pages by id and catalog version.- Specified by:
findPagesByIdAndCatalogVersionin interfaceCMSPageDao- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersion- the catalog version- Returns:
- the list of found
AbstractPageModelobjects or empty list when not found.
-
findPagesByIdAndCatalogVersionAndPageStatuses
public java.util.List<AbstractPageModel> findPagesByIdAndCatalogVersionAndPageStatuses(java.lang.String id, CatalogVersionModel catalogVersion, java.util.List<CmsPageStatus> pageStatuses)
Find pages by id and catalog version and a list of page statuses.- Specified by:
findPagesByIdAndCatalogVersionAndPageStatusesin interfaceCMSPageDao- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersion- the catalog versionpageStatuses- a list of page statuses- Returns:
- the list of found
AbstractPageModelobjects or empty list when not found.
-
findPagesById
public java.util.List<AbstractPageModel> findPagesById(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
Find pages by id and catalog versions.- Specified by:
findPagesByIdin interfaceCMSPageDao- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersions- the catalog versions- Returns:
- the list of found
AbstractPageModelobject or empty list when not found.
-
findPagesByIdAndPageStatuses
public <T extends AbstractPageModel> java.util.List<T> findPagesByIdAndPageStatuses(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind pages by id and catalog versions and page status.- Specified by:
findPagesByIdAndPageStatusesin interfaceCMSPageDao- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the list of found
AbstractPageModelobject or empty list when not found.
-
findDefaultPagesByType
public java.util.List<AbstractPageModel> findDefaultPagesByType(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions)
Find default pages by composed type ofcomposedTypeand catalogVersions.- Specified by:
findDefaultPagesByTypein interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versions- Returns:
- the list of found page objects of type
composedTypeor empty list when not found.
-
findPagesByType
public java.util.List<AbstractPageModel> findPagesByType(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, boolean isDefault)
Find default or non-default active pages by composed type ofcomposedTypeand catalogVersions.- Specified by:
findPagesByTypein interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versionsisDefault- true to find default pages; false otherwise- Returns:
- the list of found page objects of type
composedTypeor empty list when not found.
-
findPagesByTypeAndPageStatuses
public java.util.List<AbstractPageModel> findPagesByTypeAndPageStatuses(ComposedTypeModel composedType, java.util.Collection<CatalogVersionModel> catalogVersions, boolean isDefault, java.util.List<CmsPageStatus> pageStatuses)
Find default or non-default pages by composed type ofcomposedTypeand catalogVersions and a list of page statuses.- Specified by:
findPagesByTypeAndPageStatusesin interfaceCMSPageDao- Parameters:
composedType- the composed typecatalogVersions- the catalog versionsisDefault- true to find default pages; false otherwisepageStatuses- a list of page statuses- Returns:
- the list of found page objects of type
composedTypeor empty list when not found.
-
findPagesByContentSlots
public java.util.Collection<AbstractPageModel> findPagesByContentSlots(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions)
Finds and returns all pages for the given collection of content slots.- Specified by:
findPagesByContentSlotsin interfaceCMSPageDao- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered with- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findPagesByContentSlotsAndPageStatuses
public java.util.Collection<AbstractPageModel> findPagesByContentSlotsAndPageStatuses(java.util.Collection<ContentSlotModel> contentSlots, java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFinds and returns all pages for the given collection of content slots.- Specified by:
findPagesByContentSlotsAndPageStatusesin interfaceCMSPageDao- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered withpageStatuses- - page status. i.e. active, deleted- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findHomepage
public ContentPageModel findHomepage(java.util.Collection<CatalogVersionModel> catalogVersions)
Description copied from interface:CMSPageDaoFind homepage with active status for the given collection of catalog versions.- Specified by:
findHomepagein interfaceCMSPageDao- Parameters:
catalogVersions- the catalog versions- Returns:
- the found
ContentPageModelobject or null when not found
-
findHomepageByPageStatuses
public ContentPageModel findHomepageByPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind homepage for the given collection of catalog versions and page statuses.- Specified by:
findHomepageByPageStatusesin interfaceCMSPageDao- Parameters:
catalogVersions- - the catalog versionspageStatuses- - list of page status, e.g. active, deleted- Returns:
- the found
ContentPageModelobject or null when not found
-
findHomepagesByPageStatuses
public java.util.Collection<ContentPageModel> findHomepagesByPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
Description copied from interface:CMSPageDaoFind all homepages for the given collection of catalog versions and page statuses.- Specified by:
findHomepagesByPageStatusesin interfaceCMSPageDao- Parameters:
catalogVersions- - the catalog versionspageStatuses- - list of page status, e.g. active, deleted- Returns:
- the list of found
ContentPageModelobjects or empty when not found
-
appendPageStatusesToQuery
protected void appendPageStatusesToQuery(java.lang.StringBuilder queryBuilder, java.util.List<CmsPageStatus> pageStatuses, java.util.Map<java.lang.String,java.lang.Object> queryParameters, java.lang.String queryConcatOperator)Appends page statuses to the query builder and adds page statuses to the query parameters.- Parameters:
queryBuilder- referenced query builderpageStatuses- page statuesqueryParameters- map of query parametersqueryConcatOperator- the appended query operator e.g. "AND", "OR"
-
-