public class CmsCockpitServiceImpl extends AbstractServiceImpl implements CmsCockpitService
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
modelService, typeServiceABSTRACTPAGE_UID_PREFIX, CMSITEM_UID| Constructor and Description |
|---|
CmsCockpitServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentSlotModel |
cloneContentSlot(ContentSlotModel original) |
protected ContentSlotForPageModel |
cloneContentSlotForPageRelation(ContentSlotForPageModel original) |
protected void |
cloneContentSlots(AbstractPageModel source,
AbstractPageModel target) |
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
|
CMSAdminSiteService |
getAdminSiteService() |
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
|
HybrisEnumValue |
getApprovalStatusFromCode(java.lang.String code) |
java.lang.String |
getApprovalStatusName(java.lang.String code)
Find an approval status name from a given code
|
CMSAdminContentSlotService |
getCMSAdminContentSlotService() |
protected CMSAdminPageService |
getCmsAdminPageService() |
TypedObject |
getDefaultPage(TypedObject originalPage)
Find the default page for a given page
|
GenericRandomNameProducer |
getGenericRandomNameProducer() |
protected LocalizationService |
getLocalizationService() |
PermissionCheckingService |
getPermissionCheckingService() |
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
|
protected ScriptEvaluationService |
getScriptEvaluationService() |
java.util.Collection<CMSSiteModel> |
getSites()
Find all sites
|
SystemService |
getSystemService() |
UserService |
getUserService() |
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 typedObject,
java.lang.String code)
Update an approval status for a given code
|
void |
setCmsAdminPageService(CMSAdminPageService cmsAdminPageService) |
void |
setGenericRandomNameProducer(GenericRandomNameProducer genericRandomNameProducer) |
void |
setLocalizationService(LocalizationService localizationService) |
void |
setPermissionCheckingService(PermissionCheckingService permissionCheckingService) |
void |
setScriptEvaluationService(ScriptEvaluationService scriptEvaluationService) |
void |
setSystemService(SystemService systemService) |
void |
setUserService(UserService userService) |
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelServicepublic java.util.List<java.lang.String> getAllApprovalStatusCodes()
CmsCockpitServicegetAllApprovalStatusCodes in interface CmsCockpitServicepublic java.lang.String getApprovalStatusName(java.lang.String code)
CmsCockpitServicegetApprovalStatusName in interface CmsCockpitServicecode - of approval statuspublic HybrisEnumValue getApprovalStatusFromCode(java.lang.String code)
public void setApprovalStatus(TypedObject typedObject, java.lang.String code)
CmsCockpitServicesetApprovalStatus in interface CmsCockpitServicetypedObject - requiring an approvalcode - of approval status to be updatedpublic java.lang.String getApprovalStatusCode(TypedObject item)
CmsCockpitServicegetApprovalStatusCode in interface CmsCockpitServiceitem - having an approval statuspublic boolean isPartOfTemplate(TypedObject cmsComponent)
CmsCockpitServiceisPartOfTemplate in interface CmsCockpitServicecmsComponent - to be determined if it is contained in a templatetrue if a component is part of a template; false otherwisepublic boolean isRestricted(TypedObject cmsComponent)
CmsCockpitServiceisRestricted in interface CmsCockpitServicecmsComponent - to be determined if it has any restrictionstrue if a component has at least one restriction; false otherwisepublic TypedObject clonePageFirstLevel(TypedObject page, java.lang.String name)
CmsCockpitServiceclonePageFirstLevel in interface CmsCockpitServicepage - the page to use as templatename - the name for the new page, if null the name of the original page is usedprotected void cloneContentSlots(AbstractPageModel source, AbstractPageModel target)
protected ContentSlotForPageModel cloneContentSlotForPageRelation(ContentSlotForPageModel original)
protected ContentSlotModel cloneContentSlot(ContentSlotModel original)
public java.lang.String createRestrictionTooltip(TypedObject restriction)
CmsCockpitServicecreateRestrictionTooltip in interface CmsCockpitServicerestriction - containing the description to be displayedpublic CMSAdminContentSlotService getCMSAdminContentSlotService()
public GenericRandomNameProducer getGenericRandomNameProducer()
public CMSAdminSiteService getAdminSiteService()
public java.util.Collection<CMSSiteModel> getWebsites()
CmsCockpitServicegetWebsites in interface CmsCockpitServicepublic java.util.List<AbstractPageModel> getRecentlyEditedPages(int count)
CmsCockpitServicegetRecentlyEditedPages in interface CmsCockpitServicecount - max number of pages to be returnedpublic void setGenericRandomNameProducer(GenericRandomNameProducer genericRandomNameProducer)
public SystemService getSystemService()
public void setSystemService(SystemService systemService)
public void setLocalizationService(LocalizationService localizationService)
protected LocalizationService getLocalizationService()
public java.util.List<TypedObject> getPersonalizedPages(TypedObject page)
CmsCockpitServicegetPersonalizedPages in interface CmsCockpitServicepage - which is personalizedpublic java.util.List<TypedObject> getPersonalizedPages(TypedObject page, TypedObject excludePage)
CmsCockpitServicegetPersonalizedPages in interface CmsCockpitServicepage - which is personalizedexcludePage - which is excludedpublic TypedObject getDefaultPage(TypedObject originalPage)
CmsCockpitServicegetDefaultPage in interface CmsCockpitServiceoriginalPage - having a default pagepublic void setCmsAdminPageService(CMSAdminPageService cmsAdminPageService)
protected CMSAdminPageService getCmsAdminPageService()
public java.util.Collection<CMSSiteModel> getSites()
CmsCockpitServicegetSites in interface CmsCockpitServicepublic PermissionCheckingService getPermissionCheckingService()
public void setPermissionCheckingService(PermissionCheckingService permissionCheckingService)
permissionCheckingService - the permissionCheckingService to setpublic UserService getUserService()
public void setUserService(UserService userService)
userService - the userService to setpublic void setScriptEvaluationService(ScriptEvaluationService scriptEvaluationService)
protected ScriptEvaluationService getScriptEvaluationService()
Copyright © 2018 SAP SE. All Rights Reserved.