public class PrintHMCExtension extends HMCExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_PATH |
| Constructor and Description |
|---|
PrintHMCExtension() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
createCrossreferences(Item item,
String attributeStringValue,
String attributeStringQualifier,
Language lang)
Creates the
Collection of Crossreference for the current Item, Attribute and language. |
List |
getEditorTabChips(DisplayState displayState,
AbstractEditorMenuChip parent) |
static String |
getLocalizedString(String strKey,
JaloSession jaloSession)
Deprecated.
use getLocalizedString(String strKey, SessionContext ctx) instead.
|
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) |
protected boolean |
isStringValueType(AttributeDescriptor attributeDescriptor)
Checks if given attribute is of String type or a Map of Strings
|
adjustEditorConfiguration, adjustToolbarActionChips, afterCreate, afterRemove, afterSave, afterSave, beforeCreate, beforeRemove, notifySessionBeginpublic static final String RESOURCE_PATH
public List getTreeNodeChips(DisplayState displayState, Chip parent)
getTreeNodeChips in class HMCExtensiondisplayState - the current DisplayStateparent - the parent AbstractExplorerMenuTreeNodeChipAbstractExplorerMenuTreeNodeChips.HMCExtension.getTreeNodeChips(DisplayState, Chip)public List getMenuEntrySlotEntries(DisplayState displayState, Chip parent)
getMenuEntrySlotEntries in class HMCExtensiondisplayState - the current DisplayStateparent - the parent ChipMenuEntrySlotEntry.HMCExtension.getMenuEntrySlotEntries(DisplayState, Chip)public List getSectionChips(DisplayState displayState, ClipChip parent)
getSectionChips in class HMCExtensiondisplayState - the current DisplayStateparent - the parent ClipChipClipChips.HMCExtension.getSectionChips(de.hybris.platform.hmc.webchips.DisplayState, de.hybris.platform.hmc.generic.ClipChip)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.HMCExtension.getToolbarActionChips(de.hybris.platform.hmc.webchips.DisplayState, de.hybris.platform.hmc.webchips.Chip)public static ResourceBundle getLocalizeResBundle(String isoCode) throws MissingResourceException
BUNDLEPATH 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.@Deprecated public static String getLocalizedString(String strKey, JaloSession jaloSession)
public ResourceBundle getLocalizeResourceBundle(Locale locale)
HMCExtensionMissingResourceException.getLocalizeResourceBundle in class HMCExtensionNULL.public String getResourcePath()
HMCExtensiongetResourcePath 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.protected boolean isStringValueType(AttributeDescriptor attributeDescriptor)
attributeDescriptor - is the attribute descriptorprotected void createCrossreferences(Item item, String attributeStringValue, String attributeStringQualifier, Language lang)
Collection of Crossreference for the current Item, Attribute and language.item - crossreference source (e.g text attribute)attributeStringValue - value of the attribute containing LinksattributeStringQualifier - attributes qualifierlang - language for the qualifier - null if attribute is not localizedCopyright © 2017 SAP SE. All Rights Reserved.