Package org.molgenis.api.identities
Class IdentitiesApiController
- java.lang.Object
-
- org.molgenis.api.identities.IdentitiesApiController
-
@RestController @Validated public class IdentitiesApiController extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntityaddMember(String groupName, AddGroupMemberCommand addMemberCommand)org.springframework.http.ResponseEntitycreateGroup(GroupCommand group)org.springframework.http.ResponseEntitydeleteGroup(String groupName)Collection<RoleResponse>getGroupRoles(String groupName)List<GroupResponse>getGroups()Collection<GroupMemberResponse>getMembers(String groupName)Collection<org.molgenis.security.core.Permission>getPermissions(String groupName)Collection<UserResponse>getUsers()org.springframework.http.ResponseEntityremoveExtends(String groupName, String includingRoleName)org.springframework.http.ResponseEntityremoveMember(String groupName, String memberName)voidupdateExtends(String groupName, String roleName, UpdateIncludeCommand updateExtendsCommand)voidupdateMember(String groupName, String memberName, UpdateGroupMemberCommand groupMember)
-
-
-
Field Detail
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
createGroup
@PostMapping("/api/identities/group") @Transactional public org.springframework.http.ResponseEntity createGroup(@RequestBody GroupCommand group)
-
deleteGroup
@DeleteMapping("/api/identities/group/{groupName}") @Transactional public org.springframework.http.ResponseEntity deleteGroup(@PathVariable("groupName") String groupName)
-
getGroups
@GetMapping("/api/identities/group") @ResponseBody public List<GroupResponse> getGroups()
-
getMembers
@GetMapping("/api/identities/group/{groupName}/member") @ResponseBody public Collection<GroupMemberResponse> getMembers(@PathVariable("groupName") String groupName)
-
addMember
@PostMapping("/api/identities/group/{groupName}/member") @Transactional public org.springframework.http.ResponseEntity addMember(@PathVariable("groupName") String groupName, @RequestBody AddGroupMemberCommand addMemberCommand)
-
removeMember
@DeleteMapping("/api/identities/group/{groupName}/member/{memberName}") @Transactional public org.springframework.http.ResponseEntity removeMember(@PathVariable("groupName") String groupName, @PathVariable("memberName") String memberName)
-
updateMember
@PutMapping("/api/identities/group/{groupName}/member/{memberName}") @Transactional @ResponseStatus(OK) public void updateMember(@PathVariable("groupName") String groupName, @PathVariable("memberName") String memberName, @RequestBody UpdateGroupMemberCommand groupMember)
-
updateExtends
@PutMapping("/api/identities/group/{groupName}/role/{roleName}") @Transactional @ResponseStatus(NO_CONTENT) public void updateExtends(@PathVariable("groupName") String groupName, @PathVariable("roleName") String roleName, @RequestBody UpdateIncludeCommand updateExtendsCommand)
-
removeExtends
@DeleteMapping("/api/identities/group/{groupName}/role/{roleName}") @Transactional public org.springframework.http.ResponseEntity removeExtends(@PathVariable("groupName") String groupName, @PathVariable("roleName") String includingRoleName)
-
getGroupRoles
@GetMapping("/api/identities/group/{groupName}/role") @ResponseBody public Collection<RoleResponse> getGroupRoles(@PathVariable("groupName") String groupName)
-
getUsers
@GetMapping("/api/identities/user") @ResponseBody @PreAuthorize("hasAnyRole(\'SU\', \'MANAGER\')") public Collection<UserResponse> getUsers()
-
getPermissions
@GetMapping("/api/identities/group/{groupName}/permission") @ResponseBody public Collection<org.molgenis.security.core.Permission> getPermissions(@PathVariable("groupName") String groupName)
-
-