Package de.dlr.proseo.usermgr.rest
Klasse GroupControllerDecorator
java.lang.Object
de.dlr.proseo.usermgr.rest.GroupControllerDecorator
- Alle implementierten Schnittstellen:
GroupController
@RestController
@RequestMapping(value="/proseo/user-mgr/{version}/groups",
produces="application/json")
@Validated
public class GroupControllerDecorator
extends Object
implements GroupController
No description
(Generated with springmvc-raml-parser v.2.0.5)
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaddGroupMember
(Long id, String username) Add a member to the given user grouporg.springframework.http.ResponseEntity
<?> countGroups
(String missionCode) Count the user groups matching the specified missionorg.springframework.http.ResponseEntity
<RestGroup> createGroup
(@Valid RestGroup restGroup) Create a new user grouporg.springframework.http.ResponseEntity
<?> deleteGroupById
(Long id) Delete a user group by IDorg.springframework.http.ResponseEntity
<RestGroup> getGroupById
(Long id) Get a user group by IDgetGroupMembers
(Long id) Get all members of the given user groupGet user groups by mission and optionally by group nameorg.springframework.http.ResponseEntity
<RestGroup> modifyGroup
(Long id, RestGroup restGroup) Update a user group by IDorg.springframework.http.ResponseEntity
<?> removeGroupMember
(Long id, String username) Delete a member from the given user group
-
Konstruktordetails
-
GroupControllerDecorator
public GroupControllerDecorator()
-
-
Methodendetails
-
getGroups
@RequestMapping(value="", method=GET) public org.springframework.http.ResponseEntity<List<RestGroup>> getGroups(@RequestParam String mission, @RequestParam(required=false) String groupName, @RequestParam(required=false) Integer recordFrom, @RequestParam(required=false) Integer recordTo) Get user groups by mission and optionally by group name- Angegeben von:
getGroups
in SchnittstelleGroupController
-
createGroup
@RequestMapping(value="", method=POST) public org.springframework.http.ResponseEntity<RestGroup> createGroup(@Valid @RequestBody @Valid RestGroup restGroup) Create a new user group- Angegeben von:
createGroup
in SchnittstelleGroupController
-
countGroups
@RequestMapping(value="/count", method=GET) public org.springframework.http.ResponseEntity<?> countGroups(@RequestParam String missionCode) Count the user groups matching the specified mission- Angegeben von:
countGroups
in SchnittstelleGroupController
-
getGroupById
@RequestMapping(value="/{id}", method=GET) public org.springframework.http.ResponseEntity<RestGroup> getGroupById(@PathVariable Long id) Get a user group by ID- Angegeben von:
getGroupById
in SchnittstelleGroupController
-
deleteGroupById
@RequestMapping(value="/{id}", method=DELETE) public org.springframework.http.ResponseEntity<?> deleteGroupById(@PathVariable Long id) Delete a user group by ID- Angegeben von:
deleteGroupById
in SchnittstelleGroupController
-
modifyGroup
@RequestMapping(value="/{id}", method=PATCH) public org.springframework.http.ResponseEntity<RestGroup> modifyGroup(@PathVariable Long id, @RequestBody RestGroup restGroup) Update a user group by ID- Angegeben von:
modifyGroup
in SchnittstelleGroupController
-
getGroupMembers
@RequestMapping(value="/{id}/members", method=GET) public org.springframework.http.ResponseEntity<List<RestUser>> getGroupMembers(@PathVariable Long id) Get all members of the given user group- Angegeben von:
getGroupMembers
in SchnittstelleGroupController
-
addGroupMember
@RequestMapping(value="/{id}/members", method=POST) public org.springframework.http.ResponseEntity<List<RestUser>> addGroupMember(@PathVariable Long id, @RequestParam String username) Add a member to the given user group- Angegeben von:
addGroupMember
in SchnittstelleGroupController
-
removeGroupMember
@RequestMapping(value="/{id}/members", method=DELETE) public org.springframework.http.ResponseEntity<?> removeGroupMember(@PathVariable Long id, @RequestParam String username) Delete a member from the given user group- Angegeben von:
removeGroupMember
in SchnittstelleGroupController
-