public interface QuoteStateSelectionStrategy
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<QuoteAction> |
getAllowedActionsForState(QuoteState state,
UserModel userModel)
Provides the list of actions based on the given state.
|
java.util.Set<QuoteState> |
getAllowedStatesForAction(QuoteAction action,
UserModel userModel)
Provides the list of quote states based on provided action.
|
java.util.Optional<QuoteState> |
getTransitionStateForAction(QuoteAction action,
UserModel userModel)
Provides a quote state that the quote should be in for the corresponding action.
|
java.util.Set<QuoteState> getAllowedStatesForAction(QuoteAction action, UserModel userModel)
action - quote action that is being performeduserModel - user used to determine the allowed statesjava.lang.IllegalArgumentException - if any of the parameters is nulljava.util.Set<QuoteAction> getAllowedActionsForState(QuoteState state, UserModel userModel)
state - quote state that can allow one actionuserModel - user used to determine the allowed actionsjava.lang.IllegalArgumentException - if any of the parameters is nulljava.util.Optional<QuoteState> getTransitionStateForAction(QuoteAction action, UserModel userModel)
action - quote action that is being performeduserModel - user used to determine the transition statejava.lang.IllegalArgumentException - if any of the parameters is nullCopyright © 2018 SAP SE. All Rights Reserved.