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.b2ctelcoaddon.controllers.pages.checkout.steps.AbstractCheckoutStepController
de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.DeliveryAddressCheckoutStepController
- All Implemented Interfaces:
CheckoutStepController
@Controller
@RequestMapping("/checkout/multi/delivery-address")
public class DeliveryAddressCheckoutStepController
extends AbstractCheckoutStepController
Delivery address page controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.AbstractCheckoutStepController
AbstractCheckoutStepController.CheckoutStepsNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
AbstractCheckoutController.SelectOptionNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.b2ctelcoaddon.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_SUMMARYFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
REDIRECT_URL_ORDER_CONFIRMATIONFields 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_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) protected voidadjustAddressVisibility(AddressForm addressForm, AddressData newAddress) back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) protected voidcleanupTempAddress(String selectedAddressCode) protected AddressDataconstructNewAddress(AddressForm addressForm) doSelectDeliveryAddress(String selectedAddressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) This method gets called when the "Use this Address" button is clicked.doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Select address from list.edit(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Save resource.editAddressForm(String editAddressCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Edit resource.enterStep(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 CheckoutStepprotected TmaOrderEntryFacadevoidinitBinder(org.springframework.web.bind.WebDataBinder binder) next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) removeAddress(String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model) Delete resource.protected voidsetAttributesForAddressReview(AddressForm addressForm, org.springframework.ui.Model model) protected voidstoreAddresses(AddressForm addressForm, org.springframework.ui.Model model) Methods inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.AbstractCheckoutStepController
addCheckoutStepsToModel, getAddressValidator, getAddressVerificationResultHandler, getCartFacade, getCheckoutFlowGroupMap, getCheckoutStep, getContentPageBreadcrumbBuilder, getCountries, getCountryDataMap, getCustomerLocationService, getPaymentDetailsValidator, getPaymentFacade, getProductFacade, getRequestParameterMap, getResourceBreadcrumbBuilder, getTitles, prepareDataForPage, setCheckoutStepLinksForModelMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
getAddressVerificationFacade, getCheckoutCustomerStrategy, getCheckoutFacade, getCheckoutFlowFacade, getDeliveryAddresses, getI18NFacade, isAddressIdChanged, isAddressOnList, redirectToOrderConfirmationPage, validateCartMethods 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, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Field Details
-
DELIVERY_ADDRESS
- See Also:
-
ATTR_CART_DATA
- See Also:
-
ATTR_COUNTRY
- See Also:
-
ATTR_REGIONS
- See Also:
-
ATTR_DELIVERY_ADDRESSES
- See Also:
-
ATTR_NO_ADDRESS
- See Also:
-
ATTR_ADDRESS_FORM
- See Also:
-
ATTR_SHOW_SAVE_TO_ADDRESS_BOOK
- See Also:
-
-
Constructor Details
-
DeliveryAddressCheckoutStepController
public DeliveryAddressCheckoutStepController()
-
-
Method Details
-
enterStep
@RequestMapping(value="/add", method=GET) public String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException Description copied from interface:CheckoutStepControllerSwapping the parameter order might break the validation aspect from working.- Returns:
- returns the result for entering the checkout step
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
add
@RequestMapping(value="/add", method=POST) public String add(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
adjustAddressVisibility
-
constructNewAddress
-
storeAddresses
-
editAddressForm
@RequestMapping(value="/edit", method=GET) public String editAddressForm(@RequestParam("editAddressCode") String editAddressCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException Edit resource.- Parameters:
editAddressCode-model-redirectAttributes-- Returns:
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
edit
@RequestMapping(value="/edit", method=POST) public String edit(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException Save resource.- Parameters:
addressForm-bindingResult-model-redirectModel-- Returns:
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
setAttributesForAddressReview
protected void setAttributesForAddressReview(AddressForm addressForm, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
removeAddress
@RequestMapping(value="/remove", method={GET,POST}) public String removeAddress(@RequestParam("addressCode") String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException Delete resource.- Parameters:
addressCode-redirectModel-model-- Returns:
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
doSelectSuggestedAddress
@RequestMapping(value="/select", method=POST) public String doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Select address from list.- Parameters:
addressForm-redirectModel-- Returns:
-
doSelectDeliveryAddress
@RequestMapping(value="/select", method=GET) public String doSelectDeliveryAddress(@RequestParam("selectedAddressCode") 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.
-
cleanupTempAddress
-
back
@RequestMapping(value="/back", method=GET) public String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) - Returns:
- checkoutstep link for navigating back
-
next
@RequestMapping(value="/next", method=GET) public String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) - Returns:
- checkoutstep link for navigating next
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder) -
getCheckoutStep
-
getTmaOrderEntryFacade
-