|
|||||||||
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
Action definition |
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 |
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 |
java.lang.String |
getQueueName()
Get the queueName that will execute this action |
void |
init()
Init method |
void |
setApplicableTypes(java.lang.String[] applicableTypes)
Set the list of types for which this action is applicable |
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 |
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 setPublicAction(boolean publicAction)
publicAction
- true if the action is public, false otherwisepublic void setApplicableTypes(java.lang.String[] applicableTypes)
applicableTypes
- arry of applicable typespublic ActionDefinition getActionDefinition()
getActionDefinition
in interface ActionExecuter
protected ActionDefinition createActionDefinition(java.lang.String name)
ActionDefinitionImpl
, but this could be overridden.
name
-
public void execute(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuter
execute
in interface ActionExecuter
action
- the actionactionedUponNodeRef
- the actioned upon node referenceorg.alfresco.repo.action.executer.ActionExecuter#execute(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef)
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 |