Package org.alfresco.repo.jscript
Class ScriptAction
java.lang.Object
org.alfresco.repo.jscript.ScriptAction
- All Implemented Interfaces:
Serializable,Scopeable
- Direct Known Subclasses:
ScriptRenditionDefinition,ScriptReplicationDefinition
Scriptable Action
- Author:
- davidc
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classScripted Parameter map with modified flag. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionAction stateprotected ActionDefinitionprotected ServiceRegistry -
Constructor Summary
ConstructorsConstructorDescriptionScriptAction(ServiceRegistry services, Action action, ActionDefinition actionDef) Construct -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ScriptNode node) Execute action.voidexecute(ScriptNode node, boolean readOnly, boolean newTxn) Execute action, optionally starting a new, potentially read-only transaction.voidExecute action.voidExecute action, optionally starting a new, potentially read-only transaction.voidExecute action.protected voidprotected voidexecuteImpl(ScriptNode node) getName()Returns the action nameReturn all the properties known about this node.protected voidvoidsetScope(org.mozilla.javascript.Scriptable scope) Set the Scriptable global scope
-
Field Details
-
action
Action state -
actionDef
-
services
-
-
Constructor Details
-
ScriptAction
Construct- Parameters:
action- Alfresco action
-
-
Method Details
-
setScope
public void setScope(org.mozilla.javascript.Scriptable scope) Description copied from interface:ScopeableSet the Scriptable global scope -
getName
Returns the action name- Returns:
- action name
-
getParameters
Return all the properties known about this node. The Map returned implements the Scriptable interface to allow access to the properties via JavaScript associative array access. This means properties of a node can be access thus:node.properties["name"]- Returns:
- Map of properties for this Node.
-
execute
Execute action. The existing transaction will be joined.- Parameters:
node- the node to execute action upon
-
executeAsynchronously
Execute action. The existing transaction will be joined.- Parameters:
node- the node to execute action upon
-
executeImpl
-
executeAsynchronouslyImpl
-
execute
Execute action, optionally starting a new, potentially read-only transaction.- Parameters:
node- the node to execute action uponnewTxn- true to start a new, isolated transaction- See Also:
-
execute
Execute action. The existing transaction will be joined.- Parameters:
nodeRef- the node to execute action upon
-
execute
Execute action, optionally starting a new, potentially read-only transaction.- Parameters:
nodeRef- the node to execute action uponnewTxn- true to start a new, isolated transaction- See Also:
-
performParamConversionForRepo
protected void performParamConversionForRepo()
-