Class UserOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.security.UserOrchestrator
- All Implemented Interfaces:
GenericOrchestrator
Owns the unit of work for the
User endpoints.- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates aUser.voiddeleteUserByAdministrator(String username) Deletes theUsermatching the given username.getRecentTransactions(PortfolioRequestContext context, int count) Obtains the most recentTransactions across an owned portfolio's active accounts.Obtains theUsermatching the given username.getUsersPaged(UserSearchRequest searchRequest) Obtains a page ofUsers matching the given search request.Rotates the API token of theUsernamed in the payload.updateUser(AuthenticatedUserRef userRef, CreateUpdateUserDTO data) Updates the authenticatedUser.Updates the access of theUsernamed in the payload.Updates theUsernamed in the payload.
-
Constructor Details
-
UserOrchestrator
public UserOrchestrator()
-
-
Method Details
-
getUser
-
getRecentTransactions
@Transactional(readOnly=true) public List<TransactionDTO> getRecentTransactions(PortfolioRequestContext context, int count) Obtains the most recentTransactions across an owned portfolio's active accounts.- Parameters:
context-PortfolioRequestContextcount- maximum transactions to return- Returns:
TransactionDTOs
-
getUsersPaged
@Transactional(readOnly=true) public PaginatedUserDTO getUsersPaged(UserSearchRequest searchRequest) Obtains a page ofUsers matching the given search request.- Parameters:
searchRequest- paged user search request- Returns:
PaginatedUserDTO
-
createUser
Creates aUser.- Parameters:
data-CreateUpdateUserDTO- Returns:
UserDTO
-
updateUser
Updates the authenticatedUser.- Parameters:
userRef-AuthenticatedUserRefdata-CreateUpdateUserDTO- Returns:
UserDTO
-
updateUserByAdministrator
Updates theUsernamed in the payload.- Parameters:
data-CreateUpdateUserDTO- Returns:
UserDTO
-
updateUserAccessByAdministrator
Updates the access of theUsernamed in the payload.- Parameters:
data-UpdateUserAccessDTO- Returns:
UserDTO
-
rotateApiKeyByAdministrator
Rotates the API token of theUsernamed in the payload.- Parameters:
data-RotateApiTokenDTO- Returns:
UserDTO
-
deleteUserByAdministrator
-