Class AdminUserManagementController


@Controller("blAdminUserManagementController") @RequestMapping("/user-management") public class AdminUserManagementController extends AdminBasicEntityController
Author:
by reginaldccole
  • Field Details

  • Constructor Details

    • AdminUserManagementController

      public AdminUserManagementController()
  • Method Details

    • getSectionKey

      protected String getSectionKey(Map<String,String> pathVars)
      Description copied from class: AdminAbstractController
      This method is used to determine the current section key. For this default implementation, the sectionKey is pulled from the pathVariable, {sectionKey}, as defined by the request mapping on this controller. To support controller inheritance and allow more specialized controllers to delegate some methods to this basic controller, overridden implementations of this method could return a hardcoded value instead of reading the map
      Overrides:
      getSectionKey in class AdminAbstractController
      Parameters:
      pathVars - - the map of all currently bound path variables for this request
      Returns:
      the sectionKey for this request
    • viewEntityForm

      @RequestMapping(value="/{id}", method=GET) public String viewEntityForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable("id") String id) throws Exception
      Description copied from class: AdminBasicEntityController
      Renders the main entity form for the specified entity
      Overrides:
      viewEntityForm in class AdminBasicEntityController
      Returns:
      the return view path
      Throws:
      Exception
    • saveEntity

      @RequestMapping(value="/{id}", method=POST) public String saveEntity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable("id") String id, @ModelAttribute("entityForm") EntityForm entityForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes ra) throws Exception
      Description copied from class: AdminBasicEntityController
      Attempts to save the given entity. If validation is unsuccessful, it will re-render the entity form with error fields highlighted. On a successful save, it will refresh the entity page.
      Overrides:
      saveEntity in class AdminBasicEntityController
      Returns:
      the return view path
      Throws:
      Exception
    • modifyEntityForm

      protected void modifyEntityForm(EntityForm ef, Map<String,String> pathVars)
      Description copied from class: AdminAbstractController
      This method is invoked whenever an assembled EntityForm is rendered. This typically occurs when viewing an entity in the admin or viewing an error state on a POST for that entity.
      Overrides:
      modifyEntityForm in class AdminAbstractController