org.alfresco.webservice.util
Class ActionUtils
java.lang.Object
org.alfresco.webservice.util.ActionUtils
public class ActionUtils
- extends java.lang.Object
Utility methods making it easy to execute actions.
Method Summary |
static java.lang.String |
executeAction(org.alfresco.webservice.types.Reference actionedUpon,
java.lang.String actionName,
java.util.Map parameters)
Executes an action with the provided parameters, returning the result if appropriate. |
static java.lang.String |
executeScript(org.alfresco.webservice.types.Reference actionedUpon,
org.alfresco.webservice.types.Reference script)
Executes a script against the actioned upon node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionUtils
public ActionUtils()
executeAction
public static java.lang.String executeAction(org.alfresco.webservice.types.Reference actionedUpon,
java.lang.String actionName,
java.util.Map parameters)
- Executes an action with the provided parameters, returning the result if appropriate. Return nulls in the case
where no return result for the action has been set.
- Parameters:
actionedUpon
- the node that the aciton will action uponactionName
- the action name (eg: 'ExecuteScript')parameters
- the parameter values of the action
- Returns:
- Stirng the result result of the action, null if none provided or action a
executeScript
public static java.lang.String executeScript(org.alfresco.webservice.types.Reference actionedUpon,
org.alfresco.webservice.types.Reference script)
- Executes a script against the actioned upon node.
- Parameters:
actionedUpon
- the actioned upon nodescript
- the script node
- Returns:
- String the result of the script (null if none)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.