Interface CommerceQuoteValidator
- All Known Implementing Classes:
ProductConfigQuoteValidator
public interface CommerceQuoteValidator
Validator that gets called when a quote is validated by the
QuoteActionValidationStrategy.-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(QuoteAction quoteAction, QuoteModel quoteModel, UserModel userModel) Checks whether a user can perform a certain action on a quote.
-
Method Details
-
validate
Checks whether a user can perform a certain action on a quote.- Parameters:
quoteAction- the quote action to be performedquoteModel- the quote on which the action is to be performeduserModel- the user that wants to perform the action- Throws:
IllegalQuoteStateException- if the action cannot be performed for a quote
-