|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.jscript.ScriptAction
public class ScriptAction
Scriptable Action
| Nested Class Summary | |
|---|---|
static class |
ScriptAction.ScriptableParameterMap
Scripted Parameter map with modified flag. |
| Field Summary | |
|---|---|
protected Action |
action
Action state |
protected ActionDefinition |
actionDef
|
protected ServiceRegistry |
services
|
| Constructor Summary | |
|---|---|
ScriptAction(ServiceRegistry services,
Action action,
ActionDefinition actionDef)
Construct |
|
| Method Summary | |
|---|---|
void |
execute(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Execute action. |
void |
execute(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean readOnly,
boolean newTxn)
Execute action, optionally starting a new, potentially read-only transaction. |
void |
execute(ScriptNode node)
Execute action. |
void |
execute(ScriptNode node,
boolean readOnly,
boolean newTxn)
Execute action, optionally starting a new, potentially read-only transaction. |
protected void |
executeImpl(ScriptNode node)
|
java.lang.String |
getName()
Returns the action name |
java.util.Map |
getParameters()
Return all the properties known about this node. |
protected void |
performParamConversionForRepo()
|
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 |
| Field Detail |
|---|
protected Action action
protected ActionDefinition actionDef
protected ServiceRegistry services
| 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 uponprotected void executeImpl(ScriptNode node)
public void execute(ScriptNode node,
boolean readOnly,
boolean newTxn)
node - the node to execute action uponnewTxn - true to start a new, isolated transactionRetryingTransactionHelper.doInTransaction(RetryingTransactionCallback, boolean, boolean)public void execute(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - the node to execute action upon
public void execute(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean readOnly,
boolean newTxn)
nodeRef - the node to execute action uponnewTxn - true to start a new, isolated transactionRetryingTransactionHelper.doInTransaction(RetryingTransactionCallback, boolean, boolean)protected void performParamConversionForRepo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||