public class ScriptingAction
extends DefaultActionRenderer
classpath://path/to/script.groovy
classpath://path/to/file.bsh
classpath://path/to/file.js
File script resurce:
file:///absolute/path/to/script.groovy
file://c:/absolute/path/to/script.js
Media script resource:
model://codeOfScriptItem
model://codeOfScriptItem/revisionNumber
Remote script resource:
http://server.com/path/to/script.groovy
https://server.com/path/to/script.groovy
ftp://server.com/path/to/script.js
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACTION_ICON_FALLBACK |
protected static java.lang.String |
ACTION_ICON_URI |
protected static java.lang.String |
BROKEN_ACTION_ICON_FALLBACK |
protected static java.lang.String |
DISABLED_ACTION_ICON_FALLBACK |
protected static java.lang.String |
DISABLED_ACTION_ICON_URI |
protected static java.lang.String |
PARAMETER_LABEL |
protected static java.lang.String |
PARAMETER_SCRIPT_URI |
| Constructor and Description |
|---|
ScriptingAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerform(ActionContext actionContext) |
java.lang.String |
getConfirmationMessage(ActionContext actionContext) |
protected java.lang.String |
getIconUri(ActionContext context,
boolean canPerform) |
protected java.lang.String |
getLocalizedName(ActionContext context) |
boolean |
needsConfirmation(ActionContext actionContext) |
ActionResult |
perform(ActionContext actionContext) |
void |
render(Component component,
CockpitAction cockpitAction,
ActionContext actionContext,
boolean updateMode,
ActionListener actionListener) |
protected CockpitAction |
resolveActionScript(ActionContext actionContext) |
protected static final java.lang.String PARAMETER_SCRIPT_URI
protected static final java.lang.String PARAMETER_LABEL
protected static final java.lang.String ACTION_ICON_URI
protected static final java.lang.String DISABLED_ACTION_ICON_URI
protected static final java.lang.String ACTION_ICON_FALLBACK
protected static final java.lang.String DISABLED_ACTION_ICON_FALLBACK
protected static final java.lang.String BROKEN_ACTION_ICON_FALLBACK
public ActionResult perform(ActionContext actionContext)
public boolean canPerform(ActionContext actionContext)
public boolean needsConfirmation(ActionContext actionContext)
public java.lang.String getConfirmationMessage(ActionContext actionContext)
public void render(Component component,
CockpitAction cockpitAction,
ActionContext actionContext,
boolean updateMode,
ActionListener actionListener)
protected java.lang.String getIconUri(ActionContext context,
boolean canPerform)
protected java.lang.String getLocalizedName(ActionContext context)
protected CockpitAction resolveActionScript(ActionContext actionContext)
Copyright © 2018 SAP SE. All Rights Reserved.