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.
|
ContentSlotData |
getContentSlotForPage(AbstractPageModel page,
java.lang.String position,
PagePreviewCriteriaData pagePreviewCriteria)
Returns a contentslot for the given page, position and
PagePreviewCriteriaData. |
java.util.Collection<ContentSlotForPageModel> |
getContentSlotModelsForPage(AbstractPageModel page,
PagePreviewCriteriaData pagePreviewCriteria)
Returns the
ContentSlotForPageModel objects for passed as parameter AbstractPageModel
object and PagePreviewCriteriaData. |
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<ContentSlotData> |
getContentSlotsForPage(AbstractPageModel page,
PagePreviewCriteriaData pagePreviewCriteria)
Returns collection of
ContentSlotData objects containing data taken from all
ContentSlotForPageModel objects as well from ContentSlotForTemplateModel objects for a
given AbstractPageModel and PagePreviewCriteriaData. |
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 |
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
|
ContentPageModel |
getHomepage(PagePreviewCriteriaData pagePreviewCriteria)
Returns homepage for
PagePreviewCriteriaData. |
java.lang.String |
getLabelOrId(ContentPageModel contentPage)
Gets the
ContentPageModel label or id if label is empty. |
java.util.Collection<ContentSlotForPageModel> |
getOwnContentSlotsForPage(AbstractPageModel page)
Returns the
ContentSlotForPageModel objects for passed as parameter AbstractPageModel
object. |
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 |
getPageForCategory(CategoryModel category,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for category and
PagePreviewCriteriaData. |
CategoryPageModel |
getPageForCategoryCode(java.lang.String categoryCode)
Gets the page for category code.
|
CategoryPageModel |
getPageForCategoryCode(java.lang.String categoryCode,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for category code and
PagePreviewCriteriaData. |
AbstractPageModel |
getPageForId(java.lang.String id)
Gets the page for id.
|
AbstractPageModel |
getPageForId(java.lang.String id,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for id and
PagePreviewCriteriaData. |
AbstractPageModel |
getPageForIdWithRestrictions(java.lang.String id)
Gets the page for id and evaluates the page restrictions
|
ContentPageModel |
getPageForLabel(java.lang.String label)
Gets the page for label.
|
ContentPageModel |
getPageForLabel(java.lang.String label,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for label and
PagePreviewCriteriaData. |
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.
|
ContentPageModel |
getPageForLabelOrId(java.lang.String labelOrId,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for label or id and
PagePreviewCriteriaData. |
ProductPageModel |
getPageForProduct(ProductModel product)
Gets the page for product.
|
ProductPageModel |
getPageForProduct(ProductModel product,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for product and
PagePreviewCriteriaData. |
ProductPageModel |
getPageForProductCode(java.lang.String productCode)
Gets the page for product code.
|
ProductPageModel |
getPageForProductCode(java.lang.String productCode,
PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for product code and
PagePreviewCriteriaData. |
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.java.util.Collection<ContentSlotForPageModel> getContentSlotModelsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
ContentSlotForPageModel objects for passed as parameter AbstractPageModel
object and PagePreviewCriteriaData.page - the AbstractPageModel object.pagePreviewCriteria - the PagePreviewCriteriaData 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 pageContentSlotData getContentSlotForPage(AbstractPageModel page, java.lang.String position, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData. WARNING: This could
be a
performance issue when you select all content slots of a page via this method. A better way is to set all
contentslots via getContentSlotsForPage(AbstractPageModel page) and set them in the request scopepage - the page modelposition - the positionpagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - 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<ContentSlotData> getContentSlotsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
ContentSlotData objects containing data taken from all
ContentSlotForPageModel objects as well from ContentSlotForTemplateModel objects for a
given AbstractPageModel and PagePreviewCriteriaData.page - the AbstractPageModel object.pagePreviewCriteria - the PagePreviewCriteriaData 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 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()
ContentPageModel getHomepage(PagePreviewCriteriaData pagePreviewCriteria)
PagePreviewCriteriaData.pagePreviewCriteria - the PagePreviewCriteriaData object.java.lang.String getLabelOrId(ContentPageModel contentPage)
ContentPageModel label or id if label is empty.contentPage - the ContentPageModel object.ContentPageModel.CatalogPageModel 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 getPageForCategory(CategoryModel category, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.category - the categorypagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is not foundCategoryPageModel getPageForCategoryCode(java.lang.String categoryCode) throws CMSItemNotFoundException
categoryCode - the category codeCMSItemNotFoundException - thrown when item was not foundCategoryPageModel getPageForCategoryCode(java.lang.String categoryCode, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.categoryCode - the category codepagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is not foundAbstractPageModel getPageForId(java.lang.String id) throws CMSItemNotFoundException
id - the idCMSItemNotFoundException - thrown when item was not foundAbstractPageModel getPageForIdWithRestrictions(java.lang.String id) throws CMSItemNotFoundException
id - the idCMSItemNotFoundException - thrown when item was not foundAbstractPageModel getPageForId(java.lang.String id, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.id - the idpagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is not foundContentPageModel getPageForLabel(java.lang.String label) throws CMSItemNotFoundException
label - the labelCMSItemNotFoundException - thrown when item was not foundContentPageModel getPageForLabel(java.lang.String label, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.label - the labelpagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is 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 foundContentPageModel getPageForLabelOrId(java.lang.String labelOrId, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.labelOrId - the label or idpagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is not foundProductPageModel getPageForProduct(ProductModel product) throws CMSItemNotFoundException
product - the productCMSItemNotFoundException - thrown when item was not foundProductPageModel getPageForProduct(ProductModel product, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.product - the productpagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is not foundProductPageModel getPageForProductCode(java.lang.String productCode) throws CMSItemNotFoundException
productCode - the product codeCMSItemNotFoundException - thrown when item was not foundProductPageModel getPageForProductCode(java.lang.String productCode, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
PagePreviewCriteriaData.productCode - the product codepagePreviewCriteria - the PagePreviewCriteriaData object.CMSItemNotFoundException - thrown when item is not foundjava.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.