Class PrivilegeCollectionResource


  • @RestController
    public class PrivilegeCollectionResource
    extends Object
    Author:
    Joram Barrez
    • Field Detail

      • identityService

        @Autowired
        protected org.flowable.idm.api.IdmIdentityService identityService
    • Constructor Detail

      • PrivilegeCollectionResource

        public PrivilegeCollectionResource()
    • Method Detail

      • getUsers

        @GetMapping("/privileges/{privilegeId}/users")
        public List<UserResponse> getUsers​(@PathVariable
                                           String privilegeId)
      • deleteUserPrivilege

        @DeleteMapping("/privileges/{privilegeId}/users/{userId}")
        public void deleteUserPrivilege​(@PathVariable
                                        String privilegeId,
                                        @PathVariable
                                        String userId)
      • addUserPrivilege

        @PostMapping("privileges/{privilegeId}/users")
        public void addUserPrivilege​(@PathVariable
                                     String privilegeId,
                                     @RequestBody
                                     AddUserPrivilegeRequest request)
      • getGroups

        @GetMapping("/privileges/{privilegeId}/groups")
        public List<GroupResponse> getGroups​(@PathVariable
                                             String privilegeId)
      • deleteGroupPrivilege

        @DeleteMapping("/privileges/{privilegeId}/group/{groupId}")
        public void deleteGroupPrivilege​(@PathVariable
                                         String privilegeId,
                                         @PathVariable
                                         String groupId)
      • addGroupPrivilege

        @PostMapping("privileges/{privilegeId}/groups")
        public void addGroupPrivilege​(@PathVariable
                                      String privilegeId,
                                      @RequestBody
                                      AddGroupPrivilegeRequest request)
      • getPrivilegeById

        protected org.flowable.idm.api.Privilege getPrivilegeById​(String privilegeId)