Class ContentDestructionComponent
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.content.ContentDestructionComponent
-
public class ContentDestructionComponent extends Object
Content destruction component.- Since:
- 2.4.a
- Author:
- Roy Wetherall
-
-
Constructor Summary
Constructors Constructor Description ContentDestructionComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroyContent(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Destroy contentvoid
destroyContent(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean includeRenditions)
Destroy contentprotected org.alfresco.repo.policy.BehaviourFilter
getBehaviourFilter()
protected org.alfresco.service.cmr.dictionary.DictionaryService
getDictionaryService()
protected EagerContentStoreCleaner
getEagerContentStoreCleaner()
protected org.alfresco.service.cmr.repository.NodeService
getNodeService()
boolean
isCleansingEnabled()
protected void
registerAllContentForDestruction(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean clearContentProperty)
Registers all content on the given node for destruction.void
setBehaviourFilter(org.alfresco.repo.policy.BehaviourFilter behaviourFilter)
void
setCleansingEnabled(boolean cleansingEnabled)
void
setContentBinDuplicationUtility(ContentBinDuplicationUtility contentBinDuplicationUtility)
Setter for content duplication utility classvoid
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
void
setEagerContentStoreCleaner(EagerContentStoreCleaner eagerContentStoreCleaner)
void
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
-
-
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 referenceclearContentProperty
- if true then clear content property, otherwise false
-
-