mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user