Package overit.geocall.base.rs2.user
Class UserService
java.lang.Object
overit.geocall.base.rs2.user.UserService
@RestController("user-service-r2")
@RequestMapping("/configurations/identity/r2/users")
@Validated
public class UserService
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> anonymizeUser(long id) changeMyPassword(@Valid PasswordChange change) changePassword(long userId, @Valid PasswordChange change) org.springframework.http.ResponseEntity<overit.geocall.rs.common.ResourceId<Long>> createUser(@Valid NewUser user) protected StringgetCompany(BOUser user) getMe(Collection<String> fields) getUser(long id, Collection<String> fields) getUsers(@NotNull @Valid Page page, String order, Collection<String> fields, Collection<Long> ids, @Valid UserFilter filter) org.springframework.http.ResponseEntity<Void> updateUser(long id, @Valid User user)
-
Constructor Details
-
UserService
-
-
Method Details
-
getUsers
@GetMapping(produces="application/json") public PageResponse<UserResponse> getUsers(@RequestParam("_page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam(value="_order",required=false,defaultValue="") String order, @RequestParam(value="_fields",required=false,defaultValue="") Collection<String> fields, @RequestParam(value="ids",required=false,defaultValue="") Collection<Long> ids, @Valid @Valid UserFilter filter) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
createUser
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<overit.geocall.rs.common.ResourceId<Long>> createUser(@Valid @RequestBody @Valid NewUser user) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getMe
@GetMapping(path="self", produces="application/json") public UserResponse getMe(@RequestParam(value="_fields",required=false,defaultValue="") Collection<String> fields) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getUser
@GetMapping(path="{userId}", produces="application/json") public UserResponse getUser(@PathVariable("userId") long id, @RequestParam(value="_fields",required=false,defaultValue="") Collection<String> fields) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateUser
@PatchMapping(path="{userId}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> updateUser(@PathVariable("userId") long id, @Valid @RequestBody @Valid User user) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
changePassword
@PatchMapping(path="{userId}/password", consumes="application/json") @Valid public @Valid org.springframework.http.ResponseEntity<Void> changePassword(@PathVariable("userId") long userId, @Valid @RequestBody @Valid PasswordChange change) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
changeMyPassword
@PatchMapping(path="self/password", consumes="application/json") @Valid public @Valid org.springframework.http.ResponseEntity<Void> changeMyPassword(@Valid @RequestBody @Valid PasswordChange change) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
anonymizeUser
@PostMapping(path="{userId}/anonymization", consumes="application/json") public org.springframework.http.ResponseEntity<Void> anonymizeUser(@PathVariable("userId") long id) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getCompany
- Throws:
DAValidateExceptionDAException
-