Class 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
    • Field Detail

      • FIXED_ACL_ASYNC_REQUIRED_KEY

        public static final java.lang.String FIXED_ACL_ASYNC_REQUIRED_KEY
        See Also:
        Constant Field Values
      • FIXED_ACL_ASYNC_CALL_KEY

        public static final java.lang.String FIXED_ACL_ASYNC_CALL_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • FixedAclUpdater

        public FixedAclUpdater()
    • Method Detail

      • setNumThreads

        public void setNumThreads​(int numThreads)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • setJobLockService

        public void setJobLockService​(JobLockService jobLockService)
      • setNodeDAO

        public void setNodeDAO​(NodeDAO nodeDAO)
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
      • setAccessControlListDAO

        public void setAccessControlListDAO​(AccessControlListDAO accessControlListDAO)
      • setMaxItemBatchSize

        public void setMaxItemBatchSize​(int maxItemBatchSize)
      • setLockTimeToLive

        public void setLockTimeToLive​(long lockTimeToLive)
      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
      • setPolicyIgnoreUtil

        public void setPolicyIgnoreUtil​(PolicyIgnoreUtil policyIgnoreUtil)
      • init

        public void init()
      • execute

        public int execute()
      • afterCommit

        public void afterCommit()
        Description copied from class: TransactionListenerAdapter
        Invoked 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:
        afterCommit in interface TransactionListener
        Specified by:
        afterCommit in interface org.alfresco.util.transaction.TransactionListener
        Overrides:
        afterCommit in class TransactionListenerAdapter