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
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 Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEAction name and parametersstatic java.lang.StringPARAM_TAG_SCOPES-
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
-
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, 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
Constructors Constructor Description UpdateTagScopesActionExecuter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddParameterDefinitions(java.util.List<ParameterDefinition> paramList)Adds the parameter definitions to the listprotected voidexecuteImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Execute the action implementationprotected java.lang.StringlockTagScope(org.alfresco.service.cmr.repository.NodeRef tagScope)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.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(org.alfresco.service.cmr.repository.NodeService nodeService)Set the node servicevoidsetTaggingService(TaggingService taggingService)Set the tagging servicevoidsetTransactionService(TransactionService transactionService)Set the transaction serviceprotected voidunlockTagScope(org.alfresco.service.cmr.repository.NodeRef tagScope, java.lang.String lockToken)protected voidupdateTagScopeLock(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, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
-
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
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
-
-
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:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
action- the actionactionedUponNodeRef- 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<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)
-
addParameterDefinitions
protected void addParameterDefinitions(java.util.List<ParameterDefinition> paramList)
Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list- See Also:
ParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)
-
-