Class AdminUserMutationController
java.lang.Object
org.tavall.couriers.web.view.controller.dsahboard.admin.AdminUserMutationController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete(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)
-
Constructor Details
-
AdminUserMutationController
-
-
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)
-