Class ContentDestructionComponent


  • public class ContentDestructionComponent
    extends Object
    Content destruction component.
    Since:
    2.4.a
    Author:
    Roy Wetherall
    • Constructor Detail

      • ContentDestructionComponent

        public ContentDestructionComponent()
    • Method Detail

      • getEagerContentStoreCleaner

        protected EagerContentStoreCleaner getEagerContentStoreCleaner()
        Returns:
        the eagerContentStoreCleaner
      • getDictionaryService

        protected org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
        Returns:
        the dictionaryService
      • getNodeService

        protected org.alfresco.service.cmr.repository.NodeService getNodeService()
        Returns:
        the nodeService
      • getBehaviourFilter

        protected org.alfresco.repo.policy.BehaviourFilter getBehaviourFilter()
        Returns:
        the behaviourFilter
      • isCleansingEnabled

        public boolean isCleansingEnabled()
        Returns:
        true if cleansing is enabled, false otherwise
      • setEagerContentStoreCleaner

        public void setEagerContentStoreCleaner​(EagerContentStoreCleaner eagerContentStoreCleaner)
        Parameters:
        eagerContentStoreCleaner - eager content store cleaner
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - dictionary service
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - node service
      • setBehaviourFilter

        public void setBehaviourFilter​(org.alfresco.repo.policy.BehaviourFilter behaviourFilter)
        Parameters:
        behaviourFilter - behaviour filter
      • setContentBinDuplicationUtility

        public void setContentBinDuplicationUtility​(ContentBinDuplicationUtility contentBinDuplicationUtility)
        Setter for content duplication utility class
        Parameters:
        contentBinDuplicationUtility - ContentBinDuplicationUtility
      • setCleansingEnabled

        public void setCleansingEnabled​(boolean cleansingEnabled)
        Parameters:
        cleansingEnabled - true if cleansing enabled, false otherwise
      • destroyContent

        public void destroyContent​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Destroy content
        Parameters:
        nodeRef -
      • destroyContent

        public void destroyContent​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                   boolean includeRenditions)
        Destroy content
        Parameters:
        nodeRef -
        includeRenditions -
      • registerAllContentForDestruction

        protected void registerAllContentForDestruction​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                                        boolean clearContentProperty)
        Registers all content on the given node for destruction.
        Parameters:
        nodeRef - node reference
        clearContentProperty - if true then clear content property, otherwise false