Package org.alfresco.repo.tagging
Class UpdateTagScopesActionExecuter
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.tagging.UpdateTagScopesActionExecuter
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAction name and parametersstatic final StringFields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionAccessRestrictions, actionDefinition, applicableTypes, publicActionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
nameFields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Adds the parameter definitions to the listprotected voidexecuteImpl(Action action, NodeRef actionedUponNodeRef) Execute the action implementationprotected StringlockTagScope(NodeRef tagScope) Checks several batches of updates in the Audit event log, and returns the list of Tag Scope Node References found there.voidsetAuditService(AuditService auditService) Set the audit servicevoidsetBehaviourFilter(BehaviourFilter behaviourFilter) Set the behaviour filtervoidsetContentService(ContentService contentService) Set the content servicevoidsetJobLockService(JobLockService jobLockService) Set the job lock servicevoidsetNodeService(NodeService nodeService) Set the node servicevoidsetTaggingService(TaggingService taggingService) Set the tagging servicevoidsetTransactionService(TransactionService transactionService) Set the transaction serviceprotected voidunlockTagScope(NodeRef tagScope, String lockToken) protected voidupdateTagScopeLock(NodeRef tagScope, String lockToken) Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setActionAccessRestrictions, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus, verifyActionAccessRestrictionsMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.action.executer.ActionExecuter
isExecuteAsynchronously
-
Field Details
-
NAME
Action name and parameters- See Also:
-
PARAM_TAG_SCOPES
- See Also:
-
-
Constructor Details
-
UpdateTagScopesActionExecuter
public UpdateTagScopesActionExecuter()
-
-
Method Details
-
setNodeService
Set the node service- Parameters:
nodeService- node service
-
setContentService
Set the content service- Parameters:
contentService- the content service
-
setTaggingService
Set the tagging service- Parameters:
taggingService- the tagging service
-
setAuditService
Set the audit service- Parameters:
auditService- the audit service
-
setJobLockService
Set the job lock service- Parameters:
jobLockService- the job locking service
-
setTransactionService
Set the transaction service- Parameters:
transactionService- the transaction service
-
setBehaviourFilter
Set the behaviour filter- Parameters:
behaviourFilter- the behaviour filter
-
executeImpl
Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
action- the actionactionedUponNodeRef- the actioned upon node- See Also:
-
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
-
updateTagScopeLock
-
unlockTagScope
-
addParameterDefinitions
Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list- See Also:
-