public class WorkflowHMCExtension extends HMCExtension
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_CREATE |
static java.lang.String |
ACTION_REMOVE |
static java.lang.String |
ACTION_SAVE |
static java.lang.String |
RESOURCE_PATH
Identifier of property defining path to resource bundles.
|
| Constructor and Description |
|---|
WorkflowHMCExtension() |
| Modifier and Type | Method and Description |
|---|---|
ActionResult |
afterCreate(Item item,
DisplayState displayState,
java.util.Map initialValues,
java.util.Map values,
ActionResult actionResult) |
ActionResult |
afterRemove(ComposedType itemType,
DisplayState displayState,
java.util.Map values,
ActionResult actionResult) |
ActionResult |
afterSave(Item item,
DisplayState displayState,
java.util.Map currentValues,
java.util.Map initialValues,
ActionResult actionResult) |
ActionResult |
beforeCreate(ComposedType itemType,
DisplayState displayState,
java.util.Map initialValues) |
java.util.List |
getEditorTabChips(DisplayState displayState,
AbstractEditorMenuChip parent) |
static java.lang.String |
getLocalizedString(java.lang.String strKey,
SessionContext ctx)
Returns a localized string for the given key.
|
static java.lang.String |
getLocalizedString(java.lang.String strKey,
java.lang.String isocode)
Returns a localized string for the given key.
|
static java.util.ResourceBundle |
getLocalizeResBundle(java.lang.String isoCode)
Returns the resource bundle for the given iso code.
|
java.util.ResourceBundle |
getLocalizeResourceBundle(java.util.Locale locale)
Should return the resource bundle for the extension and the given locale.
|
java.util.List |
getMenuEntrySlotEntries(DisplayState displayState,
Chip parent) |
java.lang.String |
getResourcePath()
Should return the path to the resource bundle.
|
java.util.List |
getSectionChips(DisplayState displayState,
ClipChip parent) |
java.util.List |
getToolbarActionChips(DisplayState displayState,
Chip parent) |
java.util.List |
getTreeNodeChips(DisplayState displayState,
Chip parent) |
adjustEditorConfiguration, adjustToolbarActionChips, afterSave, beforeRemove, beforeSave, notifySessionBeginpublic static final java.lang.String RESOURCE_PATH
public static final java.lang.String ACTION_CREATE
public static final java.lang.String ACTION_REMOVE
public static final java.lang.String ACTION_SAVE
public java.util.List getTreeNodeChips(DisplayState displayState, Chip parent)
getTreeNodeChips in class HMCExtensiondisplayState - the current DisplayStateparent - the parent AbstractExplorerMenuTreeNodeChipAbstractExplorerMenuTreeNodeChips.public java.util.List getMenuEntrySlotEntries(DisplayState displayState, Chip parent)
getMenuEntrySlotEntries in class HMCExtensiondisplayState - the current DisplayStateparent - the parent ChipMenuEntrySlotEntry.public java.util.List getSectionChips(DisplayState displayState, ClipChip parent)
getSectionChips in class HMCExtensiondisplayState - the current DisplayStateparent - the parent ClipChipClipChips.public java.util.List getEditorTabChips(DisplayState displayState, AbstractEditorMenuChip parent)
getEditorTabChips in class HMCExtensiondisplayState - the current DisplayStateparent - the parent AbstractEditorMenuChipEditorTabChippublic java.util.List getToolbarActionChips(DisplayState displayState, Chip parent)
getToolbarActionChips in class HMCExtensiondisplayState - the current DisplayStateparent - the parent ChipToolbarActionChips.public static java.util.ResourceBundle getLocalizeResBundle(java.lang.String isoCode)
throws java.util.MissingResourceException
RESOURCE_PATH to locate the resource bundle.isoCode - the resource bundle iso code.java.util.MissingResourceException - if the resource bundle is missing at the given pathpublic static java.lang.String getLocalizedString(java.lang.String strKey,
java.lang.String isocode)
strKey - the localized string keyisocode - the language iso code.public static java.lang.String getLocalizedString(java.lang.String strKey,
SessionContext ctx)
strKey - the localized string key.ctx - the current session context. Will be used to compute the isocode of the session context language.public java.util.ResourceBundle getLocalizeResourceBundle(java.util.Locale locale)
HMCExtensionMissingResourceException.getLocalizeResourceBundle in class HMCExtensionNULL.public java.lang.String getResourcePath()
HMCExtensiongetResourcePath in class HMCExtensionpublic ActionResult afterSave(Item item, DisplayState displayState, java.util.Map currentValues, java.util.Map initialValues, ActionResult actionResult)
afterSave in class HMCExtensionpublic ActionResult afterCreate(Item item, DisplayState displayState, java.util.Map initialValues, java.util.Map values, ActionResult actionResult)
afterCreate in class HMCExtensionpublic ActionResult afterRemove(ComposedType itemType, DisplayState displayState, java.util.Map values, ActionResult actionResult)
afterRemove in class HMCExtensionpublic ActionResult beforeCreate(ComposedType itemType, DisplayState displayState, java.util.Map initialValues)
beforeCreate in class HMCExtensionCopyright © 2017 SAP SE. All Rights Reserved.