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 Summary
Modifier and TypeMethodDescriptionvoidvalidateQuoteAssignment(QuoteModel quote, UserModel assignee, UserModel assigner) Validates if quote can be assigned to an assignee by an assigner, else throws IllegalArgumentExceptionvoidvalidateQuoteUnassignment(QuoteModel quote, UserModel assigner) Validates if quote can be unassigned by an assigner, else throws IllegalArgumentException
-
Method Details
-
validateQuoteAssignment
Validates if quote can be assigned to an assignee by an assigner, else throws IllegalArgumentException- Parameters:
quote- the quote to be assignedassignee- the user to which the quote should be assignedassigner- the user assigning the quote to the assignee- Throws:
CommerceQuoteAssignmentException- thrown if the quote assignment fails
-
validateQuoteUnassignment
Validates if quote can be unassigned by an assigner, else throws IllegalArgumentException- Parameters:
quote- the quote to be assignedassigner- the user assigning the quote to the assignee- Throws:
CommerceQuoteAssignmentException- thrown if the quote unassignment fails
-