Class ChineseBusinessUnitManagementPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.chinesecommerceorgaddressaddon.controllers.pages.ChineseBusinessUnitManagementPageController
-
@Controller @Scope("tenant") @RequestMapping("/my-company/organization-management/manage-units") public class ChineseBusinessUnitManagementPageController extends AbstractPageControllerProcess the request for adding and editing Chinese address for units
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
Fields Modifier and Type Field Description protected B2BUnitFacadeb2bUnitFacadeprotected CheckoutFacadecheckoutFacadeprotected ChinesecommerceorgaddressaddonCompanyBreadcrumbBuilderchinesecommerceorgaddressaddonCompanyBreadcrumbBuilderprotected static java.lang.StringMANAGE_UNIT_DETAILS_URLprotected static java.lang.StringMANAGE_UNITS_CMS_PAGEprotected static java.lang.StringREDIRECT_TO_UNIT_DETAILS-
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 ChineseBusinessUnitManagementPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddAddress(java.lang.String unit, ChineseUnitAddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringeditAddress(java.lang.String unit, java.lang.String addressId, ChineseUnitAddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringeditAddress(java.lang.String unit, java.lang.String addressId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringgetAddressData(java.lang.String unit, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringgetCountryAddressForm(java.lang.String addressCode, java.lang.String unit, java.lang.String countryIsoCode, org.springframework.ui.Model model)I18NFacadegetI18NFacade()voidinitBinder(org.springframework.web.bind.WebDataBinder binder)protected java.lang.StringprepareModelAndViewAfterError(org.springframework.ui.Model model, ChineseUnitAddressForm addressForm, java.lang.String unit, java.lang.String addressId)-
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
-
-
-
-
Field Detail
-
MANAGE_UNITS_CMS_PAGE
protected static final java.lang.String MANAGE_UNITS_CMS_PAGE
- See Also:
- Constant Field Values
-
MANAGE_UNIT_DETAILS_URL
protected static final java.lang.String MANAGE_UNIT_DETAILS_URL
- See Also:
- Constant Field Values
-
REDIRECT_TO_UNIT_DETAILS
protected static final java.lang.String REDIRECT_TO_UNIT_DETAILS
- See Also:
- Constant Field Values
-
checkoutFacade
protected CheckoutFacade checkoutFacade
-
b2bUnitFacade
protected B2BUnitFacade b2bUnitFacade
-
chinesecommerceorgaddressaddonCompanyBreadcrumbBuilder
protected ChinesecommerceorgaddressaddonCompanyBreadcrumbBuilder chinesecommerceorgaddressaddonCompanyBreadcrumbBuilder
-
-
Method Detail
-
getI18NFacade
public I18NFacade getI18NFacade()
- Returns:
- the i18NFacade
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-
getCountryAddressForm
@RequestMapping(value="/addressform", method=GET) public java.lang.String getCountryAddressForm(@RequestParam(value="addressCode",required=false) java.lang.String addressCode, @RequestParam(value="unit",required=false) java.lang.String unit, @RequestParam("countryIsoCode") java.lang.String countryIsoCode, org.springframework.ui.Model model)
-
addAddress
@RequestMapping(value="/add-address", method=POST, params="countryIso=CN") public java.lang.String addAddress(@RequestParam("unit") java.lang.String unit, @ModelAttribute("addressForm") ChineseUnitAddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
editAddress
@RequestMapping(value="/edit-address", method=POST, params="countryIso=CN") public java.lang.String editAddress(@RequestParam("unit") java.lang.String unit, @RequestParam("addressId") java.lang.String addressId, @ModelAttribute("addressForm") ChineseUnitAddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
editAddress
@RequestMapping(value="/edit-address", method=GET, params="countryIso=CN") public java.lang.String editAddress(@RequestParam("unit") java.lang.String unit, @RequestParam("addressId") java.lang.String addressId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getAddressData
@RequestMapping(value="/formataddress", method=GET) public java.lang.String getAddressData(@RequestParam("unit") java.lang.String unit, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
prepareModelAndViewAfterError
protected java.lang.String prepareModelAndViewAfterError(org.springframework.ui.Model model, ChineseUnitAddressForm addressForm, java.lang.String unit, java.lang.String addressId) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
-