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
  • Field Details

  • 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:
      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)
    • setForceSharedACL

      public void setForceSharedACL(boolean forceSharedACL)
    • setLockTimeToLive

      public void setLockTimeToLive(long lockTimeToLive)
    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
    • setPolicyIgnoreUtil

      public void setPolicyIgnoreUtil(PolicyIgnoreUtil policyIgnoreUtil)
    • registerListener

      public static void registerListener(FixedAclUpdaterListener listener)
      Register a FixedAclUpdaterListener to be notified when a node is updated by an instance of this class.
    • unregisterListener

      public static void unregisterListener(FixedAclUpdaterListener listener)
      Unregister a FixedAclUpdaterListener to be notified when a node is updated by an instance of this class.
    • init

      public void init()
    • createAclWorker

      protected FixedAclUpdater.AclWorker createAclWorker()
      Create a new AclWorker.
    • 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