Interface QuoteMetadataValidationStrategy

    • Method Detail

      • 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:
        java.lang.IllegalArgumentException - if any attributes fail validation or if the quote user type is unknown
        java.lang.IllegalStateException - if a seller approver performs Approve action and the expiration time is not set