Class PermissionManagementPageController


@Controller @RequestMapping("/my-company/organization-management/manage-permissions") public class PermissionManagementPageController extends MyCompanyPageController
Controller defines routes to manage Permissions and B2B User groups within My Company section.
  • Constructor Details

    • PermissionManagementPageController

      public PermissionManagementPageController()
  • Method Details

    • managePermissions

      @RequestMapping(method=GET) public String managePermissions(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="code") String sortCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • viewPermissionDetails

      @RequestMapping(value="/view", method=GET) public String viewPermissionDetails(@RequestParam("permissionCode") String permissionCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editPermission

      @RequestMapping(value="/edit", method=GET) public String editPermission(@RequestParam("permissionCode") String permissionCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Overrides:
      editPermission in class MyCompanyPageController
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editPermission

      @RequestMapping(value="/edit", method=POST) public String editPermission(@Valid @Valid B2BPermissionForm b2BPermissionForm, 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, ParseException
      Overrides:
      editPermission in class MyCompanyPageController
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
    • getSelectPermissionTypePage

      @RequestMapping(value="/add", method=GET) public String getSelectPermissionTypePage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addNewPermissionForm

      @RequestMapping(value="/getNewPermissionForm", method=GET) public String addNewPermissionForm(@RequestParam("permissionType") String permissionType, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addNewPermission

      @RequestMapping(value="/add", method=POST) public String addNewPermission(@Valid @Valid B2BPermissionTypeSelectionForm b2BPermissionTypeSelectionForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getAddPermissionPage

      @RequestMapping(value="/addPermission", method=GET) public String getAddPermissionPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getAddErrorPermissionPage

      @RequestMapping(value="/addPermissionResponsive", method=GET) public String getAddErrorPermissionPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • saveNewPermissionDetails

      @RequestMapping(value="/add/save", method=POST) public String saveNewPermissionDetails(@Valid @Valid B2BPermissionForm b2BPermissionForm, 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, ParseException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
    • enablePermission

      @RequestMapping(value="/enable", method=GET) public String enablePermission(@RequestParam("permissionCode") String permissionCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • confirmDisablePermission

      @RequestMapping(value="/disable", method=GET) public String confirmDisablePermission(@RequestParam("permissionCode") String permissionCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • disablePermission

      @RequestMapping(value="/disable", method=POST) public String disablePermission(@RequestParam("permissionCode") String permissionCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException