public interface MiddlewareUserManagementService
| Modifier and Type | Method and Description |
|---|---|
int |
countUsersByBranch(String branch)
Counts users by branch
|
UserTO |
create(UserTO user)
Creates a new user
|
UserTO |
findById(String id)
Finds a User by its identifier
|
UserTO |
findByUserLogin(String userLogin)
Finds user by login
|
List<UserTO> |
getUsersByBranchAndRoles(String branch,
List<UserRoleTO> roles)
Loads list of users by branch and role
|
List<UserTO> |
listUsers(int page,
int size)
Loads paginated user collection
|
UserTO |
updateAccountAccess(String userLogin,
List<AccountAccessTO> accounts)
Adds new account for a specific User
|
UserTO |
updateScaData(String userLogin,
List<ScaUserDataTO> scaDataList)
Update SCA methods by user login
|
UserTO create(UserTO user) throws UserAlreadyExistsMiddlewareException
user - User transfer objectUserAlreadyExistsMiddlewareException - is thrown if user already existsUserTO findById(String id) throws UserNotFoundMiddlewareException
id - User identifierUserNotFoundMiddlewareException - is thrown if user can`t be foundUserTO findByUserLogin(String userLogin) throws UserNotFoundMiddlewareException
userLogin - users loginUserNotFoundMiddlewareException - thrown exception if user is not foundUserTO updateScaData(String userLogin, List<ScaUserDataTO> scaDataList) throws UserNotFoundMiddlewareException
scaDataList - user methodsuserLogin - user loginUserNotFoundMiddlewareExceptionUserTO updateAccountAccess(String userLogin, List<AccountAccessTO> accounts) throws UserNotFoundMiddlewareException
userLogin - user loginaccounts - List of Accounts to be added for the user or throws UserNotFoundMiddlewareExceptionUserNotFoundMiddlewareException - is thrown if user can`t be foundList<UserTO> listUsers(int page, int size)
page - page numbersize - size of the pageList<UserTO> getUsersByBranchAndRoles(String branch, List<UserRoleTO> roles)
roles - user rolesint countUsersByBranch(String branch)
branch - branchCopyright © 2019. All rights reserved.