Class UserApiController
java.lang.Object
com.bluebell.greenhouse.planter.controllers.security.UserApiController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> deleteUserByAdministrator(String username) Deletes an existing emptyUser.Returns aResponseEntitycontaining all of theLanguages.org.springframework.http.ResponseEntity<List<TransactionDTO>> getRecentTransactions(int count, PortfolioRequestContext context) Returns aResponseEntitycontaining all of theZoneId.org.springframework.http.ResponseEntity<UserDTO> Returns aResponseEntitycontaining aUserwith the given username.org.springframework.http.ResponseEntity<PaginatedUserDTO> getUsersPaged(UserSearchRequest searchRequest) Returns aResponseEntitycontaining theUsers filtered.org.springframework.http.ResponseEntity<UserDTO> postCreateUser(@Valid CreateUpdateUserDTO data) Creates a newUser.org.springframework.http.ResponseEntity<UserDTO> postRotateApiKeyByAdministrator(@Valid RotateApiTokenDTO data) Rotates an existingUser's api token.org.springframework.http.ResponseEntity<UserDTO> putUpdateUser(@Valid CreateUpdateUserDTO data, AuthenticatedUserRef userRef) Updates an existingUser.org.springframework.http.ResponseEntity<UserDTO> putUpdateUserAccessByAdministrator(@Valid UpdateUserAccessDTO data) Updates an existingUser's access information.org.springframework.http.ResponseEntity<UserDTO> putUpdateUserByAdministrator(@Valid CreateUpdateUserDTO data) Updates an existingUsernot assigned to the current session.
-
Constructor Details
-
UserApiController
public UserApiController()
-
-
Method Details
-
getUser
-
getTimeZones
-
getLanguages
-
getRecentTransactions
@GetMapping("/recent-transactions") public org.springframework.http.ResponseEntity<List<TransactionDTO>> getRecentTransactions(@RequestParam(value="count",defaultValue="10",required=false) int count, @ResolvedPortfolio PortfolioRequestContext context) - Parameters:
count- limitcontext-PortfolioRequestContext- Returns:
ResponseEntity
-
getUsersPaged
@GetMapping("/search-users") public org.springframework.http.ResponseEntity<PaginatedUserDTO> getUsersPaged(@ModelAttribute UserSearchRequest searchRequest) Returns aResponseEntitycontaining theUsers filtered.- Parameters:
searchRequest-UserSearchRequest- Returns:
ResponseEntity
-
postCreateUser
@PostMapping("/create") public org.springframework.http.ResponseEntity<UserDTO> postCreateUser(@Valid @RequestBody @Valid CreateUpdateUserDTO data) Creates a newUser.- Parameters:
data-CreateUpdateUserDTO- Returns:
ResponseEntity
-
putUpdateUser
@PutMapping("/update") public org.springframework.http.ResponseEntity<UserDTO> putUpdateUser(@Valid @RequestBody @Valid CreateUpdateUserDTO data, @AuthenticatedUser AuthenticatedUserRef userRef) Updates an existingUser.- Parameters:
data-CreateUpdateUserDTOuserRef-AuthenticatedUserRef- Returns:
ResponseEntity
-
putUpdateUserByAdministrator
@PutMapping("/update-by-administrator") public org.springframework.http.ResponseEntity<UserDTO> putUpdateUserByAdministrator(@Valid @RequestBody @Valid CreateUpdateUserDTO data) Updates an existingUsernot assigned to the current session.- Parameters:
data-CreateUpdateUserDTO- Returns:
ResponseEntity
-
putUpdateUserAccessByAdministrator
@PutMapping("/update-access-by-administrator") public org.springframework.http.ResponseEntity<UserDTO> putUpdateUserAccessByAdministrator(@Valid @RequestBody @Valid UpdateUserAccessDTO data) Updates an existingUser's access information.- Parameters:
data-UpdateUserAccessDTO- Returns:
ResponseEntity
-
postRotateApiKeyByAdministrator
@PostMapping("/rotate-api-key-by-administrator") public org.springframework.http.ResponseEntity<UserDTO> postRotateApiKeyByAdministrator(@Valid @RequestBody @Valid RotateApiTokenDTO data) Rotates an existingUser's api token.- Parameters:
data-RotateApiTokenDTO- Returns:
ResponseEntity
-
deleteUserByAdministrator
-