Class ScriptingAction
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<Object,,Object> com.hybris.cockpitng.actions.CockpitActionRenderer<Object,Object>
public class ScriptingAction
extends com.hybris.cockpitng.actions.impl.DefaultActionRenderer<Object,Object>
implements com.hybris.cockpitng.actions.CockpitAction<Object,Object>
An action that executes scipts from scripting engine from platform. The script is identified by scriptUri that can be
one of:
Classpath script resource:
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
com.hybris.cockpitng.actions.impl.DefaultActionRenderer.DefaultActionRendererEventListener<T extends org.zkoss.zk.ui.event.Event> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
LABEL_CONTAINER_SCLASS, tooltipText -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<Object> actionContext) getConfirmationMessage(com.hybris.cockpitng.actions.ActionContext<Object> actionContext) protected StringgetIconUri(com.hybris.cockpitng.actions.ActionContext<Object> context, boolean canPerform) protected StringgetLocalizedName(com.hybris.cockpitng.actions.ActionContext<?> context) booleanneedsConfirmation(com.hybris.cockpitng.actions.ActionContext<Object> actionContext) com.hybris.cockpitng.actions.ActionResult<Object>voidrender(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.actions.CockpitAction<Object, Object> cockpitAction, com.hybris.cockpitng.actions.ActionContext<Object> actionContext, boolean updateMode, com.hybris.cockpitng.actions.ActionListener<Object> actionListener) resolveActionScript(com.hybris.cockpitng.actions.ActionContext<Object> actionContext) Methods inherited from class com.hybris.cockpitng.actions.impl.DefaultActionRenderer
addEventListener, addKeyboardSupport, adjustUri, checkDataCompatibleWithDefinedInput, createClickTrackingId, createEventListener, createTipsLabel, createYTestId, extractIconDisabledUri, extractIconHoverUri, extractIconUri, extractKeyEvent, findActionComponent, findGroupComponent, findParentComponent, getActionBodySclass, getIconHoverUri, getIconName, getKeyboardSupportService, getOrCreateContainer, getOrCreateIcon, getOrCreateIcon, getOrCreateIconButton, getOrCreateLabel, getOrCreateLabel, getTooltipText, getToolTipWithCtrlKeysText, loadFromParentModel, perform, performWithConfirmationCheck, registerHoverEventsOnContainer, registerHoverEventsOnContainer, removeEventListeners, removeEventListeners, removeIcon, removeLabel, setTips, setTooltipText, storeInParentModel, triggerFromKeyEvent, useImage
-
Field Details
-
PARAMETER_SCRIPT_URI
- See Also:
-
PARAMETER_LABEL
- See Also:
-
ACTION_ICON_URI
- See Also:
-
DISABLED_ACTION_ICON_URI
- See Also:
-
ACTION_ICON_FALLBACK_NAME
- See Also:
-
ACTION_ICON_FALLBACK
- See Also:
-
DISABLED_ACTION_ICON_FALLBACK
- See Also:
-
-
Constructor Details
-
ScriptingAction
public ScriptingAction()
-
-
Method Details
-
perform
-
canPerform
-
needsConfirmation
-
getConfirmationMessage
-
render
-
getIconUri
-
getLocalizedName
-
resolveActionScript
-