Package de.dlr.proseo.usermgr.rest
Class UserControllerDecorator
java.lang.Object
de.dlr.proseo.usermgr.rest.UserControllerDecorator
- All Implemented Interfaces:
UserController
@RestController
@RequestMapping(value="/proseo/user-mgr/{version}/users",
produces="application/json")
@Validated
public class UserControllerDecorator
extends Object
implements UserController
No description
(Generated with springmvc-raml-parser v.2.0.5)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> countUsers(String missionCode) Count the users matching the specified mission.org.springframework.http.ResponseEntity<RestUser> createUser(@Valid RestUser restUser) Create a new userorg.springframework.http.ResponseEntity<?> deleteUserByName(String username) Delete a user by user nameorg.springframework.http.ResponseEntity<RestUser> getUserByName(String username) Get a user by nameGet users by mission (may be null, if root user sends request)org.springframework.http.ResponseEntity<RestUser> modifyUser(String username, RestUser restUser) Update a user by name
-
Constructor Details
-
UserControllerDecorator
public UserControllerDecorator()
-
-
Method Details
-
getUsers
@RequestMapping(value="", method=GET) public org.springframework.http.ResponseEntity<List<RestUser>> getUsers(@RequestParam(required=false) String mission, @RequestParam(required=false) Integer recordFrom, @RequestParam(required=false) Integer recordTo) Get users by mission (may be null, if root user sends request)- Specified by:
getUsersin interfaceUserController
-
createUser
@RequestMapping(value="", method=POST) public org.springframework.http.ResponseEntity<RestUser> createUser(@Valid @RequestBody @Valid RestUser restUser) Create a new user- Specified by:
createUserin interfaceUserController
-
countUsers
@RequestMapping(value="/count", method=GET) public org.springframework.http.ResponseEntity<?> countUsers(@RequestParam(required=false) String missionCode) Count the users matching the specified mission.- Specified by:
countUsersin interfaceUserController
-
getUserByName
@RequestMapping(value="/{username}", method=GET) public org.springframework.http.ResponseEntity<RestUser> getUserByName(@PathVariable String username) Get a user by name- Specified by:
getUserByNamein interfaceUserController
-
deleteUserByName
@RequestMapping(value="/{username}", method=DELETE) public org.springframework.http.ResponseEntity<?> deleteUserByName(@PathVariable String username) Delete a user by user name- Specified by:
deleteUserByNamein interfaceUserController
-
modifyUser
@RequestMapping(value="/{username}", method=PATCH) public org.springframework.http.ResponseEntity<RestUser> modifyUser(@PathVariable String username, @RequestBody RestUser restUser) Update a user by name- Specified by:
modifyUserin interfaceUserController
-