|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.jscript.ScriptAction
public final class ScriptAction
Scriptable Action
| Nested Class Summary | |
|---|---|
static class |
ScriptAction.ScriptableParameterMap
Scripted Parameter map with modified flag. |
| Constructor Summary | |
|---|---|
ScriptAction(ServiceRegistry services,
Action action,
ActionDefinition actionDef)
Construct |
|
| Method Summary | |
|---|---|
void |
execute(NodeRef nodeRef)
Execute action |
void |
execute(ScriptNode node)
Execute action |
java.lang.String |
getName()
Returns the action name |
java.util.Map |
getParameters()
Return all the properties known about this node. |
void |
setScope(org.mozilla.javascript.Scriptable scope)
Set the Scriptable global scope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptAction(ServiceRegistry services,
Action action,
ActionDefinition actionDef)
action - Alfresco action| Method Detail |
|---|
public void setScope(org.mozilla.javascript.Scriptable scope)
Scopeable
setScope in interface ScopeableScopeable.setScope(org.mozilla.javascript.Scriptable)public java.lang.String getName()
public java.util.Map getParameters()
node.properties["name"]
public void execute(ScriptNode node)
node - the node to execute action uponpublic void execute(NodeRef nodeRef)
nodeRef - the node to execute action upon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||