Class UpdateTagScopesActionExecuter

  • All Implemented Interfaces:
    ActionExecuter, LoggingAwareExecuter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class UpdateTagScopesActionExecuter
    extends ActionExecuterAbstractBase
    Update tag scopes action executer. NOTE: This action is used to facilitate the async update of tag scopes. It is not intended for general usage.
    Author:
    Roy Wetherall
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        Action name and parameters
        See Also:
        Constant Field Values
      • PARAM_TAG_SCOPES

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

      • UpdateTagScopesActionExecuter

        public UpdateTagScopesActionExecuter()
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Set the node service
        Parameters:
        nodeService - node service
      • setContentService

        public void setContentService​(ContentService contentService)
        Set the content service
        Parameters:
        contentService - the content service
      • setTaggingService

        public void setTaggingService​(TaggingService taggingService)
        Set the tagging service
        Parameters:
        taggingService - the tagging service
      • setAuditService

        public void setAuditService​(AuditService auditService)
        Set the audit service
        Parameters:
        auditService - the audit service
      • setJobLockService

        public void setJobLockService​(JobLockService jobLockService)
        Set the job lock service
        Parameters:
        jobLockService - the job locking service
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Set the transaction service
        Parameters:
        transactionService - the transaction service
      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
        Set the behaviour filter
        Parameters:
        behaviourFilter - the behaviour filter
      • searchForTagScopesPendingUpdates

        public java.util.List<org.alfresco.service.cmr.repository.NodeRef> searchForTagScopesPendingUpdates()
        Checks several batches of updates in the Audit event log, and returns the list of Tag Scope Node References found there. You should generally call this action to process the list of tag nodes before re-calling this method. You may need to call this method several times if lots of work is backed up, when an empty list is returned then you know that all work is handled.
      • lockTagScope

        protected java.lang.String lockTagScope​(org.alfresco.service.cmr.repository.NodeRef tagScope)
      • updateTagScopeLock

        protected void updateTagScopeLock​(org.alfresco.service.cmr.repository.NodeRef tagScope,
                                          java.lang.String lockToken)
      • unlockTagScope

        protected void unlockTagScope​(org.alfresco.service.cmr.repository.NodeRef tagScope,
                                      java.lang.String lockToken)