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