public interface CMSPageService
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<PageTemplateModel> |
getAllActivePageTemplates()
Gets the all active page templates.
|
java.util.Collection<ContentPageModel> |
getAllContentPages()
Gets the all content pages.
|
ContentSlotData |
getContentSlotForPage(AbstractPageModel page,
java.lang.String position)
Returns a contentslot for the given page and position.
|
java.util.Collection<ContentSlotData> |
getContentSlotsForPage(AbstractPageModel page)
Returns collection of
ContentSlotData objects containing data taken from all
ContentSlotForPageModel objects as well from ContentSlotForTemplateModel objects for
passed as parameter AbstractPageModel object. |
java.util.Collection<ContentSlotForTemplateModel> |
getContentSlotsForPageTemplate(PageTemplateModel pageTemplate)
Gets all
ContentSlotForTemplateModel objects related to passed as parameter
PageTemplateModel. |
CatalogPageModel |
getDefaultCatalogPage()
Returns the default catalog page WITHOUT evaluating any restrictions
|
CategoryPageModel |
getDefaultCategoryPage()
Returns the default category page WITHOUT evaluating any restrictions
|
ContentPageModel |
getDefaultContentPage(java.lang.String label)
Deprecated.
since 6.6. Please use
getDefaultPageForLabel(String, CatalogVersionModel) instead. |
ContentPageModel |
getDefaultPageByLabel(java.lang.String label,
CatalogVersionModel version)
Deprecated.
since 4.3. Please, use
getDefaultPageForLabel(String, CatalogVersionModel)
instead. |
ContentPageModel |
getDefaultPageForLabel(java.lang.String label,
CatalogVersionModel version)
Gets the default page by label and catalog version.
|
ProductPageModel |
getDefaultProductPage()
Returns the default product page WITHOUT evaluating any restrictions
|
java.lang.String |
getFrontendTemplateName(PageTemplateModel template)
Gets the frontend template name for
PageTemplateModel object. |
ContentPageModel |
getHomepage()
Gets the homepage.
|
java.lang.String |
getLabelOrId(ContentPageModel contentPage)
Gets the
ContentPageModel label or id if label is empty. |
java.util.Collection<ContentSlotForPageModel> |
getOwnContentSlotsForPage(AbstractPageModel page)
Gets the own
ContentSlotForPageModel objects for passed as parameter AbstractPageModel
object. |
CatalogPageModel |
getPageByCatalog(CatalogModel catalog)
Deprecated.
since 4.3. Please, use
getPageForCatalog(CatalogModel) instead. |
CatalogPageModel |
getPageByCatalogId(java.lang.String catalogId)
Deprecated.
since 4.3. Please, use
getPageForCatalogId(String) instead. |
CategoryPageModel |
getPageByCategory(CategoryModel category)
Deprecated.
since 4.3. Please, use
getPageForCategory(CategoryModel) instead. |
CategoryPageModel |
getPageByCategoryCode(java.lang.String categoryCode)
Deprecated.
since 4.3. Please, use
getPageForCategoryCode(String) instead. |
AbstractPageModel |
getPageById(java.lang.String id)
Deprecated.
since 4.3. Please, use
getPageForId(String) instead. |
ContentPageModel |
getPageByLabel(java.lang.String label)
Deprecated.
since 4.3. Please, use
getPageForLabel(String) instead. |
ContentPageModel |
getPageByLabelOrId(java.lang.String labelOrId)
Deprecated.
since 4.3. Please, use
getPageForLabelOrId(String) instead. |
ProductPageModel |
getPageByProduct(ProductModel product)
Deprecated.
since 4.3. Please, use
getPageForProduct(ProductModel) instead. |
ProductPageModel |
getPageByProductCode(java.lang.String productCode)
Deprecated.
since 4.3. Please, use
getPageForProductCode(String) instead. |
CatalogPageModel |
getPageForCatalog(CatalogModel catalog)
Gets the page by catalog.
|
CatalogPageModel |
getPageForCatalogId(java.lang.String catalogId)
Gets the page for catalog id.
|
CategoryPageModel |
getPageForCategory(CategoryModel category)
Gets the page for category.
|
CategoryPageModel |
getPageForCategoryCode(java.lang.String categoryCode)
Gets the page for category code.
|
AbstractPageModel |
getPageForId(java.lang.String id)
Gets the page for id.
|
ContentPageModel |
getPageForLabel(java.lang.String label)
Gets the page for label.
|
ContentPageModel |
getPageForLabelAndPageStatuses(java.lang.String label,
java.util.List<CmsPageStatus> pageStatuses)
Gets the page for label by page status.
|
ContentPageModel |
getPageForLabelOrId(java.lang.String labelOrId)
Gets the page for label or id.
|
ProductPageModel |
getPageForProduct(ProductModel product)
Gets the page for product.
|
ProductPageModel |
getPageForProductCode(java.lang.String productCode)
Gets the page for product code.
|
java.util.Collection<AbstractPageModel> |
getPagesByPageTemplateComponent(AbstractCMSComponentModel component)
Deprecated.
since 4.3. Please, use
getPagesForPageTemplateComponent(AbstractCMSComponentModel) instead. |
java.util.Collection<AbstractPageModel> |
getPagesByPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
Deprecated.
since 4.3. Please, use
getPagesForPageTemplateContentSlots(Collection) instead. |
java.util.Collection<AbstractPageModel> |
getPagesForComponent(AbstractCMSComponentModel component)
Returns all pages where given component occurs.
|
java.util.Collection<AbstractPageModel> |
getPagesForContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
Returns all pages where given content slots occurs.
|
java.util.Collection<AbstractPageModel> |
getPagesForPageTemplateComponent(AbstractCMSComponentModel component)
Gets the pages for page template component.
|
java.util.Collection<AbstractPageModel> |
getPagesForPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
Gets the pages for page template content slots.
|
java.util.List<ContentSlotModel> |
getSortedMultiCountryContentSlots(java.util.List<ContentSlotModel> contentSlots,
java.util.List<CatalogVersionModel> catalogVersions)
Gets the content slots sorted by their catalog hierarchy.
|
java.util.Collection<PageTemplateModel> getAllActivePageTemplates()
java.util.Collection<ContentPageModel> getAllContentPages()
java.util.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, java.lang.String position) throws CMSItemNotFoundException
page - the page modelposition - the positionCMSItemNotFoundException - if no content slot is defined at this position in that pagejava.util.Collection<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.java.util.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 found@Deprecated ContentPageModel getDefaultContentPage(java.lang.String label) throws CMSItemNotFoundException
getDefaultPageForLabel(String, CatalogVersionModel) instead.label - ContentPage labelCMSItemNotFoundException - if no default content page with the given label could be found@Deprecated ContentPageModel getDefaultPageByLabel(java.lang.String label, CatalogVersionModel version) throws CMSItemNotFoundException
getDefaultPageForLabel(String, CatalogVersionModel)
instead.label - the labelversion - the versionCMSItemNotFoundException - thrown when item was not foundContentPageModel getDefaultPageForLabel(java.lang.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 foundjava.lang.String getFrontendTemplateName(PageTemplateModel template)
PageTemplateModel object.template - the PageTemplateModel object.ContentPageModel getHomepage()
java.lang.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(java.lang.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(java.lang.String categoryCode) throws CMSItemNotFoundException
getPageForCategoryCode(String) instead.categoryCode - the category codeCMSItemNotFoundException - thrown when item was not found@Deprecated AbstractPageModel getPageById(java.lang.String id) throws CMSItemNotFoundException
getPageForId(String) instead.id - the idCMSItemNotFoundException - thrown when item was not found@Deprecated ContentPageModel getPageByLabel(java.lang.String label) throws CMSItemNotFoundException
getPageForLabel(String) instead.label - the labelCMSItemNotFoundException - thrown when item was not found@Deprecated ContentPageModel getPageByLabelOrId(java.lang.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(java.lang.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(java.lang.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(java.lang.String categoryCode) throws CMSItemNotFoundException
categoryCode - the category codeCMSItemNotFoundException - thrown when item was not foundAbstractPageModel getPageForId(java.lang.String id) throws CMSItemNotFoundException
id - the idCMSItemNotFoundException - thrown when item was not foundContentPageModel getPageForLabel(java.lang.String label) throws CMSItemNotFoundException
label - the labelCMSItemNotFoundException - thrown when item was not foundContentPageModel getPageForLabelAndPageStatuses(java.lang.String label, java.util.List<CmsPageStatus> pageStatuses) throws CMSItemNotFoundException
label - the labelpageStatuses - the page statuses. i.e. (deleted, active)CMSItemNotFoundException - thrown when item was not foundContentPageModel getPageForLabelOrId(java.lang.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(java.lang.String productCode) throws CMSItemNotFoundException
productCode - the product codeCMSItemNotFoundException - thrown when item was not found@Deprecated java.util.Collection<AbstractPageModel> getPagesByPageTemplateComponent(AbstractCMSComponentModel component)
getPagesForPageTemplateComponent(AbstractCMSComponentModel) instead.component - - component model that we are looking pages for@Deprecated java.util.Collection<AbstractPageModel> getPagesByPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
getPagesForPageTemplateContentSlots(Collection) instead.contentSlots - - content slot model that we are looking pages forjava.util.Collection<AbstractPageModel> getPagesForComponent(AbstractCMSComponentModel component)
component - - component model that we are looking pages forjava.util.Collection<AbstractPageModel> getPagesForContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
contentSlots - - content slot model that we are looking pages forjava.util.Collection<AbstractPageModel> getPagesForPageTemplateComponent(AbstractCMSComponentModel component)
component - the componentjava.util.Collection<AbstractPageModel> getPagesForPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
contentSlots - the content slotsjava.util.List<ContentSlotModel> getSortedMultiCountryContentSlots(java.util.List<ContentSlotModel> contentSlots, java.util.List<CatalogVersionModel> catalogVersions)
contentSlots - - the content slotscatalogVersions - - the catalog versionsCopyright © 2018 SAP SE. All Rights Reserved.