public class DefaultCartEntryActionFacade extends java.lang.Object implements CartEntryActionFacade
CartEntryActionFacade interface.| Constructor and Description |
|---|
DefaultCartEntryActionFacade() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
executeAction(CartEntryAction action,
java.util.List<java.lang.Long> entryNumbers)
This method will trigger
CartEntryActionHandler.handleAction(List) on the CartEntryActionHandler
configured for the given . |
protected CartEntryActionHandlerRegistry |
getCartEntryActionHandlerRegistry() |
java.util.Optional<java.lang.String> |
getErrorMessageKey(CartEntryAction action)
Provides the key to the message that should be displayed when a CartEntryActionException is thrown.
|
java.util.Optional<java.lang.String> |
getSuccessMessageKey(CartEntryAction action)
Provides the key to the message that should be displayed when an action runs with success.
|
void |
setCartEntryActionHandlerRegistry(CartEntryActionHandlerRegistry cartEntryActionHandlerRegistry) |
public java.util.Optional<java.lang.String> executeAction(CartEntryAction action, java.util.List<java.lang.Long> entryNumbers) throws CartEntryActionException
CartEntryActionFacadeCartEntryActionHandler.handleAction(List) on the CartEntryActionHandler
configured for the given .executeAction in interface CartEntryActionFacadeaction - the action you want to execute.entryNumbers - the cart entry numbers for which the action is executed.CartEntryActionException - when an error occurs during the action execution.public java.util.Optional<java.lang.String> getSuccessMessageKey(CartEntryAction action)
CartEntryActionFacadegetSuccessMessageKey in interface CartEntryActionFacadeaction - the action you want the message key forpublic java.util.Optional<java.lang.String> getErrorMessageKey(CartEntryAction action)
CartEntryActionFacadegetErrorMessageKey in interface CartEntryActionFacadeaction - the action you want the message key for.protected CartEntryActionHandlerRegistry getCartEntryActionHandlerRegistry()
public void setCartEntryActionHandlerRegistry(CartEntryActionHandlerRegistry cartEntryActionHandlerRegistry)
Copyright © 2018 SAP SE. All Rights Reserved.