Class DefaultQuoteMetadataValidationStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.strategies.impl.DefaultQuoteMetadataValidationStrategy
-
- All Implemented Interfaces:
QuoteMetadataValidationStrategy
public class DefaultQuoteMetadataValidationStrategy extends java.lang.Object implements QuoteMetadataValidationStrategy
Default implementation ofQuoteMetadataValidationStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultQuoteMetadataValidationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckExpirationTimeForApproveAction(QuoteModel quoteModel, QuoteUserType quoteUserType)protected QuoteUserTypeIdentificationStrategygetQuoteUserTypeIdentificationStrategy()voidsetQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)voidvalidate(QuoteAction quoteAction, QuoteModel quoteModel, UserModel userModel)Validates the metadata attributes (i.e.
-
-
-
Method Detail
-
validate
public void validate(QuoteAction quoteAction, QuoteModel quoteModel, UserModel userModel)
Description copied from interface:QuoteMetadataValidationStrategyValidates the metadata attributes (i.e. name) for a quote. When a seller approver Approves the quote, IllegalStateException will be thrown if the expiration time is not set.- Specified by:
validatein interfaceQuoteMetadataValidationStrategy- Parameters:
quoteAction- the action that is being performedquoteModel- the quote to be validateduserModel- the user performing the action on the quote
-
checkExpirationTimeForApproveAction
protected void checkExpirationTimeForApproveAction(QuoteModel quoteModel, QuoteUserType quoteUserType)
-
getQuoteUserTypeIdentificationStrategy
protected QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy()
-
setQuoteUserTypeIdentificationStrategy
public void setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)
-
-