public class CatalogHMCExtension extends HMCExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_PATH |
| Constructor and Description |
|---|
CatalogHMCExtension() |
| 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). |
ActionResult |
beforeCreate(ComposedType itemType,
DisplayState displayState,
Map initialValues) |
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.
|
ActionResult |
checkAllowedToWriteCatalogVersion(Item item,
ComposedType itemType,
Map values)
Checks if session user has proper write permission to the catalog version.
|
ActionResult |
checkNonEmployeesMemberPrincipals(Map values) |
ActionResult |
checkPossibleInitWithDefaultCatalogVersion(Map values,
ComposedType itemType)
Checks if the item could be initialized with default catalog version.
|
static ClassificationAttributeEditorChipFactory |
getClassificationAttributeEditorChipFactory() |
List |
getEditorTabChips(DisplayState displayState,
AbstractEditorMenuChip parent) |
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) |
adjustToolbarActionChips, afterCreate, afterRemove, afterSave, afterSave, beforeRemove, notifySessionBeginpublic static final String RESOURCE_PATH
public EditorNode adjustEditorConfiguration(EditorNode defaultNode, ComposedType type, Item forItem)
HMCExtensionEditorNode for each item instead of using one for all items (depending upon
their type).adjustEditorConfiguration in class HMCExtensiondefaultNode - the default editor node chosen by item typetype - the item typeforItem - the actual item to open an editor forpublic 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 ResourceBundle getLocalizeResourceBundle(Locale locale)
HMCExtensionMissingResourceException.getLocalizeResourceBundle in class HMCExtensionNULL.public String getResourcePath()
HMCExtensiongetResourcePath in class HMCExtensionpublic ActionResult beforeCreate(ComposedType itemType, DisplayState displayState, Map initialValues)
beforeCreate in class HMCExtensionpublic ActionResult beforeSave(Item item, DisplayState displayState, Map currentValues, Map initialValues)
HMCExtensionbeforeSave in class HMCExtensionitem - 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 checkAllowedToWriteCatalogVersion(Item item, ComposedType itemType, Map values)
public ActionResult checkPossibleInitWithDefaultCatalogVersion(Map values, ComposedType itemType)
public ActionResult checkNonEmployeesMemberPrincipals(Map values)
public static ClassificationAttributeEditorChipFactory getClassificationAttributeEditorChipFactory()
Copyright © 2017 SAP SE. All Rights Reserved.