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(NodeRef nodeRef)
Destroy contentvoid
destroyContent(NodeRef nodeRef, boolean includeRenditions)
Destroy contentprotected BehaviourFilter
getBehaviourFilter()
protected DictionaryService
getDictionaryService()
protected EagerContentStoreCleaner
getEagerContentStoreCleaner()
protected NodeService
getNodeService()
boolean
isCleansingEnabled()
protected void
registerAllContentForDestruction(NodeRef nodeRef, boolean clearContentProperty)
Registers all content on the given node for destruction.void
setBehaviourFilter(BehaviourFilter behaviourFilter)
void
setCleansingEnabled(boolean cleansingEnabled)
void
setContentBinDuplicationUtility(ContentBinDuplicationUtility contentBinDuplicationUtility)
Setter for content duplication utility classvoid
setDictionaryService(DictionaryService dictionaryService)
void
setEagerContentStoreCleaner(EagerContentStoreCleaner eagerContentStoreCleaner)
void
setNodeService(NodeService nodeService)
-
-
-
Method Detail
-
getEagerContentStoreCleaner
protected EagerContentStoreCleaner getEagerContentStoreCleaner()
- Returns:
- the eagerContentStoreCleaner
-
getDictionaryService
protected DictionaryService getDictionaryService()
- Returns:
- the dictionaryService
-
getNodeService
protected NodeService getNodeService()
- Returns:
- the nodeService
-
getBehaviourFilter
protected 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(DictionaryService dictionaryService)
- Parameters:
dictionaryService
- dictionary service
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService
- node service
-
setBehaviourFilter
public void setBehaviourFilter(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(NodeRef nodeRef)
Destroy content- Parameters:
nodeRef
-
-
destroyContent
public void destroyContent(NodeRef nodeRef, boolean includeRenditions)
Destroy content- Parameters:
nodeRef
-includeRenditions
-
-
registerAllContentForDestruction
protected void registerAllContentForDestruction(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
-
-