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 AbstractPageController
Process 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
FieldsModifier and TypeFieldDescriptionprotected B2BUnitFacadeprotected CheckoutFacadeprotected static final Stringprotected static final Stringprotected static final StringFields 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 TypeMethodDescriptionaddAddress(String unit, ChineseUnitAddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editAddress(String unit, String addressId, ChineseUnitAddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editAddress(String unit, String addressId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) getAddressData(String unit, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) getCountryAddressForm(String addressCode, String unit, String countryIsoCode, org.springframework.ui.Model model) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) protected StringprepareModelAndViewAfterError(org.springframework.ui.Model model, ChineseUnitAddressForm addressForm, String unit, 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, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Field Details
-
MANAGE_UNITS_CMS_PAGE
- See Also:
-
MANAGE_UNIT_DETAILS_URL
- See Also:
-
REDIRECT_TO_UNIT_DETAILS
- See Also:
-
checkoutFacade
-
b2bUnitFacade
-
chinesecommerceorgaddressaddonCompanyBreadcrumbBuilder
protected ChinesecommerceorgaddressaddonCompanyBreadcrumbBuilder chinesecommerceorgaddressaddonCompanyBreadcrumbBuilder
-
-
Constructor Details
-
ChineseBusinessUnitManagementPageController
public ChineseBusinessUnitManagementPageController()
-
-
Method Details
-
getI18NFacade
- Returns:
- the i18NFacade
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder) -
getCountryAddressForm
@RequestMapping(value="/addressform", method=GET) public String getCountryAddressForm(@RequestParam(value="addressCode",required=false) String addressCode, @RequestParam(value="unit",required=false) String unit, @RequestParam("countryIsoCode") String countryIsoCode, org.springframework.ui.Model model) -
addAddress
@RequestMapping(value="/add-address", method=POST, params="countryIso=CN") public String addAddress(@RequestParam("unit") 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 String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") 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 String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") 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 String getAddressData(@RequestParam("unit") String unit, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
prepareModelAndViewAfterError
protected String prepareModelAndViewAfterError(org.springframework.ui.Model model, ChineseUnitAddressForm addressForm, String unit, String addressId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-