Class BusinessUnitUserManagementPageController


@Controller @RequestMapping("/my-company/organization-management/manage-units") public class BusinessUnitUserManagementPageController extends MyCompanyPageController
Controller defines routes to manage Business Units within My Company section.
  • Constructor Details

    • BusinessUnitUserManagementPageController

      public BusinessUnitUserManagementPageController()
  • Method Details

    • createCustomerOfUnit

      @RequestMapping(value="/createuser", method=GET) public String createCustomerOfUnit(@RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • createCustomerOfUnit

      @RequestMapping(value="/createuser", method=POST) public String createCustomerOfUnit(@RequestParam("unit") String unit, @RequestParam("role") String role, @Valid @Valid B2BCustomerForm b2bCustomerForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • viewCustomerOfUnit

      @RequestMapping(value="/viewuser", method=GET) public String viewCustomerOfUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getPagedApproversForUnit

      @RequestMapping(value="/approvers", method=GET) public String getPagedApproversForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getPagedCustomersForUnit

      @RequestMapping(value="/customers", method=GET) public String getPagedCustomersForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getPagedAdministratorsForUnit

      @RequestMapping(value="/administrators", method=GET) public String getPagedAdministratorsForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getPagedManagersForUnit

      @RequestMapping(value="/managers", method=GET) public String getPagedManagersForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • selectApprover

      @ResponseBody @RequestMapping(value="/approvers/select", method={GET,POST}) public B2BSelectionData selectApprover(@RequestParam("unit") String unit, @RequestParam("user") String user) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • deselectApprover

      @ResponseBody @RequestMapping(value="/approvers/deselect", method={GET,POST}) public B2BSelectionData deselectApprover(@RequestParam("unit") String unit, @RequestParam("user") String user) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • removeApproverFromUnit

      @RequestMapping(value="/approvers/remove", method={GET,POST}) public String removeApproverFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • confirmRemoveApproverFromUnit

      @RequestMapping(value="/approvers/confirm/remove", method=GET) public String confirmRemoveApproverFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • removeMemberFromUnit

      @RequestMapping(value="/members/remove", method={GET,POST}) public String removeMemberFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, @RequestParam("role") String role, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • confirmRemoveMemberFromUnit

      @RequestMapping(value="/members/confirm/remove", method=GET) public String confirmRemoveMemberFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • selectCustomer

      @ResponseBody @RequestMapping(value="/members/select", method={GET,POST}) public B2BSelectionData selectCustomer(@RequestParam("user") String user, @RequestParam("role") String role) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • deselectCustomer

      @ResponseBody @RequestMapping(value="/members/deselect", method={GET,POST}) public B2BSelectionData deselectCustomer(@RequestParam("user") String user, @RequestParam("role") String role) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException