public class ScriptingAction
extends <any>
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(<any> actionContext) |
java.lang.String |
getConfirmationMessage(<any> actionContext) |
protected java.lang.String |
getIconUri(<any> context,
boolean canPerform) |
protected java.lang.String |
getLocalizedName(<any> context) |
boolean |
needsConfirmation(<any> actionContext) |
<any> |
perform(<any> actionContext) |
void |
render(Component component,
<any> cockpitAction,
<any> actionContext,
boolean updateMode,
<any> actionListener) |
protected <any> |
resolveActionScript(<any> 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 <any> perform(<any> actionContext)
public boolean canPerform(<any> actionContext)
public boolean needsConfirmation(<any> actionContext)
public java.lang.String getConfirmationMessage(<any> actionContext)
public void render(Component component,
<any> cockpitAction,
<any> actionContext,
boolean updateMode,
<any> actionListener)
protected java.lang.String getIconUri(<any> context,
boolean canPerform)
protected java.lang.String getLocalizedName(<any> context)
protected <any> resolveActionScript(<any> actionContext)
Copyright © 2018 SAP SE. All Rights Reserved.