Class DefaultQuoteAssignmentValidationStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.strategies.impl.DefaultQuoteAssignmentValidationStrategy
- All Implemented Interfaces:
QuoteAssignmentValidationStrategy
public class DefaultQuoteAssignmentValidationStrategy
extends Object
implements QuoteAssignmentValidationStrategy
Default implementation of
QuoteActionValidationStrategy.-
Constructor Summary
Constructors -
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
-
Constructor Details
-
DefaultQuoteAssignmentValidationStrategy
public DefaultQuoteAssignmentValidationStrategy()
-
-
Method Details
-
validateQuoteAssignment
Description copied from interface:QuoteAssignmentValidationStrategyValidates if quote can be assigned to an assignee by an assigner, else throws IllegalArgumentException- Specified by:
validateQuoteAssignmentin interfaceQuoteAssignmentValidationStrategy- Parameters:
quote- the quote to be assignedassignee- the user to which the quote should be assignedassigner- the user assigning the quote to the assignee
-
validateQuoteUnassignment
Description copied from interface:QuoteAssignmentValidationStrategyValidates if quote can be unassigned by an assigner, else throws IllegalArgumentException- Specified by:
validateQuoteUnassignmentin interfaceQuoteAssignmentValidationStrategy- Parameters:
quote- the quote to be assignedassigner- the user assigning the quote to the assignee
-