public interface CMSPageService
Collection<PageTemplateModel> getAllActivePageTemplates()
Collection<ContentPageModel> getAllContentPages()
Collection<ContentSlotForPageModel> getOwnContentSlotsForPage(AbstractPageModel page)
ContentSlotForPageModel objects for passed as parameter AbstractPageModel
object.page - the AbstractPageModel object.ContentSlotForPageModel objects related to AbstractPageModel.ContentSlotData getContentSlotForPage(AbstractPageModel page, String position) throws CMSItemNotFoundException
page - Pageposition - PositionCMSItemNotFoundException - if no content slot is defined at this position in that pageCollection<ContentSlotData> getContentSlotsForPage(AbstractPageModel page)
ContentSlotData objects containing data taken from all
ContentSlotForPageModel objects as well from ContentSlotForTemplateModel objects for
passed as parameter AbstractPageModel object.page - the AbstractPageModel object.ContentSlotData objects.Collection<ContentSlotForTemplateModel> getContentSlotsForPageTemplate(PageTemplateModel pageTemplate)
ContentSlotForTemplateModel objects related to passed as parameter
PageTemplateModel.pageTemplate - the PageTemplateModel object for which search will be executed.ContentSlotForTemplateModel objects.CatalogPageModel getDefaultCatalogPage() throws CMSItemNotFoundException
CMSItemNotFoundException - if no default catalog page could be foundCategoryPageModel getDefaultCategoryPage() throws CMSItemNotFoundException
CMSItemNotFoundException - if no default category page could be foundContentPageModel getDefaultContentPage(String label) throws CMSItemNotFoundException
label - ContentPage labelCMSItemNotFoundException - if no default content page with the given label could be found@Deprecated ContentPageModel getDefaultPageByLabel(String label, CatalogVersionModel version) throws CMSItemNotFoundException
getDefaultPageForLabel(String, CatalogVersionModel) instead.label - the labelversion - the versionCMSItemNotFoundException - thrown when item was not foundContentPageModel getDefaultPageForLabel(String label, CatalogVersionModel version) throws CMSItemNotFoundException
label - the labelversion - the versionCMSItemNotFoundException - thrown when item was not foundProductPageModel getDefaultProductPage() throws CMSItemNotFoundException
CMSItemNotFoundException - if no default product page could be foundString getFrontendTemplateName(PageTemplateModel template)
PageTemplateModel object.template - the PageTemplateModel object.ContentPageModel getHomepage()
String getLabelOrId(ContentPageModel contentPage)
ContentPageModel label or id if label is empty.contentPage - the ContentPageModel object.ContentPageModel.@Deprecated CatalogPageModel getPageByCatalog(CatalogModel catalog) throws CMSItemNotFoundException
getPageForCatalog(CatalogModel) instead.catalog - the catalogCMSItemNotFoundException - thrown when item was not found@Deprecated CatalogPageModel getPageByCatalogId(String catalogId) throws CMSItemNotFoundException
getPageForCatalogId(String) instead.catalogId - the catalog idCMSItemNotFoundException - thrown when item was not found@Deprecated CategoryPageModel getPageByCategory(CategoryModel category) throws CMSItemNotFoundException
getPageForCategory(CategoryModel) instead.category - the categoryCMSItemNotFoundException - thrown when item was not found@Deprecated CategoryPageModel getPageByCategoryCode(String categoryCode) throws CMSItemNotFoundException
getPageForCategoryCode(String) instead.categoryCode - the category codeCMSItemNotFoundException - thrown when item was not found@Deprecated AbstractPageModel getPageById(String id) throws CMSItemNotFoundException
getPageForId(String) instead.id - the idCMSItemNotFoundException - thrown when item was not found@Deprecated ContentPageModel getPageByLabel(String label) throws CMSItemNotFoundException
getPageForLabel(String) instead.label - the labelCMSItemNotFoundException - thrown when item was not found@Deprecated ContentPageModel getPageByLabelOrId(String labelOrId) throws CMSItemNotFoundException
getPageForLabelOrId(String) instead.labelOrId - CMSItemNotFoundException - thrown when item was not found@Deprecated ProductPageModel getPageByProduct(ProductModel product) throws CMSItemNotFoundException
getPageForProduct(ProductModel) instead.product - the productCMSItemNotFoundException - thrown when item was not found@Deprecated ProductPageModel getPageByProductCode(String productCode) throws CMSItemNotFoundException
getPageForProductCode(String) instead.productCode - the product codeCMSItemNotFoundException - thrown when item was not foundCatalogPageModel getPageForCatalog(CatalogModel catalog) throws CMSItemNotFoundException
catalog - the catalogCMSItemNotFoundException - thrown when item was not foundCatalogPageModel getPageForCatalogId(String catalogId) throws CMSItemNotFoundException
catalogId - the catalog idCMSItemNotFoundException - thrown when item was not foundCategoryPageModel getPageForCategory(CategoryModel category) throws CMSItemNotFoundException
category - the categoryCMSItemNotFoundException - thrown when item was not foundCategoryPageModel getPageForCategoryCode(String categoryCode) throws CMSItemNotFoundException
categoryCode - the category codeCMSItemNotFoundException - thrown when item was not foundAbstractPageModel getPageForId(String id) throws CMSItemNotFoundException
id - the idCMSItemNotFoundException - thrown when item was not foundContentPageModel getPageForLabel(String label) throws CMSItemNotFoundException
label - the labelCMSItemNotFoundException - thrown when item was not foundContentPageModel getPageForLabelOrId(String labelOrId) throws CMSItemNotFoundException
labelOrId - the label or idCMSItemNotFoundException - thrown when item was not foundProductPageModel getPageForProduct(ProductModel product) throws CMSItemNotFoundException
product - the productCMSItemNotFoundException - thrown when item was not foundProductPageModel getPageForProductCode(String productCode) throws CMSItemNotFoundException
productCode - the product codeCMSItemNotFoundException - thrown when item was not found@Deprecated Collection<AbstractPageModel> getPagesByPageTemplateComponent(AbstractCMSComponentModel component)
getPagesForPageTemplateComponent(AbstractCMSComponentModel) instead.component - - component model that we are looking pages for@Deprecated Collection<AbstractPageModel> getPagesByPageTemplateContentSlots(Collection<ContentSlotModel> contentSlots)
getPagesForPageTemplateContentSlots(Collection) instead.contentSlots - - content slot model that we are looking pages forCollection<AbstractPageModel> getPagesForComponent(AbstractCMSComponentModel component)
component - - component model that we are looking pages forCollection<AbstractPageModel> getPagesForContentSlots(Collection<ContentSlotModel> contentSlots)
contentSlots - - content slot model that we are looking pages forCollection<AbstractPageModel> getPagesForPageTemplateComponent(AbstractCMSComponentModel component)
component - the componentCollection<AbstractPageModel> getPagesForPageTemplateContentSlots(Collection<ContentSlotModel> contentSlots)
contentSlots - the content slotsCopyright © 2017 SAP SE. All Rights Reserved.