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 String |
ACTION_ICON_FALLBACK |
protected static String |
ACTION_ICON_URI |
protected static String |
BROKEN_ACTION_ICON_FALLBACK |
protected static String |
DISABLED_ACTION_ICON_FALLBACK |
protected static String |
DISABLED_ACTION_ICON_URI |
protected static String |
PARAMETER_LABEL |
protected static String |
PARAMETER_SCRIPT_URI |
| Constructor and Description |
|---|
ScriptingAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerform(ActionContext actionContext) |
String |
getConfirmationMessage(ActionContext actionContext) |
protected String |
getIconUri(ActionContext context,
boolean canPerform) |
protected 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 String PARAMETER_SCRIPT_URI
protected static final String PARAMETER_LABEL
protected static final String ACTION_ICON_URI
protected static final String DISABLED_ACTION_ICON_URI
protected static final String ACTION_ICON_FALLBACK
protected static final String DISABLED_ACTION_ICON_FALLBACK
protected static final String BROKEN_ACTION_ICON_FALLBACK
protected CockpitAction resolveActionScript(ActionContext actionContext)
public ActionResult perform(ActionContext actionContext)
public boolean canPerform(ActionContext actionContext)
public boolean needsConfirmation(ActionContext actionContext)
public String getConfirmationMessage(ActionContext actionContext)
public void render(Component component,
CockpitAction cockpitAction,
ActionContext actionContext,
boolean updateMode,
ActionListener actionListener)
protected String getIconUri(ActionContext context, boolean canPerform)
protected String getLocalizedName(ActionContext context)
Copyright © 2017 SAP SE. All Rights Reserved.