Class AdminUserMutationController

java.lang.Object
org.tavall.couriers.web.view.controller.dsahboard.admin.AdminUserMutationController

@Controller public class AdminUserMutationController extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    delete(String userId, String redirect, org.springframework.security.core.Authentication authentication, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
     
    demote(String userId, String redirect, org.springframework.security.core.Authentication authentication, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
     
    promote(String userId, String redirect, org.springframework.security.core.Authentication authentication, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AdminUserMutationController

      public AdminUserMutationController(UserAccountService userAccountService)
  • Method Details

    • promote

      @PostMapping("/internal/api/v1/users/promote") @PreAuthorize("hasAuthority('PERM_USER_PROMOTE_TO_DRIVER')") public String promote(@RequestParam("userId") String userId, @RequestParam(value="redirect",required=false) String redirect, org.springframework.security.core.Authentication authentication, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
    • demote

      @PostMapping("/internal/api/v1/users/demote") @PreAuthorize("hasAuthority('PERM_USER_DEMOTE_FROM_DRIVER')") public String demote(@RequestParam("userId") String userId, @RequestParam(value="redirect",required=false) String redirect, org.springframework.security.core.Authentication authentication, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
    • delete

      @PostMapping("/internal/api/v1/users/delete") @PreAuthorize("hasAuthority('PERM_ADMIN_DELETE_USERS')") public String delete(@RequestParam("userId") String userId, @RequestParam(value="redirect",required=false) String redirect, org.springframework.security.core.Authentication authentication, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)