|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
public abstract class ActionExecuterAbstractBase
Rule action executor abstract base.
| Field Summary | |
|---|---|
protected ActionDefinition |
actionDefinition
|
protected java.util.List |
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) |
| 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 | |
|---|---|
ActionExecuterAbstractBase()
|
|
| Method Summary | |
|---|---|
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 |
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 |
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. |
| Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase |
|---|
addParameterDefinitions, 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 |
|---|
protected ActionDefinition actionDefinition
protected boolean publicAction
protected java.util.List applicableTypes
| Constructor Detail |
|---|
public ActionExecuterAbstractBase()
| Method Detail |
|---|
public void init()
public void setLockService(LockService lockService)
public void setBaseNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public 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 - arry of applicable typespublic boolean getIgnoreLock()
ActionExecuter
getIgnoreLock in interface ActionExecuterActionExecuter.getIgnoreLock()public void setIgnoreLock(boolean ignoreLock)
ignoreLock - true if lock should be ignored on actioned upon node, false otherwisepublic 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 reference
protected 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()
ActionExecuter
getQueueName in interface ActionExecuter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||