|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.action.ActionServiceTransportImpl
public class ActionServiceTransportImpl
Server side implementation for transport of ActionService.
| Constructor Summary | |
|---|---|
ActionServiceTransportImpl()
|
|
| Method Summary | |
|---|---|
Action |
createAction(java.lang.String ticket,
java.lang.String name)
Create a new action |
Action |
createAction(java.lang.String ticket,
java.lang.String name,
java.util.Map params)
Create a new action specifying the initial set of parameter values |
ActionCondition |
createActionCondition(java.lang.String ticket,
java.lang.String name)
Create an action condition |
ActionCondition |
createActionCondition(java.lang.String ticket,
java.lang.String name,
java.util.Map params)
Create an action condition specifying the initial set of parameter values |
CompositeAction |
createCompositeAction(java.lang.String ticket)
Create a composite action |
boolean |
evaluateAction(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluted the conditions set on an action. |
boolean |
evaluateActionCondition(java.lang.String ticket,
ActionCondition condition,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluate an action condition. |
void |
executeAction(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
The actions conditions are always checked. |
void |
executeAction(java.lang.String ticket,
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(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean checkConditions,
boolean executeAsynchronously)
Executes the specified action upon the node reference provided. |
Action |
getAction(java.lang.String ticket,
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 ticket,
java.lang.String name)
Get a named action condition definition |
java.util.List |
getActionConditionDefinitions(java.lang.String ticket)
Get all the action condition definitions |
ActionDefinition |
getActionDefinition(java.lang.String ticket,
java.lang.String name)
Get a named action definition |
java.util.List |
getActionDefinitions(java.lang.String ticket)
Get all the action definitions |
java.util.List |
getActionDefinitions(java.lang.String ticket,
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(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets all the actions currently saved on the given node reference. |
ParameterConstraint |
getParameterConstraint(java.lang.String ticket,
java.lang.String name)
Get a named parameter constraint |
java.util.List |
getParameterConstraints(java.lang.String ticket)
Get all the parameter constraints |
void |
removeAction(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Action action)
Removes an action associated with a node reference. |
void |
removeAllActions(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Removes all actions associated with a node reference |
void |
saveAction(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Action action)
Save an action against a node reference. |
void |
setActionService(ActionService service)
|
void |
setAuthenticationService(AuthenticationService service)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionServiceTransportImpl()
| Method Detail |
|---|
public void setActionService(ActionService service)
public void setAuthenticationService(AuthenticationService service)
public Action createAction(java.lang.String ticket,
java.lang.String name)
ActionServiceTransport
createAction in interface ActionServiceTransportname - the action definition name
public Action createAction(java.lang.String ticket,
java.lang.String name,
java.util.Map params)
ActionServiceTransport
createAction in interface ActionServiceTransportname - the action definition nameparams - the parameter values
public ActionCondition createActionCondition(java.lang.String ticket,
java.lang.String name)
ActionServiceTransport
createActionCondition in interface ActionServiceTransportname - the action condition definition name
public ActionCondition createActionCondition(java.lang.String ticket,
java.lang.String name,
java.util.Map params)
ActionServiceTransport
createActionCondition in interface ActionServiceTransportname - the action condition definition nameparams - the parameter values
public CompositeAction createCompositeAction(java.lang.String ticket)
ActionServiceTransport
createCompositeAction in interface ActionServiceTransport
public boolean evaluateAction(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionServiceTransportReturns 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 ActionServiceTransportaction - the actionactionedUponNodeRef - the actioned upon node reference
public boolean evaluateActionCondition(java.lang.String ticket,
ActionCondition condition,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionServiceTransport
evaluateActionCondition in interface ActionServiceTransportcondition - the action conditionactionedUponNodeRef - the actioned upon node reference
public void executeAction(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionServiceTransport
executeAction in interface ActionServiceTransportaction - the actionactionedUponNodeRef - the actioned upon node referenceActionService.executeAction(Action, NodeRef, boolean)
public void executeAction(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean checkConditions)
ActionServiceTransport
executeAction in interface ActionServiceTransportaction - the actionactionedUponNodeRef - the actioned upon node referencecheckConditions - indicates whether the conditions should be checkedActionService.executeAction(Action, NodeRef, boolean, boolean)
public void executeAction(java.lang.String ticket,
Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean checkConditions,
boolean executeAsynchronously)
ActionServiceTransportIf 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 ActionServiceTransportaction - 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 self
public Action getAction(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String actionId)
ActionServiceTransportReturns null if the action can not be found.
getAction in interface ActionServiceTransportnodeRef - the node referenceactionId - the action id
public ActionConditionDefinition getActionConditionDefinition(java.lang.String ticket,
java.lang.String name)
ActionServiceTransport
getActionConditionDefinition in interface ActionServiceTransportname - the name of the action condition definition
public java.util.List getActionConditionDefinitions(java.lang.String ticket)
ActionServiceTransport
getActionConditionDefinitions in interface ActionServiceTransport
public ActionDefinition getActionDefinition(java.lang.String ticket,
java.lang.String name)
ActionServiceTransport
getActionDefinition in interface ActionServiceTransportname - the name of the action definition
public java.util.List getActionDefinitions(java.lang.String ticket)
ActionServiceTransport
getActionDefinitions in interface ActionServiceTransport
public java.util.List getActionDefinitions(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
ActionServiceTransport
getActionDefinitions in interface ActionServiceTransportnodeRef - the node reference
public ParameterConstraint getParameterConstraint(java.lang.String ticket,
java.lang.String name)
ActionServiceTransport
getParameterConstraint in interface ActionServiceTransportname - the name of the parameter constraint
ActionServiceTransport.getParameterConstraint(java.lang.String, java.lang.String)public java.util.List getParameterConstraints(java.lang.String ticket)
ActionServiceTransport
getParameterConstraints in interface ActionServiceTransportActionServiceTransport.getParameterConstraints(java.lang.String)
public java.util.List getActions(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
ActionServiceTransport
getActions in interface ActionServiceTransportnodeRef - the node reference
public void removeAction(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Action action)
ActionServiceTransport
removeAction in interface ActionServiceTransportnodeRef - the node referenceaction - the action
public void removeAllActions(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
ActionServiceTransport
removeAllActions in interface ActionServiceTransportnodeRef - the node reference
public void saveAction(java.lang.String ticket,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Action action)
ActionServiceTransportThe node will be made configurable if it is not already.
If the action already exists then its details will be updated.
saveAction in interface ActionServiceTransportnodeRef - the node referenceaction - the action
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||