public class FeedCleaner extends Object implements NodeServicePolicies.BeforeDeleteNodePolicy
Policy.Arg
QNAME
Constructor and Description |
---|
FeedCleaner() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Called before a node is deleted.
|
void |
beforeDeleteNodePerson(org.alfresco.service.cmr.repository.NodeRef personNodeRef) |
void |
beforeDeleteNodeSite(org.alfresco.service.cmr.repository.NodeRef siteNodeRef) |
int |
execute() |
int |
getMaxFeedSize() |
void |
init() |
void |
setFeedDAO(ActivityFeedDAO feedDAO) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setMaxAgeMins(int mins) |
void |
setMaxFeedSize(int size) |
void |
setMaxIdRange(int maxIdRange) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setTransactionService(TransactionService transactionService) |
void |
setUserNamesAreCaseSensitive(boolean userNamesAreCaseSensitive) |
public void setUserNamesAreCaseSensitive(boolean userNamesAreCaseSensitive)
public void setFeedDAO(ActivityFeedDAO feedDAO)
public void setJobLockService(JobLockService jobLockService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setMaxIdRange(int maxIdRange)
maxIdRange
- maximum difference between lowest and highest IDpublic void setTransactionService(TransactionService transactionService)
public void setMaxAgeMins(int mins)
public void setMaxFeedSize(int size)
public int getMaxFeedSize()
public void init()
public int execute() throws org.quartz.JobExecutionException
org.quartz.JobExecutionException
public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicy
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
nodeRef
- the node referencepublic void beforeDeleteNodePerson(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
public void beforeDeleteNodeSite(org.alfresco.service.cmr.repository.NodeRef siteNodeRef)
Copyright © 2005–2017 Alfresco Software. All rights reserved.