Class PaymentTypeCheckoutStepController
- 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.b2bacceleratoraddon.controllers.pages.checkout.steps.PaymentTypeCheckoutStepController
-
- All Implemented Interfaces:
CheckoutStepController
@Controller @RequestMapping("/checkout/multi/payment-type") public class PaymentTypeCheckoutStepController 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 PaymentTypeCheckoutStepController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringback(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)protected voidcheckAndSelectDeliveryAddress(PaymentTypeForm paymentTypeForm)java.lang.Stringchoose(PaymentTypeForm paymentTypeForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model)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.java.util.Collection<B2BPaymentTypeData>getAllB2BPaymentTypes()protected CheckoutStepgetCheckoutStep()java.util.List<? extends B2BCostCenterData>getVisibleActiveCostCenters()java.lang.Stringnext(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)protected PaymentTypeFormpreparePaymentTypeForm(CartData cartData)protected voidupdateCheckoutCart(PaymentTypeForm paymentTypeForm)-
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
-
getAllB2BPaymentTypes
@ModelAttribute("paymentTypes") public java.util.Collection<B2BPaymentTypeData> getAllB2BPaymentTypes()
-
getVisibleActiveCostCenters
@ModelAttribute("costCenters") public java.util.List<? extends B2BCostCenterData> getVisibleActiveCostCenters()
-
enterStep
@RequestMapping(value="/choose", method=GET) public java.lang.String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException, CommerceCartModificationExceptionDescription copied from interface:CheckoutStepControllerSwapping the parameter order might break the validation aspect from working.- Returns:
- returns the result for entering the checkout step
- Throws:
CMSItemNotFoundExceptionCommerceCartModificationException
-
choose
@RequestMapping(value="/choose", method=POST) public java.lang.String choose(@ModelAttribute PaymentTypeForm paymentTypeForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) throws CMSItemNotFoundException, CommerceCartModificationException
-
updateCheckoutCart
protected void updateCheckoutCart(PaymentTypeForm paymentTypeForm)
-
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
-
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
-
preparePaymentTypeForm
protected PaymentTypeForm preparePaymentTypeForm(CartData cartData)
-
checkAndSelectDeliveryAddress
protected void checkAndSelectDeliveryAddress(PaymentTypeForm paymentTypeForm)
-
getCheckoutStep
protected CheckoutStep getCheckoutStep()
-
-