|
Method Summary | ||
createAction(String name) Create a new action |
||
createAction(String name, Map<String,Serializable> params) Create a new action specifying the initial set of parameter values |
||
createActionCondition(String name) Create an action condition |
||
createActionCondition(String name, Map<String,Serializable> params) Create an action condition specifying the initial set of parameter values |
||
createCompositeAction() Create a composite action |
||
createCompositeActionCondition() Create a composite actionCondition |
||
boolean |
evaluateAction(Action action, NodeRef actionedUponNodeRef) Evaluted the conditions set on an action. |
|
boolean |
evaluateActionCondition(ActionCondition condition, NodeRef actionedUponNodeRef) Evaluate an action condition. |
|
void |
executeAction(Action action, NodeRef actionedUponNodeRef) The actions conditions are always checked. |
|
void |
executeAction(Action action, NodeRef actionedUponNodeRef, boolean checkConditions) The action is executed based on the asynchronous attribute of the action. |
|
void |
executeAction(Action action, NodeRef actionedUponNodeRef, boolean checkConditions, boolean executeAsynchronously) Executes the specified action upon the node reference provided. |
|
getAction(NodeRef nodeRef, String actionId) Gets an action stored against a given node reference. |
||
getActionConditionDefinition(String name) Get a named action condition definition |
||
getActionConditionDefinitions() Get all the action condition definitions |
||
getActionDefinition(String name) Get a named action definition |
||
getActionDefinitions() Get all the action definitions |
||
getActionDefinitions(NodeRef nodeRef) Get all the action definitions that are applicable for the given node, based on its type and aspects. |
||
getActions(NodeRef nodeRef) Gets all the actions currently saved on the given node reference. |
||
getParameterConstraint(String name) Get a named parameter constraint |
||
getParameterConstraints() Get all the parameter constraints |
||
void |
removeAction(NodeRef nodeRef, Action action) Removes an action associated with a node reference. |
|
void |
removeAllActions(NodeRef nodeRef) Removes all actions associated with a node reference |
|
void |
saveAction(NodeRef nodeRef, Action action) Save an action against a node reference. |
If specified that the conditions should be checked then any conditions set on the action are evaluated.
If the conditions fail then the action is not executed.
If an action has no conditions then the action will always be executed.
If the conditions are not checked then the action will always be executed.
Returns true if the action has no conditions.
If the action has more than one condition their results are combined using the 'AND' logical operator.
The node will be made configurable if it is not already.
If the action already exists then its details will be updated.
Returns null if the action can not be found.
|