public abstract class HMCExtension extends Object
| Constructor and Description |
|---|
HMCExtension() |
| Modifier and Type | Method and Description |
|---|---|
EditorNode |
adjustEditorConfiguration(EditorNode defaultNode,
ComposedType type,
Item forItem)
Allows to provide a customized
EditorNode for each item instead of using one for all items (depending upon
their type). |
void |
adjustToolbarActionChips(List<AbstractToolbarActionChip> toolbarActions,
JaloSession session)
If you want to remove specific toolbar actions from the main toolbar (maybe based on the current user) then you
can implement this method in your extension and simply remove the actions from the provided list.
|
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,
ActionResult actionResult) |
ActionResult |
afterSave(Item item,
DisplayState displayState,
Map currentValues,
Map initialValues,
ActionResult actionResult) |
ActionResult |
beforeCreate(ComposedType itemType,
DisplayState displayState,
Map initialValues) |
ActionResult |
beforeRemove(Item item,
ComposedType itemType,
DisplayState displayState,
Map values) |
ActionResult |
beforeSave(Item item,
DisplayState displayState,
Map currentValues,
Map initialValues)
The maps currentValues and initialValues can be used to implement filtering of values, which must not be saved.
|
abstract List<EditorTabChip> |
getEditorTabChips(DisplayState displayState,
AbstractEditorMenuChip parent) |
abstract ResourceBundle |
getLocalizeResourceBundle(Locale locale)
Should return the resource bundle for the extension and the given locale.
|
abstract List<MenuEntrySlotEntry> |
getMenuEntrySlotEntries(DisplayState displayState,
Chip parent) |
abstract String |
getResourcePath()
Should return the path to the resource bundle.
|
abstract List<ClipChip> |
getSectionChips(DisplayState displayState,
ClipChip parent) |
abstract List<ToolbarActionChip> |
getToolbarActionChips(DisplayState displayState,
Chip parent) |
abstract List<AbstractExplorerMenuTreeNodeChip> |
getTreeNodeChips(DisplayState displayState,
Chip parent) |
void |
notifySessionBegin(DisplayState displayState,
JaloSession jaloSession,
HttpServletRequest request)
In your HMCExtension class you can implement this method to be notified of any new hmc session which is started.
|
public abstract List<EditorTabChip> getEditorTabChips(DisplayState displayState, AbstractEditorMenuChip parent)
displayState - the current DisplayStateparent - the parent AbstractEditorMenuChipEditorTabChippublic abstract List<AbstractExplorerMenuTreeNodeChip> getTreeNodeChips(DisplayState displayState, Chip parent)
displayState - the current DisplayStateparent - the parent AbstractExplorerMenuTreeNodeChipAbstractExplorerMenuTreeNodeChips.public abstract List<MenuEntrySlotEntry> getMenuEntrySlotEntries(DisplayState displayState, Chip parent)
displayState - the current DisplayStateparent - the parent ChipMenuEntrySlotEntry.public abstract List<ClipChip> getSectionChips(DisplayState displayState, ClipChip parent)
displayState - the current DisplayStateparent - the parent ClipChipClipChips.public abstract List<ToolbarActionChip> getToolbarActionChips(DisplayState displayState, Chip parent)
displayState - the current DisplayStateparent - the parent ChipToolbarActionChips.public void adjustToolbarActionChips(List<AbstractToolbarActionChip> toolbarActions, JaloSession session)
public abstract ResourceBundle getLocalizeResourceBundle(Locale locale) throws MissingResourceException
MissingResourceException.NULL.MissingResourceException - If there is no resource bundle for the given locale available.public abstract String getResourcePath()
public ActionResult beforeSave(Item item, DisplayState displayState, Map currentValues, Map initialValues)
item - Item which attributes should be saved.displayState - DisplayStatecurrentValues - Map containing all current attribute values. (Mapping: AttributeQualifier -> Value) Note:
AttributeQualifier should always be treated caseinsensitive. Use
de.hybris.platform.util.collections.CaseInsensitiveMap or other caseinsensitive
implementations.initialValues - Map containing all initial attribute values. (Mapping: AttributeQualifier -> Value) Note:
AttributeQualifier should always be treated caseinsensitive. Use
de.hybris.platform.util.collections.CaseInsensitiveMap or other caseinsensitive
implementations.public ActionResult beforeCreate(ComposedType itemType, DisplayState displayState, Map initialValues)
public ActionResult afterCreate(Item item, DisplayState displayState, Map initialValues, Map values, ActionResult actionResult)
public ActionResult afterSave(Item item, DisplayState displayState, Map currentValues, ActionResult actionResult)
item - Item which attributes should be saved.displayState - DisplayStatecurrentValues - Map containing all attribute values which have been saved. (Mapping: AttributeQualifier -> Value) Note:
AttributeQualifier should always be treated caseinsensitive. Use
de.hybris.platform.util.collections.CaseInsensitiveMap or other caseinsensitive
implementations.actionResult - The ActionResult object, containing the status of the current action.public ActionResult afterSave(Item item, DisplayState displayState, Map currentValues, Map initialValues, ActionResult actionResult)
public ActionResult beforeRemove(Item item, ComposedType itemType, DisplayState displayState, Map values)
item - Item which should be removed.displayState - DisplayStatepublic ActionResult afterRemove(ComposedType itemType, DisplayState displayState, Map values, ActionResult actionResult)
public void notifySessionBegin(DisplayState displayState, JaloSession jaloSession, HttpServletRequest request)
public EditorNode adjustEditorConfiguration(EditorNode defaultNode, ComposedType type, Item forItem)
EditorNode for each item instead of using one for all items (depending upon
their type).defaultNode - the default editor node chosen by item typetype - the item typeforItem - the actual item to open an editor forCopyright © 2017 SAP SE. All Rights Reserved.