public class GenericItemCreateAction extends CreateAction
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
CURRENT_VALUES, DISPLAY_STATE, INITIAL_VALUES, ITEM_TYPE| Constructor and Description |
|---|
GenericItemCreateAction() |
| Modifier and Type | Method and Description |
|---|---|
protected ActionResult |
afterCreate(Item item,
DisplayState displayState,
Map initialValues,
Map values,
ActionResult actionResult) |
protected ActionResult |
beforeCreate(ComposedType itemType,
DisplayState displayState,
Map initialValues,
Map currentValues)
The maps currentValues and initialValues can be used to implement filtering of values, which must not be saved.
|
protected ActionResult |
create(ComposedType itemType,
DisplayState displayState,
Map initialValues,
Map currentValues,
ActionResult actionResult) |
createDialogChip, getConfirmationMessage, hasDialogChip, needConfirmation, performprotected ActionResult beforeCreate(ComposedType itemType, DisplayState displayState, Map initialValues, Map currentValues)
CreateActionbeforeCreate in class CreateActionitemType - A new Item of this ComposedType will be created.displayState - DisplayStateinitialValues - 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.currentValues - 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.protected ActionResult create(ComposedType itemType, DisplayState displayState, Map initialValues, Map currentValues, ActionResult actionResult)
create in class CreateActionitemType - A new Item of this ComposedType will be created.displayState - DisplayStateinitialValues - 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.currentValues - 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.actionResult - The ActionResult object, containing the status of the current action.protected ActionResult afterCreate(Item item, DisplayState displayState, Map initialValues, Map values, ActionResult actionResult)
afterCreate in class CreateActionitem - the new created itemdisplayState - DisplayStateinitialValues - 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.values - 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.actionResult - The ActionResult object, containing the status of the current action.Copyright © 2017 SAP SE. All Rights Reserved.