Class PrivilegeCollectionResource
java.lang.Object
org.flowable.idm.rest.service.api.privilege.PrivilegeCollectionResource
- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.flowable.idm.api.IdmIdentityServiceprotected IdmRestResponseFactoryprotected IdmRestApiInterceptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupPrivilege(String privilegeId, AddGroupPrivilegeRequest request) voidaddUserPrivilege(String privilegeId, AddUserPrivilegeRequest request) voiddeleteGroupPrivilege(String privilegeId, String groupId) voiddeleteUserPrivilege(String privilegeId, String userId) protected org.flowable.idm.api.PrivilegegetPrivilegeById(String privilegeId) getPrivileges(Map<String, String> allRequestParams)
-
Field Details
-
identityService
@Autowired protected org.flowable.idm.api.IdmIdentityService identityService -
idmRestResponseFactory
-
restApiInterceptor
-
-
Constructor Details
-
PrivilegeCollectionResource
public PrivilegeCollectionResource()
-
-
Method Details
-
getPrivileges
@GetMapping("/privileges") public DataResponse<PrivilegeResponse> getPrivileges(@RequestParam Map<String, String> allRequestParams) -
getUsers
@GetMapping("/privileges/{privilegeId}/users") public List<UserResponse> getUsers(@PathVariable String privilegeId) -
deleteUserPrivilege
-
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
-
addGroupPrivilege
@PostMapping("privileges/{privilegeId}/groups") public void addGroupPrivilege(@PathVariable String privilegeId, @RequestBody AddGroupPrivilegeRequest request) -
getPrivilegeById
-