Class CmsCockpitServiceImpl

    • Field Detail

      • LOG

        public static final org.apache.log4j.Logger LOG
    • Constructor Detail

      • CmsCockpitServiceImpl

        public CmsCockpitServiceImpl()
    • Method Detail

      • getApprovalStatusName

        public java.lang.String getApprovalStatusName​(java.lang.String code)
        Description copied from interface: CmsCockpitService
        Find an approval status name from a given code
        Specified by:
        getApprovalStatusName in interface CmsCockpitService
        Parameters:
        code - of approval status
        Returns:
        the approval status name
      • getApprovalStatusFromCode

        public HybrisEnumValue getApprovalStatusFromCode​(java.lang.String code)
      • setApprovalStatus

        public void setApprovalStatus​(TypedObject typedObject,
                                      java.lang.String code)
        Description copied from interface: CmsCockpitService
        Update an approval status for a given code
        Specified by:
        setApprovalStatus in interface CmsCockpitService
        Parameters:
        typedObject - requiring an approval
        code - of approval status to be updated
      • getApprovalStatusCode

        public java.lang.String getApprovalStatusCode​(TypedObject item)
        Description copied from interface: CmsCockpitService
        Find the approval status code for a given item
        Specified by:
        getApprovalStatusCode in interface CmsCockpitService
        Parameters:
        item - having an approval status
        Returns:
        approval status code
      • isPartOfTemplate

        public boolean isPartOfTemplate​(TypedObject cmsComponent)
        Description copied from interface: CmsCockpitService
        Determine whether a component is part of a template
        Specified by:
        isPartOfTemplate in interface CmsCockpitService
        Parameters:
        cmsComponent - to be determined if it is contained in a template
        Returns:
        true if a component is part of a template; false otherwise
      • isRestricted

        public boolean isRestricted​(TypedObject cmsComponent)
        Description copied from interface: CmsCockpitService
        Determine whether a component has any associated restrictions or not
        Specified by:
        isRestricted in interface CmsCockpitService
        Parameters:
        cmsComponent - to be determined if it has any restrictions
        Returns:
        true if a component has at least one restriction; false otherwise
      • clonePageFirstLevel

        public TypedObject clonePageFirstLevel​(TypedObject page,
                                               java.lang.String name)
        Description copied from interface: CmsCockpitService
        Creates 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:
        clonePageFirstLevel in interface CmsCockpitService
        Parameters:
        page - the page to use as template
        name - the name for the new page, if null the name of the original page is used
        Returns:
        the new page
      • createRestrictionTooltip

        public java.lang.String createRestrictionTooltip​(TypedObject restriction)
        Description copied from interface: CmsCockpitService
        Retrieve the restriction description to be displayed in a tooltip
        Specified by:
        createRestrictionTooltip in interface CmsCockpitService
        Parameters:
        restriction - containing the description to be displayed
        Returns:
        the description of a given restriction
      • setGenericRandomNameProducer

        public void setGenericRandomNameProducer​(GenericRandomNameProducer genericRandomNameProducer)
      • setSystemService

        public void setSystemService​(SystemService systemService)
      • setLocalizationService

        public void setLocalizationService​(LocalizationService localizationService)
      • getPersonalizedPages

        public java.util.List<TypedObject> getPersonalizedPages​(TypedObject page,
                                                                TypedObject excludePage)
        Description copied from interface: CmsCockpitService
        Find all personalized pages for a given page without a given excluded page
        Specified by:
        getPersonalizedPages in interface CmsCockpitService
        Parameters:
        page - which is personalized
        excludePage - which is excluded
        Returns:
        all personalized pages for a given page
      • setCmsAdminPageService

        public void setCmsAdminPageService​(CMSAdminPageService cmsAdminPageService)
      • getPermissionCheckingService

        public PermissionCheckingService getPermissionCheckingService()
        Returns:
        the permissionCheckingService
      • setPermissionCheckingService

        public void setPermissionCheckingService​(PermissionCheckingService permissionCheckingService)
        Parameters:
        permissionCheckingService - the permissionCheckingService to set
      • getUserService

        public UserService getUserService()
        Returns:
        the userService
      • setUserService

        public void setUserService​(UserService userService)
        Parameters:
        userService - the userService to set
      • setScriptEvaluationService

        public void setScriptEvaluationService​(ScriptEvaluationService scriptEvaluationService)