public class DefaultCMSPageDao extends AbstractItemDao implements CMSPageDao
CMSPageDao interface| Modifier and Type | Field and Description |
|---|---|
protected static String |
CATALOG_VERSIONS_QUERY_PARAM |
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSPageDao() |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceprotected static final String CATALOG_VERSIONS_QUERY_PARAM
public Collection<ContentPageModel> findPagesByLabel(String label, Collection<CatalogVersionModel> catalogVersions)
findPagesByLabel in interface CMSPageDaolabel - the label of ContentPageModel object to findcatalogVersions - the catalog versionsContentPageModel objects or empty collection when not found.public Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersions(String label, Collection<CatalogVersionModel> catalogVersions)
findDefaultContentPageByLabelAndCatalogVersions in interface CMSPageDaolabel - the labelcatalogVersions - the catalog versionsContentPageModel objects or empty collection when not found.public Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions)
findDefaultPageByTypeAndCatalogVersions in interface CMSPageDaocomposedType - the composed typecatalogVersions - the catalog versionspublic Collection<AbstractPageModel> findAllPagesByCatalogVersion(CatalogVersionModel catalogVersion)
findAllPagesByCatalogVersion in interface CMSPageDaocatalogVersion - the catalog versionAbstractPageModel objects or empty collection when not found.public AbstractPageModel findPageByIdAndCatalogVersion(String id, CatalogVersionModel catalogVersion)
findPageByIdAndCatalogVersion in interface CMSPageDaoid - the id of AbstractPageModel object to findcatalogVersion - the catalog versionAbstractPageModel object or null when not foundpublic AbstractPageModel findPageById(String id, Collection<CatalogVersionModel> catalogVersions)
findPageById in interface CMSPageDaoid - the id of AbstractPageModel object to findcatalogVersions - the catalog versionsAbstractPageModel object or null when not foundpublic Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions)
composedType and catalog versions.findAllPagesByTypeAndCatalogVersions in interface CMSPageDaocomposedType - the composed typecatalogVersions - the catalog versionspublic Collection<AbstractPageModel> findAllPagesByLabel(String label, Collection<CatalogVersionModel> catalogVersions)
findAllPagesByLabel in interface CMSPageDaolabel - the label for page to foundcatalogVersions - the catalog versionspublic Collection<ContentPageModel> findAllContentPagesByCatalogVersions(Collection<CatalogVersionModel> catalogVersions)
findAllContentPagesByCatalogVersions in interface CMSPageDaocatalogVersions - the catalog versions@Deprecated public AbstractPageModel findDefaultPageForType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions)
findDefaultPageForType in interface CMSPageDaocomposedType - the composed typecatalogVersions - the catalog versionscomposedType@Deprecated public Collection<AbstractPageModel> findPagesForContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions)
findPagesForContentSlots in interface CMSPageDaocontentSlots - - collection of content slots that will be searched for pagescatalogVersions - - collection of catalog versions that result pages will be filtered withAbstractPageModel objects that are valid for given content slots and catalog
versionspublic Collection<AbstractPageModel> findPagesByPageTemplateContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions)
findPagesByPageTemplateContentSlots in interface CMSPageDaocontentSlots - - collection of content slots that will be searched for pagescatalogVersions - - collection of catalog versions that result pages will be filtered withAbstractPageModel objects that are valid for given content slots and catalog
versionspublic List<AbstractPageModel> findPagesByIdAndCatalogVersion(String id, CatalogVersionModel catalogVersion)
findPagesByIdAndCatalogVersion in interface CMSPageDaoid - the id of AbstractPageModel object to findcatalogVersion - the catalog versionAbstractPageModel objects or empty list when not found.public List<AbstractPageModel> findPagesById(String id, Collection<CatalogVersionModel> catalogVersions)
findPagesById in interface CMSPageDaoid - the id of AbstractPageModel object to findcatalogVersions - the catalog versionsAbstractPageModel object or empty list when not found.public List<AbstractPageModel> findDefaultPagesByType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions)
composedType and catalogVersions.findDefaultPagesByType in interface CMSPageDaocomposedType - the composed typecatalogVersions - the catalog versionscomposedType or empty list when not found.public List<AbstractPageModel> findPagesByType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, boolean isDefault)
composedType and catalogVersions.findPagesByType in interface CMSPageDaocomposedType - the composed typecatalogVersions - the catalog versionsisDefault - true to find default pages; false otherwisecomposedType or empty list when not found.public Collection<AbstractPageModel> findPagesByContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions)
findPagesByContentSlots in interface CMSPageDaocontentSlots - - collection of content slots that will be searched for pagescatalogVersions - - collection of catalog versions that result pages will be filtered withAbstractPageModel objects that are valid for given content slots and catalog
versionspublic ContentPageModel findHomepage(Collection<CatalogVersionModel> catalogVersions)
CMSPageDaofindHomepage in interface CMSPageDaocatalogVersions - the catalog versionsContentPageModel object or null when not foundCopyright © 2017 SAP SE. All Rights Reserved.