Example #1
0
 @RequestMapping(value = MappingConstants.USER_ROLE, method = RequestMethod.POST)
 @PreAuthorize("hasRole('" + PermissionConstants.ADMIN_CREATE_ROLE + "')")
 public @ResponseBody void assignRole(@PathVariable long userId, @PathVariable long roleId) {
   userService.assignRole(userId, roleId);
 }