Interface MiddlewareUserManagementService
-
public interface MiddlewareUserManagementService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanchangeStatus(String userId, boolean systemBlock)booleancheckMultilevelScaRequired(String login, String iban)booleancheckMultilevelScaRequired(String login, List<AccountReferenceTO> references)intcountUsersByBranch(String branch)Counts users by branchUserTOcreate(UserTO user)Creates a new uservoideditBasicSelf(String userId, UserTO user)StringfindAccountOwner(String accountId)UserTOfindById(String id)Finds a User by its identifierUserTOfindByUserLogin(String userLogin)Finds user by loginList<AdditionalAccountInformationTO>getAdditionalInformation(ScaInfoTO scaInfoHolder, AccountIdentifierTypeTO accountIdentifierType, String accountIdentifier)List<String>getBranchUserLogins(String branch)Returns list of logins for users (role = CUSTOMER) within the given branch.CustomPageImpl<UserTO>getUsersByBranchAndRoles(String countryCode, String branchId, String branchLogin, String userLogin, List<UserRoleTO> roles, Boolean blocked, CustomPageableImpl pageable)Loads list of users by branch and roleCustomPageImpl<UserExtendedTO>getUsersByBranchAndRolesExtended(String countryCode, String branchId, String branchLogin, String userLogin, List<UserRoleTO> roles, Boolean blocked, CustomPageableImpl pageable)Loads list of users by branch and roleCustomPageImpl<UserTO>getUsersByRoles(List<UserRoleTO> roles, CustomPageableImpl pageable)List<UserTO>listUsers(int page, int size)Loads paginated user collectionvoidresetPasswordViaEmail(String login)voidupdateAccountAccess(ScaInfoTO scaInfo, String userId, AccountAccessTO access)Adds new account for a specific UservoidupdatePasswordById(String userId, String password)voidupdatePasswordByLogin(String login, String password)UserTOupdateScaData(String userLogin, List<ScaUserDataTO> scaDataList)Update SCA methods by user loginUserTOupdateUser(String branchId, UserTO user)
-
-
-
Method Detail
-
create
UserTO create(UserTO user)
Creates a new user- Parameters:
user- User transfer object- Returns:
- A persisted user
-
findById
UserTO findById(String id)
Finds a User by its identifier- Parameters:
id- User identifier- Returns:
- a User
-
findByUserLogin
UserTO findByUserLogin(String userLogin)
Finds user by login- Parameters:
userLogin- users login- Returns:
- UserTO object
-
updateScaData
UserTO updateScaData(String userLogin, List<ScaUserDataTO> scaDataList)
Update SCA methods by user login- Parameters:
scaDataList- user methodsuserLogin- user login
-
updateAccountAccess
void updateAccountAccess(ScaInfoTO scaInfo, String userId, AccountAccessTO access)
Adds new account for a specific User- Parameters:
scaInfo- container for TPP data from access tokenuserId- user idaccess- Access to an account
-
listUsers
List<UserTO> listUsers(int page, int size)
Loads paginated user collection- Parameters:
page- page numbersize- size of the page- Returns:
- list of users
-
getUsersByBranchAndRoles
CustomPageImpl<UserTO> getUsersByBranchAndRoles(String countryCode, String branchId, String branchLogin, String userLogin, List<UserRoleTO> roles, Boolean blocked, CustomPageableImpl pageable)
Loads list of users by branch and role- Parameters:
countryCode- Country Coderoles- user roles- Returns:
- list of users by branch and role
-
getBranchUserLogins
List<String> getBranchUserLogins(String branch)
Returns list of logins for users (role = CUSTOMER) within the given branch.- Parameters:
branch- branch ID.- Returns:
- list of logins.
-
getUsersByRoles
CustomPageImpl<UserTO> getUsersByRoles(List<UserRoleTO> roles, CustomPageableImpl pageable)
-
getUsersByBranchAndRolesExtended
CustomPageImpl<UserExtendedTO> getUsersByBranchAndRolesExtended(String countryCode, String branchId, String branchLogin, String userLogin, List<UserRoleTO> roles, Boolean blocked, CustomPageableImpl pageable)
Loads list of users by branch and role- Parameters:
countryCode- Country Coderoles- user roles- Returns:
- list of users by branch and role
-
countUsersByBranch
int countUsersByBranch(String branch)
Counts users by branch- Parameters:
branch- branch- Returns:
- amount of users
-
checkMultilevelScaRequired
boolean checkMultilevelScaRequired(String login, List<AccountReferenceTO> references)
-
getAdditionalInformation
List<AdditionalAccountInformationTO> getAdditionalInformation(ScaInfoTO scaInfoHolder, AccountIdentifierTypeTO accountIdentifierType, String accountIdentifier)
-
changeStatus
boolean changeStatus(String userId, boolean systemBlock)
-
resetPasswordViaEmail
void resetPasswordViaEmail(String login)
-
-