Class DeliveryAddressCheckoutStepController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
-
- de.hybris.platform.yacceleratorstorefront.controllers.pages.checkout.steps.DeliveryAddressCheckoutStepController
-
- All Implemented Interfaces:
CheckoutStepController
@Controller @RequestMapping("/checkout/multi/delivery-address") public class DeliveryAddressCheckoutStepController extends AbstractCheckoutStepController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
AbstractCheckoutStepController.CheckoutSteps
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
AbstractCheckoutController.SelectOption
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
MULTI_CHECKOUT_SUMMARY_CMS_PAGE_LABEL, REDIRECT_URL_ADD_DELIVERY_ADDRESS, REDIRECT_URL_ADD_PAYMENT_METHOD, REDIRECT_URL_CART, REDIRECT_URL_CHOOSE_DELIVERY_METHOD, REDIRECT_URL_ERROR, REDIRECT_URL_SUMMARY
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
REDIRECT_URL_ORDER_CONFIRMATION
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description DeliveryAddressCheckoutStepController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringadd(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.Stringback(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.StringdoSelectDeliveryAddress(java.lang.String selectedAddressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)This method gets called when the "Use this Address" button is clicked.java.lang.StringdoSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.Stringedit(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringeditAddressForm(java.lang.String editAddressCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.StringenterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)Swapping the parameter order might break the validation aspect from working.protected java.lang.StringgetBreadcrumbKey()protected CheckoutStepgetCheckoutStep()java.lang.Stringnext(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)protected voidpopulateCommonModelAttributes(org.springframework.ui.Model model, CartData cartData, AddressForm addressForm)protected voidprocessAddressVisibility(AddressForm addressForm, AddressData newAddress)protected voidprocessAddressVisibilityAndDefault(AddressForm addressForm, AddressData newAddress)java.lang.StringremoveAddress(java.lang.String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model)protected voidsetDeliveryAddress(AddressData selectedAddressData)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
addCheckoutStepsToModel, getAddressValidator, getAddressVerificationResultHandler, getCartFacade, getCheckoutFlowGroupMap, getCheckoutGroup, getCheckoutStep, getContentPageBreadcrumbBuilder, getCountries, getCountryDataMap, getCustomerLocationService, getPaymentDetailsValidator, getPaymentFacade, getProductFacade, getRequestParameterMap, getResourceBreadcrumbBuilder, getTitles, handleUnknownIdentifierException, prepareDataForPage, setCheckoutStepLinksForModel
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
getAddressVerificationFacade, getCheckoutCustomerStrategy, getCheckoutFacade, getCheckoutFlowFacade, getDeliveryAddresses, getI18NFacade, isAddressIdChanged, isAddressOnList, redirectToOrderConfirmationPage, validateCart
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Method Detail
-
enterStep
@RequestMapping(value="/add", method=GET) public java.lang.String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundExceptionDescription copied from interface:CheckoutStepControllerSwapping the parameter order might break the validation aspect from working.- Returns:
- returns the result for entering the checkout step
- Throws:
CMSItemNotFoundException
-
add
@RequestMapping(value="/add", method=POST) public java.lang.String add(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
processAddressVisibilityAndDefault
protected void processAddressVisibilityAndDefault(AddressForm addressForm, AddressData newAddress)
-
editAddressForm
@RequestMapping(value="/edit", method=GET) public java.lang.String editAddressForm(@RequestParam("editAddressCode") java.lang.String editAddressCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
edit
@RequestMapping(value="/edit", method=POST) public java.lang.String edit(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
processAddressVisibility
protected void processAddressVisibility(AddressForm addressForm, AddressData newAddress)
-
removeAddress
@RequestMapping(value="/remove", method={GET,POST}) public java.lang.String removeAddress(@RequestParam("addressCode") java.lang.String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
doSelectSuggestedAddress
@RequestMapping(value="/select", method=POST) public java.lang.String doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
doSelectDeliveryAddress
@RequestMapping(value="/select", method=GET) public java.lang.String doSelectDeliveryAddress(@RequestParam("selectedAddressCode") java.lang.String selectedAddressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)This method gets called when the "Use this Address" button is clicked. It sets the selected delivery address on the checkout facade - if it has changed, and reloads the page highlighting the selected delivery address.- Parameters:
selectedAddressCode- - the id of the delivery address.- Returns:
- - a URL to the page to load.
-
setDeliveryAddress
protected void setDeliveryAddress(AddressData selectedAddressData)
-
back
@RequestMapping(value="/back", method=GET) public java.lang.String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)- Returns:
- checkoutstep link for navigating back
-
next
@RequestMapping(value="/next", method=GET) public java.lang.String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)- Returns:
- checkoutstep link for navigating next
-
getBreadcrumbKey
protected java.lang.String getBreadcrumbKey()
-
getCheckoutStep
protected CheckoutStep getCheckoutStep()
-
populateCommonModelAttributes
protected void populateCommonModelAttributes(org.springframework.ui.Model model, CartData cartData, AddressForm addressForm) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
-