public class GenericItemSaveAction extends SaveAction
CURRENT_VALUES, DISPLAY_STATE, INITIAL_VALUES, ITEM, SPECIAL_EDITORS| Constructor and Description |
|---|
GenericItemSaveAction() |
| Modifier and Type | Method and Description |
|---|---|
protected ActionResult |
afterSave(Item item,
DisplayState displayState,
Map currentValues,
ActionResult actionResult) |
protected ActionResult |
afterSave(Item item,
DisplayState displayState,
Map currentValues,
Map initialValues,
ActionResult actionResult)
Doing nothing...
|
protected 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 ActionResult |
save(Item item,
DisplayState displayState,
Map currentValues,
Map specialEditors,
ActionResult actionResult)
Deprecated.
|
protected ActionResult |
save(Item item,
DisplayState displayState,
Map currentValues,
Map initialValues,
Map specialEditors,
ActionResult actionResult) |
protected void |
saveSpecialEditors(Item item,
Map<String,AbstractChip> editors)
Saves all values of partOf-attributes.
|
createDialogChip, getConfirmationMessage, hasDialogChip, needConfirmation, perform, validateSpecialEditorsprotected ActionResult beforeSave(Item item, DisplayState displayState, Map currentValues, Map initialValues)
SaveActionbeforeSave in class SaveActionitem - 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.SaveAction.beforeSave(de.hybris.platform.jalo.Item,
de.hybris.platform.hmc.webchips.DisplayState, java.util.Map, java.util.Map)@Deprecated protected ActionResult save(Item item, DisplayState displayState, Map currentValues, Map specialEditors, ActionResult actionResult)
save in class SaveActionitem - Item which attributes should be saved.displayState - DisplayStatecurrentValues - Map containing all attribute values which have to be saved. (Mapping: AttributeQualifier -> Value) Note:
AttributeQualifier should always be treated case insensitively. Use
de.hybris.platform.util.collections.CaseInsensitiveMap or other caseinsensitive
implementations.specialEditors - Map containing all chips, which values are not save through the generic save process.actionResult - The ActionResult object, containing the status of the current action.protected ActionResult save(Item item, DisplayState displayState, Map currentValues, Map initialValues, Map specialEditors, ActionResult actionResult)
protected ActionResult afterSave(Item item, DisplayState displayState, Map currentValues, ActionResult actionResult)
afterSave in class SaveActionitem - 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 case insensitively. Use
de.hybris.platform.util.collections.CaseInsensitiveMap or other caseinsensitive
implementations.actionResult - The ActionResult object, containing the status of the current action.protected ActionResult afterSave(Item item, DisplayState displayState, Map currentValues, Map initialValues, ActionResult actionResult)
afterSave in class SaveActionprotected void saveSpecialEditors(Item item, Map<String,AbstractChip> editors) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
item - The attribute values specified in parameter values will be saved using this item.editors - Map of all editors, which require special save handling (SpecialEditors and EditorChips of
partOf-attributes).JaloInvalidParameterExceptionJaloSecurityExceptionJaloBusinessExceptionCopyright © 2017 SAP SE. All Rights Reserved.