public interface CmsCockpitService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ABSTRACTPAGE_UID_PREFIX |
static java.lang.String |
CMSITEM_UID |
| Modifier and Type | Method and Description |
|---|---|
TypedObject |
clonePageFirstLevel(TypedObject page,
java.lang.String name)
Creates a new page on base of an already existing page.
|
java.lang.String |
createRestrictionTooltip(TypedObject restriction)
Retrieve the restriction description to be displayed in a tooltip
|
java.util.List<java.lang.String> |
getAllApprovalStatusCodes()
Return all approval status codes
|
java.lang.String |
getApprovalStatusCode(TypedObject item)
Find the approval status code for a given item
|
java.lang.String |
getApprovalStatusName(java.lang.String code)
Find an approval status name from a given code
|
TypedObject |
getDefaultPage(TypedObject page)
Find the default page for a given page
|
java.util.List<TypedObject> |
getPersonalizedPages(TypedObject page)
Find all personalized pages for a given page
|
java.util.List<TypedObject> |
getPersonalizedPages(TypedObject page,
TypedObject excludePage)
Find all personalized pages for a given page without a given excluded page
|
java.util.List<AbstractPageModel> |
getRecentlyEditedPages(int count)
Find all pages recently edited
|
java.util.Collection<CMSSiteModel> |
getSites()
Find all sites
|
java.util.Collection<CMSSiteModel> |
getWebsites()
Find all sites
|
boolean |
isPartOfTemplate(TypedObject cmsComponent)
Determine whether a component is part of a template
|
boolean |
isRestricted(TypedObject cmsComponent)
Determine whether a component has any associated restrictions or not
|
void |
setApprovalStatus(TypedObject item,
java.lang.String code)
Update an approval status for a given code
|
static final java.lang.String CMSITEM_UID
static final java.lang.String ABSTRACTPAGE_UID_PREFIX
java.util.List<java.lang.String> getAllApprovalStatusCodes()
java.lang.String getApprovalStatusName(java.lang.String code)
code - of approval statusvoid setApprovalStatus(TypedObject item, java.lang.String code)
item - requiring an approvalcode - of approval status to be updatedjava.lang.String getApprovalStatusCode(TypedObject item)
item - having an approval statusboolean isPartOfTemplate(TypedObject cmsComponent)
cmsComponent - to be determined if it is contained in a templatetrue if a component is part of a template; false otherwiseboolean isRestricted(TypedObject cmsComponent)
cmsComponent - to be determined if it has any restrictionstrue if a component has at least one restriction; false otherwiseTypedObject clonePageFirstLevel(TypedObject page, java.lang.String name)
page - the page to use as templatename - the name for the new page, if null the name of the original page is usedjava.lang.String createRestrictionTooltip(TypedObject restriction)
restriction - containing the description to be displayedjava.util.Collection<CMSSiteModel> getWebsites()
java.util.List<AbstractPageModel> getRecentlyEditedPages(int count)
count - max number of pages to be returnedjava.util.List<TypedObject> getPersonalizedPages(TypedObject page)
page - which is personalizedjava.util.List<TypedObject> getPersonalizedPages(TypedObject page, TypedObject excludePage)
page - which is personalizedexcludePage - which is excludedTypedObject getDefaultPage(TypedObject page)
page - having a default pagejava.util.Collection<CMSSiteModel> getSites()
Copyright © 2018 SAP SE. All Rights Reserved.