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() |
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelServicepublic List<String> getAllApprovalStatusCodes()
CmsCockpitServicegetAllApprovalStatusCodes in interface CmsCockpitServicepublic String getApprovalStatusName(String code)
CmsCockpitServicegetApprovalStatusName in interface CmsCockpitServicecode - of approval statuspublic HybrisEnumValue getApprovalStatusFromCode(String code)
public void setApprovalStatus(TypedObject typedObject, String code)
CmsCockpitServicesetApprovalStatus in interface CmsCockpitServicetypedObject - requiring an approvalcode - of approval status to be updatedpublic 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, 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 String createRestrictionTooltip(TypedObject restriction)
CmsCockpitServicecreateRestrictionTooltip in interface CmsCockpitServicerestriction - containing the description to be displayedpublic CMSAdminContentSlotService getCMSAdminContentSlotService()
public GenericRandomNameProducer getGenericRandomNameProducer()
public CMSAdminSiteService getAdminSiteService()
public Collection<CMSSiteModel> getWebsites()
CmsCockpitServicegetWebsites in interface CmsCockpitServicepublic 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 List<TypedObject> getPersonalizedPages(TypedObject page)
CmsCockpitServicegetPersonalizedPages in interface CmsCockpitServicepage - which is personalizedpublic 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 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 © 2017 SAP SE. All Rights Reserved.