Class DefaultQuoteMetadataValidationStrategy

    • Constructor Detail

      • DefaultQuoteMetadataValidationStrategy

        public DefaultQuoteMetadataValidationStrategy()
    • Method Detail

      • validate

        public void validate​(QuoteAction quoteAction,
                             QuoteModel quoteModel,
                             UserModel userModel)
        Description copied from interface: QuoteMetadataValidationStrategy
        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.
        Specified by:
        validate in interface QuoteMetadataValidationStrategy
        Parameters:
        quoteAction - the action that is being performed
        quoteModel - the quote to be validated
        userModel - the user performing the action on the quote
      • checkExpirationTimeForApproveAction

        protected void checkExpirationTimeForApproveAction​(QuoteModel quoteModel,
                                                           QuoteUserType quoteUserType)