org.alfresco.repo.tagging
Class UpdateTagScopesActionExecuter

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.executer.ActionExecuterAbstractBase
              extended by org.alfresco.repo.tagging.UpdateTagScopesActionExecuter
All Implemented Interfaces:
ActionExecuter, 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.


Field Summary
static java.lang.String NAME
          Action name and parameters
static java.lang.String PARAM_TAG_SCOPES
           
 
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT
 
Constructor Summary
UpdateTagScopesActionExecuter()
           
 
Method Summary
protected  void addParameterDefinitions(java.util.List paramList)
          Adds the parameter definitions to the list
protected  void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
          Execute the action implementation
protected  java.lang.String lockTagScope(org.alfresco.service.cmr.repository.NodeRef tagScope)
           
 java.util.List searchForTagScopesPendingUpdates()
          Checks several batches of updates in the Audit event log, and returns the list of Tag Scope Node References found there.
 void setAuditService(AuditService auditService)
          Set the audit service
 void setBehaviourFilter(BehaviourFilter behaviourFilter)
          Set the behaviour filter
 void setContentService(ContentService contentService)
          Set the content service
 void setJobLockService(JobLockService jobLockService)
          Set the job lock service
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Set the node service
 void setTaggingService(TaggingService taggingService)
          Set the tagging service
 void setTransactionService(TransactionService transactionService)
          Set the transaction service
protected  void unlockTagScope(org.alfresco.service.cmr.repository.NodeRef tagScope, java.lang.String lockToken)
           
protected  void updateTagScopeLock(org.alfresco.service.cmr.repository.NodeRef tagScope, java.lang.String lockToken)
           
 
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

executeImpl

protected void executeImpl(Action action,
                           org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionExecuterAbstractBase
Execute the action implementation

Specified by:
executeImpl in class ActionExecuterAbstractBase
Parameters:
action - the action
actionedUponNodeRef - the actioned upon node
See Also:
ActionExecuterAbstractBase.executeImpl(org.alfresco.service.cmr.action.Action, org.alfresco.service.cmr.repository.NodeRef)

searchForTagScopesPendingUpdates

public java.util.List 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)

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Description copied from class: ParameterizedItemAbstractBase
Adds the parameter definitions to the list

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list
See Also:
ParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.