public abstract class RemoveAction extends Object implements HMCAction
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPLAY_STATE
action parameter - the displayState
|
static String |
INITIAL_VALUES
action parameter - the list of initial values
|
static String |
ITEM
action parameter - the item to be removed
|
static String |
ITEM_TYPE
action parameter - the type of the item to be removed
|
protected static Logger |
LOG |
| Constructor and Description |
|---|
RemoveAction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ActionResult |
afterRemove(ComposedType itemType,
DisplayState displayState,
Map values,
ActionResult actionResult) |
protected abstract ActionResult |
beforeRemove(Item item,
ComposedType itemType,
DisplayState displayState,
Map values) |
AbstractActionDialogChip |
createDialogChip(Chip parent,
AbstractActionChip actionChip) |
String |
getConfirmationMessage()
This default implementation returns
null (It means the standard confirmation message will be used if
confirmation is on). |
boolean |
hasDialogChip(AbstractActionChip actionChip) |
boolean |
needConfirmation()
This default implementation returns
false. |
ActionResult |
perform(ActionEvent actionEvent)
This action requires Map with action parameters in ActionEvent data.
|
protected abstract ActionResult |
remove(Item item,
DisplayState displayState,
ActionResult actionResult) |
public static final String ITEM
public static final String ITEM_TYPE
public static final String DISPLAY_STATE
public static final String INITIAL_VALUES
protected static final Logger LOG
protected abstract ActionResult beforeRemove(Item item, ComposedType itemType, DisplayState displayState, Map values)
item - the Item which should be removeddisplayState - DisplayStatevalues - Map containing all attribute values. (Mapping: AttributeQualifier -> Value) Note: AttributeQualifier
should always be treated case insensitive. Use
de.hybris.platform.util.collections.CaseInsensitiveMap or other case insensitive
implementations.protected abstract ActionResult remove(Item item, DisplayState displayState, ActionResult actionResult)
item - the Item which should be removeddisplayState - DisplayStateactionResult - The ActionResult object, containing the status of the current action.protected abstract ActionResult afterRemove(ComposedType itemType, DisplayState displayState, Map values, ActionResult actionResult)
itemType - the ComposedType of the removed ItemdisplayState - DisplayStatevalues - Map containing all 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.public ActionResult perform(ActionEvent actionEvent) throws JaloBusinessException
perform in interface HMCActionactionEvent - JaloBusinessExceptionITEM_TYPE,
DISPLAY_STATEpublic boolean needConfirmation()
false. Overwrite this method if you want confirmation for this
action.needConfirmation in interface HMCActionpublic String getConfirmationMessage()
null (It means the standard confirmation message will be used if
confirmation is on). Overwrite this method if you want yopur own confirmation message for this action.getConfirmationMessage in interface HMCActionpublic boolean hasDialogChip(AbstractActionChip actionChip)
hasDialogChip in interface HMCActionpublic AbstractActionDialogChip createDialogChip(Chip parent, AbstractActionChip actionChip)
createDialogChip in interface HMCActionCopyright © 2017 SAP SE. All Rights Reserved.