Package com.denimgroup.threadfix.data.entities

Examples of com.denimgroup.threadfix.data.entities.User


      user.setIsThisUser(currentUser != null && currentUser.equals(user.getName()));
    }
    model.addAttribute("ldap_plugin", EnterpriseTest.isEnterprise());
    model.addAttribute("users", users);
   
    model.addAttribute("user", new User());
    model.addAttribute("accessControlMapModel", new AccessControlMapModel());
    model.addAttribute("successMessage", ControllerUtils.getSuccessMessage(request));
    model.addAttribute("errorMessage", ControllerUtils.getErrorMessage(request));
   
    return "config/users/index";
View Full Code Here


    }

  @RequestMapping("/{userId}/delete")
  public String deleteUser(@PathVariable("userId") int userId,
      HttpServletRequest request, SessionStatus status) {
    User user = userService.loadUser(userId);
   
    if (user != null) {
      String userName = user.getName();
     
      if (userService.canDelete(user)) {
       
        status.setComplete();
       
        String currentUser = SecurityContextHolder.getContext().getAuthentication().getName();
       
        boolean isThisUser = currentUser != null && currentUser.equals(user.getName());
       
        userService.delete(user);
       
        if (isThisUser) {
          return "redirect:/j_spring_security_logout";
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.entities.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.