Interface QuoteMetadataValidationStrategy

All Known Implementing Classes:
DefaultQuoteMetadataValidationStrategy

public interface QuoteMetadataValidationStrategy
Strategy to help validate quote metadata attributes, such as name
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(QuoteAction quoteAction, QuoteModel quoteModel, UserModel userModel)
    Validates the metadata attributes (i.e.
  • Method Details

    • validate

      void validate(QuoteAction quoteAction, QuoteModel quoteModel, UserModel userModel)
      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 performed
      quoteModel - the quote to be validated
      userModel - the user performing the action on the quote
      Throws:
      IllegalArgumentException - if any attributes fail validation or if the quote user type is unknown
      IllegalStateException - if a seller approver performs Approve action and the expiration time is not set