public class ActionServiceRemote extends java.lang.Object implements ActionService
Constructor and Description |
---|
ActionServiceRemote() |
Modifier and Type | Method and Description |
---|---|
Action |
createAction(java.lang.String name)
Create a new action
|
Action |
createAction(java.lang.String name,
java.util.Map params)
Create a new action specifying the initial set of parameter values
|
ActionCondition |
createActionCondition(java.lang.String name)
Create an action condition
|
ActionCondition |
createActionCondition(java.lang.String name,
java.util.Map params)
Create an action condition specifying the initial set of parameter values
|
CompositeAction |
createCompositeAction()
Create a composite action
|
CompositeActionCondition |
createCompositeActionCondition()
Create a composite actionCondition
|
boolean |
evaluateAction(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluted the conditions set on an action.
|
boolean |
evaluateActionCondition(ActionCondition condition,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluate an action condition.
|
void |
executeAction(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
The actions conditions are always checked.
|
void |
executeAction(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean checkConditions)
The action is executed based on the asynchronous attribute of the action.
|
void |
executeAction(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean checkConditions,
boolean executeAsynchronously)
Executes the specified action upon the node reference provided.
|
Action |
getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String actionId)
Gets an action stored against a given node reference.
|
ActionConditionDefinition |
getActionConditionDefinition(java.lang.String name)
Get a named action condition definition
|
java.util.List |
getActionConditionDefinitions()
Get all the action condition definitions
|
ActionDefinition |
getActionDefinition(java.lang.String name)
Get a named action definition
|
java.util.List |
getActionDefinitions()
Get all the action definitions
|
java.util.List |
getActionDefinitions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get all the action definitions that are applicable for the given node, based on
its type and aspects.
|
java.util.List |
getActions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets all the actions currently saved on the given node reference.
|
ParameterConstraint |
getParameterConstraint(java.lang.String name)
Get a named parameter constraint
|
java.util.List |
getParameterConstraints()
Get all the parameter constraints
|
void |
removeAction(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Action action)
Removes an action associated with a node reference.
|
void |
removeAllActions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Removes all actions associated with a node reference
|
void |
saveAction(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Action action)
Save an action against a node reference.
|
void |
setActionServiceTransport(ActionServiceTransport transport) |
void |
setClientTicketHolder(ClientTicketHolder holder) |
public void setClientTicketHolder(ClientTicketHolder holder)
public void setActionServiceTransport(ActionServiceTransport transport)
public Action createAction(java.lang.String name)
ActionService
createAction
in interface ActionService
name
- the action definition namepublic Action createAction(java.lang.String name, java.util.Map params)
ActionService
createAction
in interface ActionService
name
- the action definition nameparams
- the parameter valuespublic ActionCondition createActionCondition(java.lang.String name)
ActionService
createActionCondition
in interface ActionService
name
- the action condition definition namepublic ActionCondition createActionCondition(java.lang.String name, java.util.Map params)
ActionService
createActionCondition
in interface ActionService
name
- the action condition definition nameparams
- the parameter valuespublic CompositeAction createCompositeAction()
ActionService
createCompositeAction
in interface ActionService
public boolean evaluateAction(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionService
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.
evaluateAction
in interface ActionService
action
- the actionactionedUponNodeRef
- the actioned upon node referencepublic boolean evaluateActionCondition(ActionCondition condition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionService
evaluateActionCondition
in interface ActionService
condition
- the action conditionactionedUponNodeRef
- the actioned upon node referencepublic void executeAction(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionService
executeAction
in interface ActionService
action
- the actionactionedUponNodeRef
- the actioned upon node referenceActionService.executeAction(Action, NodeRef, boolean)
public void executeAction(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions)
ActionService
executeAction
in interface ActionService
action
- the actionactionedUponNodeRef
- the actioned upon node referencecheckConditions
- indicates whether the conditions should be checkedActionService.executeAction(Action, NodeRef, boolean, boolean)
public void executeAction(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, boolean executeAsynchronously)
ActionService
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.
executeAction
in interface ActionService
action
- the actionactionedUponNodeRef
- the actioned upon node referencecheckConditions
- indicates whether the conditions should be checked before
executing the actionexecuteAsynchronously
- indicates whether the action should be executed asychronously or not, this value overrides
the value set on the action its selfpublic Action getAction(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String actionId)
ActionService
Returns null if the action can not be found.
getAction
in interface ActionService
nodeRef
- the node referenceactionId
- the action idpublic ActionConditionDefinition getActionConditionDefinition(java.lang.String name)
ActionService
getActionConditionDefinition
in interface ActionService
name
- the name of the action condition definitionpublic java.util.List getActionConditionDefinitions()
ActionService
getActionConditionDefinitions
in interface ActionService
public ActionDefinition getActionDefinition(java.lang.String name)
ActionService
getActionDefinition
in interface ActionService
name
- the name of the action definitionpublic java.util.List getActionDefinitions()
ActionService
getActionDefinitions
in interface ActionService
public java.util.List getActionDefinitions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ActionService
getActionDefinitions
in interface ActionService
nodeRef
- the node referencepublic ParameterConstraint getParameterConstraint(java.lang.String name)
ActionService
getParameterConstraint
in interface ActionService
name
- the name of the parameter constraintActionService.getParameterConstraint(java.lang.String)
public java.util.List getParameterConstraints()
ActionService
getParameterConstraints
in interface ActionService
ActionService.getParameterConstraints()
public java.util.List getActions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ActionService
getActions
in interface ActionService
nodeRef
- the node referencepublic void removeAction(org.alfresco.service.cmr.repository.NodeRef nodeRef, Action action)
ActionService
removeAction
in interface ActionService
nodeRef
- the node referenceaction
- the actionpublic void removeAllActions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
ActionService
removeAllActions
in interface ActionService
nodeRef
- the node referencepublic void saveAction(org.alfresco.service.cmr.repository.NodeRef nodeRef, Action action)
ActionService
The node will be made configurable if it is not already.
If the action already exists then its details will be updated.
saveAction
in interface ActionService
nodeRef
- the node referenceaction
- the actionpublic CompositeActionCondition createCompositeActionCondition()
ActionService
createCompositeActionCondition
in interface ActionService
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.