Class DefaultQuoteAssignmentValidationStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.strategies.impl.DefaultQuoteAssignmentValidationStrategy
-
- All Implemented Interfaces:
QuoteAssignmentValidationStrategy
public class DefaultQuoteAssignmentValidationStrategy extends java.lang.Object implements QuoteAssignmentValidationStrategy
Default implementation ofQuoteActionValidationStrategy.
-
-
Constructor Summary
Constructors Constructor Description DefaultQuoteAssignmentValidationStrategy()
-
Method Summary
All Methods Instance Methods Concrete 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
public void validateQuoteAssignment(QuoteModel quote, UserModel assignee, UserModel assigner)
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
public void validateQuoteUnassignment(QuoteModel quote, UserModel assigner)
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
-
-