public abstract class ActionExecuterAbstractBase extends ParameterizedItemAbstractBase implements ActionExecuter
| Modifier and Type | Field and Description |
|---|---|
protected ActionDefinition |
actionDefinition |
protected java.util.Set |
applicableTypes
List of types and aspects for which this action is applicable
|
protected boolean |
publicAction
Indicated whether the action is public or internal (default true)
|
DISPLAY_LABEL, runtimeActionServicenamePARAM_RESULT| Constructor and Description |
|---|
ActionExecuterAbstractBase() |
| Modifier and Type | Method and Description |
|---|---|
protected ActionDefinition |
createActionDefinition(java.lang.String name)
This method returns an instance of an ActionDefinition implementation class.
|
void |
execute(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute the action executer
|
protected abstract void |
executeImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute the action implementation
|
ActionDefinition |
getActionDefinition()
Get rule action definition
|
boolean |
getIgnoreLock()
Indicates whether a lock on the actioned upon node reference should be ignored or
not.
|
java.lang.String |
getQueueName()
Get the queueName that will execute this action
|
boolean |
getTrackStatus()
Get whether the basic action definition supports action tracking
or not.
|
void |
init()
Init method
|
protected boolean |
isApplicableType(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Check if a node is a type or subtype of the of one of the applicable types
|
void |
setApplicableTypes(java.lang.String[] applicableTypes)
Set the list of types for which this action is applicable
|
void |
setBaseNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setIgnoreLock(boolean ignoreLock)
Set the ignore lock value.
|
void |
setLockService(LockService lockService) |
void |
setPublicAction(boolean publicAction)
Set whether the action is public or not.
|
void |
setQueueName(java.lang.String queueName)
Set the queueName which will execute this action
if blank or null then the action will be executed on the "default" queue
|
void |
setTrackStatus(boolean trackStatus)
Set whether the basic action definition requires status tracking.
|
addParameterDefinitions, checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toStringsetBeanNameprotected ActionDefinition actionDefinition
protected boolean publicAction
protected java.util.Set applicableTypes
public void init()
public void setLockService(LockService lockService)
public void setBaseNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionary servicepublic void setPublicAction(boolean publicAction)
publicAction - true if the action is public, false otherwisepublic boolean getTrackStatus()
action
but if not, this value is used. Defaults to false.getTrackStatus in interface ActionExecuterpublic void setTrackStatus(boolean trackStatus)
trackStatus - true to track execution status otherwise falsepublic void setApplicableTypes(java.lang.String[] applicableTypes)
applicableTypes - array of applicable typespublic boolean getIgnoreLock()
ActionExecutergetIgnoreLock in interface ActionExecuterActionExecuter.getIgnoreLock()public void setIgnoreLock(boolean ignoreLock)
ignoreLock - true if lock should be ignored on actioned upon node, false otherwiseprotected boolean isApplicableType(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
actionedUponNodeRef - the node to checkapplicable types or one of the
subtypespublic ActionDefinition getActionDefinition()
getActionDefinition in interface ActionExecuterprotected ActionDefinition createActionDefinition(java.lang.String name)
ActionDefinitionImpl, but this could be overridden.public void execute(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
execute in interface ActionExecuteraction - the actionactionedUponNodeRef - the actioned upon node referenceprotected abstract void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
action - the actionactionedUponNodeRef - the actioned upon nodepublic void setQueueName(java.lang.String queueName)
the - name of the execution queue which should execute this action.public java.lang.String getQueueName()
ActionExecutergetQueueName in interface ActionExecuterCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.