Class FixedAclUpdater
java.lang.Object
org.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.domain.permissions.FixedAclUpdater
- All Implemented Interfaces:
TransactionListener,org.alfresco.util.transaction.TransactionListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class FixedAclUpdater
extends TransactionListenerAdapter
implements org.springframework.context.ApplicationContextAware
Finds nodes with ASPECT_PENDING_FIX_ACL aspect and sets fixed ACLs for them
- Since:
- 4.2.7
- Author:
- Andreea Dragoi, sglover
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked after transaction commit.protected FixedAclUpdater.AclWorkerCreate a new AclWorker.intexecute()voidinit()static voidregisterListener(FixedAclUpdaterListener listener) Register aFixedAclUpdaterListenerto be notified when a node is updated by an instance of this class.voidsetAccessControlListDAO(AccessControlListDAO accessControlListDAO) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetForceSharedACL(boolean forceSharedACL) voidsetJobLockService(JobLockService jobLockService) voidsetLockTimeToLive(long lockTimeToLive) voidsetMaxItemBatchSize(int maxItemBatchSize) voidsetNodeDAO(NodeDAO nodeDAO) voidsetNumThreads(int numThreads) voidsetPolicyComponent(PolicyComponent policyComponent) voidsetPolicyIgnoreUtil(PolicyIgnoreUtil policyIgnoreUtil) voidsetTransactionService(TransactionService transactionService) static voidunregisterListener(FixedAclUpdaterListener listener) Unregister aFixedAclUpdaterListenerto be notified when a node is updated by an instance of this class.Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
afterRollback, beforeCommit, beforeCompletion, flush
-
Field Details
-
FIXED_ACL_ASYNC_REQUIRED_KEY
- See Also:
-
FIXED_ACL_ASYNC_CALL_KEY
- See Also:
-
LOCK_Q_NAME
-
-
Constructor Details
-
FixedAclUpdater
public FixedAclUpdater()
-
-
Method Details
-
setNumThreads
public void setNumThreads(int numThreads) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setJobLockService
-
setNodeDAO
-
setTransactionService
-
setAccessControlListDAO
-
setMaxItemBatchSize
public void setMaxItemBatchSize(int maxItemBatchSize) -
setLockTimeToLive
public void setLockTimeToLive(long lockTimeToLive) -
setPolicyComponent
-
setPolicyIgnoreUtil
-
registerListener
Register aFixedAclUpdaterListenerto be notified when a node is updated by an instance of this class. -
unregisterListener
Unregister aFixedAclUpdaterListenerto be notified when a node is updated by an instance of this class. -
init
public void init() -
createAclWorker
Create a new AclWorker. -
execute
public int execute() -
afterCommit
public void afterCommit()Description copied from class:TransactionListenerAdapterInvoked after transaction commit.Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
- Specified by:
afterCommitin interfaceTransactionListener- Specified by:
afterCommitin interfaceorg.alfresco.util.transaction.TransactionListener- Overrides:
afterCommitin classTransactionListenerAdapter
-