Class CmsCockpitServiceImpl
java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
de.hybris.platform.cmscockpit.services.impl.CmsCockpitServiceImpl
- All Implemented Interfaces:
CmsCockpitService
-
Field Summary
FieldsFields inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
modelService, typeServiceFields inherited from interface de.hybris.platform.cmscockpit.services.CmsCockpitService
ABSTRACTPAGE_UID_PREFIX, CMSITEM_UID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentSlotModelcloneContentSlot(ContentSlotModel original) protected ContentSlotForPageModelprotected voidcloneContentSlots(AbstractPageModel source, AbstractPageModel target) clonePageFirstLevel(TypedObject page, String name) Creates a new page on base of an already existing page.createRestrictionTooltip(TypedObject restriction) Retrieve the restriction description to be displayed in a tooltipReturn all approval status codesFind the approval status code for a given itemgetApprovalStatusName(String code) Find an approval status name from a given codeprotected CMSAdminPageServicegetDefaultPage(TypedObject originalPage) Find the default page for a given pageprotected LocalizationServiceFind all personalized pages for a given pagegetPersonalizedPages(TypedObject page, TypedObject excludePage) Find all personalized pages for a given page without a given excluded pagegetRecentlyEditedPages(int count) Find all pages recently editedprotected ScriptEvaluationServicegetSites()Find all sitesFind all sitesbooleanisPartOfTemplate(TypedObject cmsComponent) Determine whether a component is part of a templatebooleanisRestricted(TypedObject cmsComponent) Determine whether a component has any associated restrictions or notvoidsetApprovalStatus(TypedObject typedObject, String code) Update an approval status for a given codevoidsetCmsAdminPageService(CMSAdminPageService cmsAdminPageService) voidsetGenericRandomNameProducer(GenericRandomNameProducer genericRandomNameProducer) voidsetLocalizationService(LocalizationService localizationService) voidsetPermissionCheckingService(PermissionCheckingService permissionCheckingService) voidsetScriptEvaluationService(ScriptEvaluationService scriptEvaluationService) voidsetSystemService(SystemService systemService) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelService
-
Field Details
-
LOG
public static final org.apache.log4j.Logger LOG
-
-
Constructor Details
-
CmsCockpitServiceImpl
public CmsCockpitServiceImpl()
-
-
Method Details
-
getAllApprovalStatusCodes
Description copied from interface:CmsCockpitServiceReturn all approval status codes- Specified by:
getAllApprovalStatusCodesin interfaceCmsCockpitService- Returns:
- all approval status codes
-
getApprovalStatusName
Description copied from interface:CmsCockpitServiceFind an approval status name from a given code- Specified by:
getApprovalStatusNamein interfaceCmsCockpitService- Parameters:
code- of approval status- Returns:
- the approval status name
-
getApprovalStatusFromCode
-
setApprovalStatus
Description copied from interface:CmsCockpitServiceUpdate an approval status for a given code- Specified by:
setApprovalStatusin interfaceCmsCockpitService- Parameters:
typedObject- requiring an approvalcode- of approval status to be updated
-
getApprovalStatusCode
Description copied from interface:CmsCockpitServiceFind the approval status code for a given item- Specified by:
getApprovalStatusCodein interfaceCmsCockpitService- Parameters:
item- having an approval status- Returns:
- approval status code
-
isPartOfTemplate
Description copied from interface:CmsCockpitServiceDetermine whether a component is part of a template- Specified by:
isPartOfTemplatein interfaceCmsCockpitService- Parameters:
cmsComponent- to be determined if it is contained in a template- Returns:
trueif a component is part of a template;falseotherwise
-
isRestricted
Description copied from interface:CmsCockpitServiceDetermine whether a component has any associated restrictions or not- Specified by:
isRestrictedin interfaceCmsCockpitService- Parameters:
cmsComponent- to be determined if it has any restrictions- Returns:
trueif a component has at least one restriction;falseotherwise
-
clonePageFirstLevel
Description copied from interface:CmsCockpitServiceCreates a new page on base of an already existing page. Also creates new content slots for this page, but components are the same as in the original page.- Specified by:
clonePageFirstLevelin interfaceCmsCockpitService- Parameters:
page- the page to use as templatename- the name for the new page, if null the name of the original page is used- Returns:
- the new page
-
cloneContentSlots
-
cloneContentSlotForPageRelation
-
cloneContentSlot
-
createRestrictionTooltip
Description copied from interface:CmsCockpitServiceRetrieve the restriction description to be displayed in a tooltip- Specified by:
createRestrictionTooltipin interfaceCmsCockpitService- Parameters:
restriction- containing the description to be displayed- Returns:
- the description of a given restriction
-
getCMSAdminContentSlotService
-
getGenericRandomNameProducer
-
getAdminSiteService
-
getWebsites
Description copied from interface:CmsCockpitServiceFind all sites- Specified by:
getWebsitesin interfaceCmsCockpitService- Returns:
- collection of sites, user type permission is checked before returning
-
getRecentlyEditedPages
Description copied from interface:CmsCockpitServiceFind all pages recently edited- Specified by:
getRecentlyEditedPagesin interfaceCmsCockpitService- Parameters:
count- max number of pages to be returned- Returns:
- all pages recently edited
-
setGenericRandomNameProducer
-
getSystemService
-
setSystemService
-
setLocalizationService
-
getLocalizationService
-
getPersonalizedPages
Description copied from interface:CmsCockpitServiceFind all personalized pages for a given page- Specified by:
getPersonalizedPagesin interfaceCmsCockpitService- Parameters:
page- which is personalized- Returns:
- all personalized pages for a given page
-
getPersonalizedPages
Description copied from interface:CmsCockpitServiceFind all personalized pages for a given page without a given excluded page- Specified by:
getPersonalizedPagesin interfaceCmsCockpitService- Parameters:
page- which is personalizedexcludePage- which is excluded- Returns:
- all personalized pages for a given page
-
getDefaultPage
Description copied from interface:CmsCockpitServiceFind the default page for a given page- Specified by:
getDefaultPagein interfaceCmsCockpitService- Parameters:
originalPage- having a default page- Returns:
- a default page for a given page
-
setCmsAdminPageService
-
getCmsAdminPageService
-
getSites
Description copied from interface:CmsCockpitServiceFind all sites- Specified by:
getSitesin interfaceCmsCockpitService- Returns:
- collection of sites, user type permission is checked before returning
-
getPermissionCheckingService
- Returns:
- the permissionCheckingService
-
setPermissionCheckingService
- Parameters:
permissionCheckingService- the permissionCheckingService to set
-
getUserService
- Returns:
- the userService
-
setUserService
- Parameters:
userService- the userService to set
-
setScriptEvaluationService
-
getScriptEvaluationService
-