Class DefaultQuoteMetadataValidationStrategy

java.lang.Object
de.hybris.platform.commerceservices.order.strategies.impl.DefaultQuoteMetadataValidationStrategy
All Implemented Interfaces:
QuoteMetadataValidationStrategy

public class DefaultQuoteMetadataValidationStrategy extends Object implements QuoteMetadataValidationStrategy
Default implementation of QuoteMetadataValidationStrategy
  • Constructor Details

    • DefaultQuoteMetadataValidationStrategy

      public DefaultQuoteMetadataValidationStrategy()
  • Method Details

    • 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)
    • getQuoteUserTypeIdentificationStrategy

      protected QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy()
    • setQuoteUserTypeIdentificationStrategy

      public void setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)