@RestController @Validated public class GroupRestController extends Object
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
addMember(String groupName,
AddGroupMemberCommand addMemberCommand) |
org.springframework.http.ResponseEntity |
createGroup(GroupCommand group) |
org.springframework.http.ResponseEntity |
deleteGroup(String groupName) |
Collection<RoleResponse> |
getGroupRoles(String groupName) |
List<GroupResponse> |
getGroups() |
Collection<GroupMemberResponse> |
getMembers(String groupName) |
Collection<Permission> |
getPermissions(String groupName) |
Collection<UserResponse> |
getUsers() |
org.springframework.http.ResponseEntity |
removeMember(String groupName,
String memberName) |
void |
updateMember(String groupName,
String memberName,
UpdateGroupMemberCommand groupMember) |
public static final String USER
@PostMapping(value="/api/plugin/security/group")
@Transactional
public org.springframework.http.ResponseEntity createGroup(@RequestBody
GroupCommand group)
@DeleteMapping(value="/api/plugin/security/group/{groupName}")
@Transactional
public org.springframework.http.ResponseEntity deleteGroup(@PathVariable(value="groupName")
String groupName)
@GetMapping(value="/api/plugin/security/group") @ResponseBody public List<GroupResponse> getGroups()
@GetMapping(value="/api/plugin/security/group/{groupName}/member")
@ResponseBody
public Collection<GroupMemberResponse> getMembers(@PathVariable(value="groupName")
String groupName)
@PostMapping(value="/api/plugin/security/group/{groupName}/member")
@Transactional
public org.springframework.http.ResponseEntity addMember(@PathVariable(value="groupName")
String groupName,
@RequestBody
AddGroupMemberCommand addMemberCommand)
@DeleteMapping(value="/api/plugin/security/group/{groupName}/member/{memberName}")
@Transactional
public org.springframework.http.ResponseEntity removeMember(@PathVariable(value="groupName")
String groupName,
@PathVariable(value="memberName")
String memberName)
@PutMapping(value="/api/plugin/security/group/{groupName}/member/{memberName}")
@Transactional
@ResponseStatus(value=OK)
public void updateMember(@PathVariable(value="groupName")
String groupName,
@PathVariable(value="memberName")
String memberName,
@RequestBody
UpdateGroupMemberCommand groupMember)
@GetMapping(value="/api/plugin/security/group/{groupName}/role")
@ResponseBody
public Collection<RoleResponse> getGroupRoles(@PathVariable(value="groupName")
String groupName)
@GetMapping(value="/api/plugin/security/user") @ResponseBody @PreAuthorize(value="hasAnyRole(\'SU\', \'MANAGER\')") public Collection<UserResponse> getUsers()
@GetMapping(value="/api/plugin/security/group/{groupName}/permission")
@ResponseBody
public Collection<Permission> getPermissions(@PathVariable(value="groupName")
String groupName)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.