Interface QuoteAssignmentValidationStrategy

All Known Implementing Classes:
DefaultQuoteAssignmentValidationStrategy

public interface QuoteAssignmentValidationStrategy
Strategy to help validate if a quote can be assigned to the given assignee
  • Method Details

    • validateQuoteAssignment

      void validateQuoteAssignment(QuoteModel quote, UserModel assignee, UserModel assigner)
      Validates if quote can be assigned to an assignee by an assigner, else throws IllegalArgumentException
      Parameters:
      quote - the quote to be assigned
      assignee - the user to which the quote should be assigned
      assigner - the user assigning the quote to the assignee
      Throws:
      CommerceQuoteAssignmentException - thrown if the quote assignment fails
    • validateQuoteUnassignment

      void validateQuoteUnassignment(QuoteModel quote, UserModel assigner)
      Validates if quote can be unassigned by an assigner, else throws IllegalArgumentException
      Parameters:
      quote - the quote to be assigned
      assigner - the user assigning the quote to the assignee
      Throws:
      CommerceQuoteAssignmentException - thrown if the quote unassignment fails