public interface CMSAdminPageService
| Modifier and Type | Method and Description |
|---|---|
CategoryPageModel |
createCategoryPage(String id,
String name,
String masterTemplateId,
boolean isDefault)
Creates the category page.
|
ContentPageModel |
createContentPage(String id,
String name,
String masterTemplateId,
String label)
Creates the content page.
|
AbstractPageModel |
createPage(String composedType,
String id,
String name,
String masterTemplateId)
Creates the page.
|
ProductPageModel |
createProductPage(String id,
String name,
String masterTemplateId,
boolean isDefault)
Creates the product page.
|
void |
deletePage(String id)
Delete a page from the active catalog version
|
Collection<AbstractPageModel> |
findPagesByType(ComposedTypeModel composedType,
boolean isDefault)
Gets the all default or non-default pages by page type from the active catalog version.
|
CatalogVersionModel |
getActiveCatalogVersion()
Gets the active catalog version.
|
Collection<PageTemplateModel> |
getAllActivePageTemplates()
returns all page templates which are set to active (only of the active catalogVersion)
|
Collection<ContentPageModel> |
getAllContentPages(Collection<CatalogVersionModel> catalogVersions)
Gets the all content pages.
|
Collection<AbstractPageModel> |
getAllPages()
Returns all pages which are assigned to the active catalog version
|
Collection<AbstractPageModel> |
getAllPages(CatalogVersionModel catalogVersion)
Gets the all pages.
|
Collection<AbstractPageModel> |
getAllPagesByType(String type)
Returns all pages which are assigned to the active catalog version and are of the given type
|
Collection<AbstractPageModel> |
getAllPagesByType(String type,
CatalogVersionModel catalogVersion)
Gets the all pages by type.
|
Map<String,Collection<AbstractPageModel>> |
getAllPagesMap()
returns all pages of the active catalogVersion.
|
Collection<PageTemplateModel> |
getAllPageTemplates(boolean active)
returns all page templates (only of the active catalogVersion)
|
Collection<PageTemplateModel> |
getAllPageTemplates(Collection<CatalogVersionModel> catalogVersions)
Gets the all page templates.
|
Collection<CMSPageTypeModel> |
getAllPageTypes()
Returns a collection of all available page types.
|
Collection<PageTemplateModel> |
getAllRestrictedPageTemplates(boolean active,
CMSPageTypeModel type)
returns all restricted page templates (only of the active catalogVersion)
|
Collection<ContentPageModel> |
getContentPages(Collection<CatalogVersionModel> catalogVersions,
String label)
Gets the content pages.
|
ContentPageModel |
getHomepage(CMSSiteModel siteModel)
Gets the homepage for a given CMS Site.
|
AbstractPageModel |
getPageById(String id)
Deprecated.
use
getPageForIdFromActiveCatalogVersion(String) instead. |
AbstractPageModel |
getPageForIdFromActiveCatalogVersion(String id)
Returns the page with the given id from active catalogVersion.
|
PageTemplateModel |
getPageTemplateById(String id)
Deprecated.
use
getPageTemplateForIdFromActiveCatalogVersion(String) instead. |
PageTemplateModel |
getPageTemplateForIdFromActiveCatalogVersion(String id)
Gets the page template with the give id.
|
Optional<CMSPageTypeModel> |
getPageTypeByCode(String typeCode)
Returns the page type with the given type code.
|
boolean |
pageExists(String id)
Checks if a page exists in the active catalog version
|
void |
save(AbstractPageModel page)
Deprecated.
use
ModelService.save(Object) instead. |
void |
updatePage(AbstractPageModel page,
String name,
String masterTemplateId)
Updates the given page.
|
CategoryPageModel createCategoryPage(String id, String name, String masterTemplateId, boolean isDefault) throws CMSItemCreateException
id - the idname - the namemasterTemplateId - the master template idisDefault - the is defaultCMSItemCreateException - the cMS item create exceptionContentPageModel createContentPage(String id, String name, String masterTemplateId, String label) throws CMSItemCreateException
id - the idname - the namemasterTemplateId - the master template idlabel - the labelCMSItemCreateException - the cMS item create exceptionAbstractPageModel createPage(String composedType, String id, String name, String masterTemplateId) throws CMSItemCreateException
composedType - the composed typeid - the idname - the namemasterTemplateId - the master template idCMSItemCreateException - the cMS item create exceptionProductPageModel createProductPage(String id, String name, String masterTemplateId, boolean isDefault) throws CMSItemCreateException
id - the idname - the namemasterTemplateId - the master template idisDefault - the is defaultCMSItemCreateException - the cMS item create exceptionvoid deletePage(String id) throws CMSItemNotFoundException
id - CMSItemNotFoundException - if no page with the give id is foundCatalogVersionModel getActiveCatalogVersion()
Collection<PageTemplateModel> getAllActivePageTemplates()
Collection<ContentPageModel> getAllContentPages(Collection<CatalogVersionModel> catalogVersions)
catalogVersions - the catalog versionsCollection<CMSPageTypeModel> getAllPageTypes()
Optional<CMSPageTypeModel> getPageTypeByCode(String typeCode)
typeCode - the type code of the page type to retrieveCollection<AbstractPageModel> getAllPages()
Collection<AbstractPageModel> getAllPages(CatalogVersionModel catalogVersion)
catalogVersion - the catalog versionCollection<AbstractPageModel> getAllPagesByType(String type)
type - should be a sub-type of AbstractPageCollection<AbstractPageModel> getAllPagesByType(String type, CatalogVersionModel catalogVersion)
type - the typecatalogVersion - the catalog versionMap<String,Collection<AbstractPageModel>> getAllPagesMap()
Collection<PageTemplateModel> getAllPageTemplates(boolean active)
active - if set to true only page templates are returned which are set as activeCollection<PageTemplateModel> getAllPageTemplates(Collection<CatalogVersionModel> catalogVersions)
catalogVersions - the catalog versionsCollection<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 restrictedCollection<ContentPageModel> getContentPages(Collection<CatalogVersionModel> catalogVersions, String label)
catalogVersions - the catalog versionslabel - the label@Deprecated AbstractPageModel getPageById(String id) throws CMSItemNotFoundException
getPageForIdFromActiveCatalogVersion(String) instead.id - the id of the pageCMSItemNotFoundException - if no page with the given id is foundAbstractPageModel getPageForIdFromActiveCatalogVersion(String id) throws AmbiguousIdentifierException, UnknownIdentifierException
id - the id of the pageAmbiguousIdentifierExceptionUnknownIdentifierException@Deprecated PageTemplateModel getPageTemplateById(String id) throws CMSItemNotFoundException
getPageTemplateForIdFromActiveCatalogVersion(String) instead.id - CMSItemNotFoundException - if no template with the given id is foundPageTemplateModel getPageTemplateForIdFromActiveCatalogVersion(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(String id)
id - page idtrue if the page exists in the active catalog version; false otherwise@Deprecated void save(AbstractPageModel page)
ModelService.save(Object) instead.page - the page model objectvoid updatePage(AbstractPageModel page, String name, String masterTemplateId) throws CMSItemNotFoundException
page - name - masterTemplateId - CMSItemNotFoundExceptionContentPageModel getHomepage(CMSSiteModel siteModel)
siteModel - Collection<AbstractPageModel> findPagesByType(ComposedTypeModel composedType, boolean isDefault)
composedType - the page type modelisDefault - true to find default pages; false otherwiseCopyright © 2017 SAP SE. All Rights Reserved.