1) Minor mods to Rhinoscript Actions

- rename createAction to create
- add (read-only) name property to action
2) Addition of createPackage to Workflow Service API (no implementation yet)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2006-08-15 12:52:19 +00:00
parent 354834c25f
commit dc51984cce
7 changed files with 42 additions and 18 deletions

View File

@@ -91,7 +91,7 @@ public final class Actions implements Scopeable
* @param actionName the action name
* @return the action
*/
public ScriptAction createAction(String actionName)
public ScriptAction create(String actionName)
{
ScriptAction scriptAction = null;
ActionService actionService = services.getActionService();
@@ -147,6 +147,21 @@ public final class Actions implements Scopeable
this.scope = scope;
}
/**
* Returns the action name
*
* @return action name
*/
public String getName()
{
return this.actionDef.getName();
}
public String jsGet_name()
{
return getName();
}
/**
* Return all the properties known about this node.
*
@@ -174,7 +189,7 @@ public final class Actions implements Scopeable
return this.parameters;
}
public Map<String, Serializable>jsGet_parameters()
public Map<String, Serializable> jsGet_parameters()
{
return getParameters();
}