public class QuoteCommerceCartMetadataUpdateValidationHook extends java.lang.Object implements CommerceCartMetadataUpdateMethodHook
| Constructor and Description |
|---|
QuoteCommerceCartMetadataUpdateValidationHook() |
public QuoteCommerceCartMetadataUpdateValidationHook()
public void beforeMetadataUpdate(CommerceCartMetadataParameter parameter)
QuoteExpirationTimeUtils.isExpirationTimeValid(Date, Date). A seller approver cannot set cart metadata
attributes.beforeMetadataUpdate in interface CommerceCartMetadataUpdateMethodHookparameter - a bean holding any number of additional attributes a client may want to pass to the methodjava.lang.IllegalArgumentException - if any of the attributes cannot be set by the user as per the quote rules or if the type of the user
cannot be determinedIllegalQuoteStateException - if the cart is associated with a quote for which the operation cannot be performedprotected void validateParameter(CommerceCartMetadataParameter parameter, QuoteUserType quoteUserType)
protected void validateExpirationTime(java.util.Date expirationTime)
public void afterMetadataUpdate(CommerceCartMetadataParameter parameter)
CommerceCartMetadataUpdateMethodHookafterMetadataUpdate in interface CommerceCartMetadataUpdateMethodHookparameter - a bean holding any number of additional attributes a client may want to pass to the methodprotected QuoteActionValidationStrategy getQuoteActionValidationStrategy()
public void setQuoteActionValidationStrategy(QuoteActionValidationStrategy quoteActionValidationStrategy)
protected QuoteUserIdentificationStrategy getQuoteUserIdentificationStrategy()
public void setQuoteUserIdentificationStrategy(QuoteUserIdentificationStrategy quoteUserIdentificationStrategy)
protected QuoteUserTypeIdentificationStrategy getQuoteUserTypeIdentificationStrategy()
public void setQuoteUserTypeIdentificationStrategy(QuoteUserTypeIdentificationStrategy quoteUserTypeIdentificationStrategy)
protected TimeService getTimeService()
public void setTimeService(TimeService timeService)
Copyright © 2018 SAP SE. All Rights Reserved.