Interface QuoteMetadataValidationStrategy
- All Known Implementing Classes:
DefaultQuoteMetadataValidationStrategy
public interface QuoteMetadataValidationStrategy
Strategy to help validate quote metadata attributes, such as name
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(QuoteAction quoteAction, QuoteModel quoteModel, UserModel userModel) Validates the metadata attributes (i.e.
-
Method Details
-
validate
Validates the metadata attributes (i.e. name) for a quote. When a seller approver Approves the quote, IllegalStateException will be thrown if the expiration time is not set.- Parameters:
quoteAction- the action that is being performedquoteModel- the quote to be validateduserModel- the user performing the action on the quote- Throws:
IllegalArgumentException- if any attributes fail validation or if the quote user type is unknownIllegalStateException- if a seller approver performs Approve action and the expiration time is not set
-