public interface CMSAdminPageService
| Modifier and Type | Method and Description |
|---|---|
CategoryPageModel |
createCategoryPage(java.lang.String id,
java.lang.String name,
java.lang.String masterTemplateId,
boolean isDefault)
Creates the category page.
|
ContentPageModel |
createContentPage(java.lang.String id,
java.lang.String name,
java.lang.String masterTemplateId,
java.lang.String label)
Creates the content page.
|
AbstractPageModel |
createPage(java.lang.String composedType,
java.lang.String id,
java.lang.String name,
java.lang.String masterTemplateId)
Creates the page.
|
ProductPageModel |
createProductPage(java.lang.String id,
java.lang.String name,
java.lang.String masterTemplateId,
boolean isDefault)
Creates the product page.
|
void |
deletePage(java.lang.String id)
Delete a page from the active catalog version
|
java.util.Collection<AbstractPageModel> |
findPagesByType(ComposedTypeModel composedType,
boolean isDefault)
Gets the all default or non-default active pages by page type from the active catalog version.
|
java.util.Collection<AbstractPageModel> |
findPagesByTypeAndPageStatuses(ComposedTypeModel composedType,
boolean isDefault,
java.util.List<CmsPageStatus> pageStatuses)
Gets the all default or non-default pages by page type from the active catalog version.
|
CatalogVersionModel |
getActiveCatalogVersion()
Gets the active catalog version.
|
java.util.Collection<PageTemplateModel> |
getAllActivePageTemplates()
returns all page templates which are set to active (only of the active catalogVersion)
|
java.util.Collection<ContentPageModel> |
getAllContentPages(java.util.Collection<CatalogVersionModel> catalogVersions)
Gets the all active content pages.
|
java.util.Collection<ContentPageModel> |
getAllContentPagesForPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions,
java.util.List<CmsPageStatus> pageStatuses)
Gets the all content pages for a given list of page status.
|
java.util.Collection<AbstractPageModel> |
getAllPages()
Returns all pages which are assigned to the active catalog version
|
java.util.Collection<AbstractPageModel> |
getAllPages(CatalogVersionModel catalogVersion)
Gets the all active pages.
|
java.util.Collection<AbstractPageModel> |
getAllPagesByType(java.lang.String type)
Returns all pages which are assigned to the active catalog version and are of the given type
|
java.util.Collection<AbstractPageModel> |
getAllPagesByType(java.lang.String type,
CatalogVersionModel catalogVersion)
Gets the all pages by type.
|
java.util.Collection<AbstractPageModel> |
getAllPagesForCatalogVersionAndPageStatuses(CatalogVersionModel catalogVersion,
java.util.List<CmsPageStatus> pageStatuses)
Returns all pages which are assigned to the given catalog version and given page statuses
|
java.util.Map<java.lang.String,java.util.Collection<AbstractPageModel>> |
getAllPagesMap()
returns all pages of the active catalogVersion.
|
java.util.Collection<PageTemplateModel> |
getAllPageTemplates(boolean active)
returns all page templates (only of the active catalogVersion)
|
java.util.Collection<PageTemplateModel> |
getAllPageTemplates(java.util.Collection<CatalogVersionModel> catalogVersions)
Gets the all page templates.
|
java.util.Collection<CMSPageTypeModel> |
getAllPageTypes()
Returns a collection of all available page types.
|
java.util.Collection<PageTemplateModel> |
getAllRestrictedPageTemplates(boolean active,
CMSPageTypeModel type)
returns all restricted page templates (only of the active catalogVersion)
|
java.util.Collection<ContentPageModel> |
getContentPages(java.util.Collection<CatalogVersionModel> catalogVersions,
java.lang.String label)
Gets the content pages.
|
ContentPageModel |
getHomepage(CatalogVersionModel catalogVersion)
Gets the homepage for a given catalog version
|
ContentPageModel |
getHomepage(CMSSiteModel siteModel)
Gets the homepage for a given CMS Site.
|
ContentPageModel |
getHomepage(java.util.List<CatalogVersionModel> catalogVersions)
Gets the homepage for the given catalog versions.
|
AbstractPageModel |
getIdenticalPrimaryPageModel(AbstractPageModel pageModel)
Returns identical primary page for provided pageModel.
|
AbstractPageModel |
getPageForId(java.lang.String id,
java.util.Collection<CatalogVersionModel> catalogVersions)
Returns the active page with the given id and the catalog versions.
|
AbstractPageModel |
getPageForIdFromActiveCatalogVersion(java.lang.String id)
Returns the active page with the given id from the active catalogVersion.
|
AbstractPageModel |
getPageForIdFromActiveCatalogVersionByPageStatuses(java.lang.String id,
java.util.List<CmsPageStatus> pageStatuses)
Returns the page with the given id and page status list from the active catalogVersion.
|
PageTemplateModel |
getPageTemplateForIdFromActiveCatalogVersion(java.lang.String id)
Gets the page template with the give id.
|
java.util.Optional<CMSPageTypeModel> |
getPageTypeByCode(java.lang.String typeCode)
Returns the page type with the given type code.
|
boolean |
pageExists(java.lang.String id)
Checks if a page exists in the active catalog version
|
void |
updatePage(AbstractPageModel page,
java.lang.String name,
java.lang.String masterTemplateId)
Updates the given page.
|
CategoryPageModel createCategoryPage(java.lang.String id, java.lang.String name, java.lang.String masterTemplateId, boolean isDefault) throws CMSItemCreateException
id - the idname - the namemasterTemplateId - the master template idisDefault - the is defaultCMSItemCreateException - the cMS item create exceptionContentPageModel createContentPage(java.lang.String id, java.lang.String name, java.lang.String masterTemplateId, java.lang.String label) throws CMSItemCreateException
id - the idname - the namemasterTemplateId - the master template idlabel - the labelCMSItemCreateException - the cMS item create exceptionAbstractPageModel createPage(java.lang.String composedType, java.lang.String id, java.lang.String name, java.lang.String masterTemplateId) throws CMSItemCreateException
composedType - the composed typeid - the idname - the namemasterTemplateId - the master template idCMSItemCreateException - the cMS item create exceptionProductPageModel createProductPage(java.lang.String id, java.lang.String name, java.lang.String masterTemplateId, boolean isDefault) throws CMSItemCreateException
id - the idname - the namemasterTemplateId - the master template idisDefault - the is defaultCMSItemCreateException - the cMS item create exceptionvoid deletePage(java.lang.String id)
throws CMSItemNotFoundException
id - page idCMSItemNotFoundException - if no page with the give id is foundCatalogVersionModel getActiveCatalogVersion()
java.util.Collection<PageTemplateModel> getAllActivePageTemplates()
java.util.Collection<ContentPageModel> getAllContentPages(java.util.Collection<CatalogVersionModel> catalogVersions)
catalogVersions - the catalog versionsjava.util.Collection<ContentPageModel> getAllContentPagesForPageStatuses(java.util.Collection<CatalogVersionModel> catalogVersions, java.util.List<CmsPageStatus> pageStatuses)
catalogVersions - the catalog versionspageStatuses - a list of page statusjava.util.Collection<CMSPageTypeModel> getAllPageTypes()
java.util.Optional<CMSPageTypeModel> getPageTypeByCode(java.lang.String typeCode)
typeCode - the type code of the page type to retrievejava.util.Collection<AbstractPageModel> getAllPages()
java.util.Collection<AbstractPageModel> getAllPages(CatalogVersionModel catalogVersion)
catalogVersion - the catalog versionjava.util.Collection<AbstractPageModel> getAllPagesForCatalogVersionAndPageStatuses(CatalogVersionModel catalogVersion, java.util.List<CmsPageStatus> pageStatuses)
catalogVersion - the catalog version modelpageStatuses - a list of page statusesjava.util.Collection<AbstractPageModel> getAllPagesByType(java.lang.String type)
type - should be a sub-type of AbstractPagejava.util.Collection<AbstractPageModel> getAllPagesByType(java.lang.String type, CatalogVersionModel catalogVersion)
type - the typecatalogVersion - the catalog versionjava.util.Map<java.lang.String,java.util.Collection<AbstractPageModel>> getAllPagesMap()
java.util.Collection<PageTemplateModel> getAllPageTemplates(boolean active)
active - if set to true only page templates are returned which are set as activejava.util.Collection<PageTemplateModel> getAllPageTemplates(java.util.Collection<CatalogVersionModel> catalogVersions)
catalogVersions - the catalog versionsjava.util.Collection<PageTemplateModel> getAllRestrictedPageTemplates(boolean active, CMSPageTypeModel type)
active - if set to true only page templates are returned which are set as activetype - the page type to which the page template will be restrictedjava.util.Collection<ContentPageModel> getContentPages(java.util.Collection<CatalogVersionModel> catalogVersions, java.lang.String label)
catalogVersions - the catalog versionslabel - the labelAbstractPageModel getPageForIdFromActiveCatalogVersion(java.lang.String id) throws UnknownIdentifierException
id - the id of the pageUnknownIdentifierException - when no page is foundAbstractPageModel getPageForId(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
id - the id of the pagecatalogVersions - the catalog versionsUnknownIdentifierException - when no page is foundAbstractPageModel getPageForIdFromActiveCatalogVersionByPageStatuses(java.lang.String id, java.util.List<CmsPageStatus> pageStatuses) throws UnknownIdentifierException
id - the id of the pagepageStatuses - a list of page statusesUnknownIdentifierException - when no page is foundPageTemplateModel getPageTemplateForIdFromActiveCatalogVersion(java.lang.String id) throws AmbiguousIdentifierException, UnknownIdentifierException
id - the idAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundboolean pageExists(java.lang.String id)
id - page idtrue if the page exists in the active catalog version; false otherwisevoid updatePage(AbstractPageModel page, java.lang.String name, java.lang.String masterTemplateId) throws CMSItemNotFoundException
page - the page modelname - the new page name to be applied to the given page modelmasterTemplateId - the new page template to be applied to the given page modelCMSItemNotFoundException - when an item model is not foundContentPageModel getHomepage(CMSSiteModel siteModel)
siteModel - the site modelContentPageModel getHomepage(java.util.List<CatalogVersionModel> catalogVersions)
catalogVersions - the catalog versionsContentPageModel getHomepage(CatalogVersionModel catalogVersion)
catalogVersion - the catalog version containing the homepagejava.util.Collection<AbstractPageModel> findPagesByType(ComposedTypeModel composedType, boolean isDefault)
composedType - the page type modelisDefault - true to find default pages; false otherwisejava.util.Collection<AbstractPageModel> findPagesByTypeAndPageStatuses(ComposedTypeModel composedType, boolean isDefault, java.util.List<CmsPageStatus> pageStatuses)
composedType - the page type modelisDefault - true to find default pages; false otherwisepageStatuses - a list of page statusesAbstractPageModel getIdenticalPrimaryPageModel(AbstractPageModel pageModel)
pageModel - page modeCopyright © 2018 SAP SE. All Rights Reserved.