Interface QuoteAssignmentValidationStrategy
-
- All Known Implementing Classes:
DefaultQuoteAssignmentValidationStrategy
public interface QuoteAssignmentValidationStrategyStrategy to help validate if a quote can be assigned to the given assignee
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateQuoteAssignment(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 Detail
-
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 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
void validateQuoteUnassignment(QuoteModel quote, UserModel assigner)
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
-
-