Package com.sap.retail.oaa.validators
Class ResponsiveDeliveryAddressCheckoutStepValidator
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.checkout.steps.validation.AbstractCheckoutStepValidator
-
- com.sap.retail.oaa.validators.ResponsiveDeliveryAddressCheckoutStepValidator
-
- All Implemented Interfaces:
CheckoutStepValidator
public class ResponsiveDeliveryAddressCheckoutStepValidator extends AbstractCheckoutStepValidator
Validator for Delivery Address in Checkout
-
-
Constructor Summary
Constructors Constructor Description ResponsiveDeliveryAddressCheckoutStepValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationResultsdoSourcingAndRedirect(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)Performs Sourcing for current session cart and redirects to the next checkout step.protected ValidationResultsdoSourcingAndRedirectPickUpItemsOnly(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)Performs Sourcing for pickup items in the current session cart and redirects to the corresponding checkout step.protected ValidationResultsdoSourcingAndRedirectShipToAndPickUpItems(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)Performs Sourcing for current session cart and redirects to the corresponding checkout step.protected OaaCheckoutFacadegetOaaCheckoutFacade()Returns the OaaCheckoutFacade.voidsetOaaCheckoutFacade(OaaCheckoutFacade oaaCheckoutFacade)Sets the OaaCheckoutFacade.ValidationResultsvalidateOnEnter(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)This method should be implemented to validate whether all the required details are present before entering the checkout step.-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.checkout.steps.validation.AbstractCheckoutStepValidator
getCheckoutFacade, getCheckoutFlowFacade, setCheckoutFacade, setCheckoutFlowFacade, validateOnExit
-
-
-
-
Method Detail
-
validateOnEnter
public ValidationResults validateOnEnter(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Description copied from interface:CheckoutStepValidatorThis method should be implemented to validate whether all the required details are present before entering the checkout step.- Specified by:
validateOnEnterin interfaceCheckoutStepValidator- Specified by:
validateOnEnterin classAbstractCheckoutStepValidator- Returns:
- ValidationResults
-
doSourcingAndRedirect
protected ValidationResults doSourcingAndRedirect(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Performs Sourcing for current session cart and redirects to the next checkout step.- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
doSourcingAndRedirectShipToAndPickUpItems
protected ValidationResults doSourcingAndRedirectShipToAndPickUpItems(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Performs Sourcing for current session cart and redirects to the corresponding checkout step.- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
doSourcingAndRedirectPickUpItemsOnly
protected ValidationResults doSourcingAndRedirectPickUpItemsOnly(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Performs Sourcing for pickup items in the current session cart and redirects to the corresponding checkout step.- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
getOaaCheckoutFacade
protected OaaCheckoutFacade getOaaCheckoutFacade()
Returns the OaaCheckoutFacade.- Returns:
- OaaCheckoutFacade
-
setOaaCheckoutFacade
public void setOaaCheckoutFacade(OaaCheckoutFacade oaaCheckoutFacade)
Sets the OaaCheckoutFacade.- Parameters:
oaaCheckoutFacade-
-
-