Interface UserService
-
public interface UserService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountUsersByBranch(String branch)Counts amount of users for a branchUserBOcreate(UserBO user)Creates a new userStringdecodeStaticTan(String staticTan)Map<String,String>findBranchIdsByMultipleParameters(String countryCode, String branchId, String branchLogin)UserBOfindById(String id)Finds a User by its identifierUserBOfindByLogin(String login)Finds a User by its loginUserBOfindByLoginOrEmail(String loginOrEmail)List<UserBO>findOwnersByAccountId(String accountId)Finds account owners by account idList<UserBO>findOwnersByIban(String iban)Finds account owners by IBANList<String>findUserLoginsByBranch(String branchId)Returns list of user logins for given branch.List<UserBO>findUsersByBranchAndCreatedAfter(String branchId, LocalDateTime created)Returns list of users for given branch, which were created after the given date and time.List<UserBO>findUsersByIban(String iban)Finds user by IBANorg.springframework.data.domain.Page<UserExtendedBO>findUsersByMultipleParamsPaged(String countryCode, String branchId, String branchLogin, String userLogin, List<UserRoleBO> roles, Boolean blocked, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<UserBO>getUsersByRoles(List<UserRoleBO> roles, org.springframework.data.domain.Pageable pageable)booleanisPresentBranchCode(String bban)List<UserBO>listUsers(int page, int size)AisConsentBOloadConsent(String consentId)Loads a consent given the consent id.voidsetBranchBlockedStatus(String userId, boolean isSystemBlock, boolean statusToSet)voidsetUserBlockedStatus(String userId, boolean isSystemBlock, boolean statusToSet)AisConsentBOstoreConsent(AisConsentBO consentBO)Stores a consent in the consent database and returns the original consent if already existing there.UserBOupdateAccountAccess(String userLogin, List<AccountAccessBO> accountAccessListBO)UserBOupdateScaData(List<ScaUserDataBO> scaDataList, String userLogin)Update SCA methods by user loginUserBOupdateUser(UserBO userBO)Updates user
-
-
-
Method Detail
-
create
UserBO create(UserBO user)
Creates a new user- Parameters:
user- User business object- Returns:
- A persisted user
-
findById
UserBO findById(String id)
Finds a User by its identifier- Parameters:
id- User identifier- Returns:
- a User
-
findByLogin
UserBO findByLogin(String login)
Finds a User by its login- Parameters:
login- User identifier- Returns:
- a User
-
updateScaData
UserBO updateScaData(List<ScaUserDataBO> scaDataList, String userLogin)
Update SCA methods by user login- Parameters:
scaDataList- user methodsuserLogin- user login- Returns:
- The user object.
-
updateAccountAccess
UserBO updateAccountAccess(String userLogin, List<AccountAccessBO> accountAccessListBO)
-
storeConsent
AisConsentBO storeConsent(AisConsentBO consentBO)
Stores a consent in the consent database and returns the original consent if already existing there.- Parameters:
consentBO- the consent object- Returns:
- the ais consent stored
-
loadConsent
AisConsentBO loadConsent(String consentId)
Loads a consent given the consent id. Throws a consent not found exception.- Parameters:
consentId- the consent id- Returns:
- the corresponding ais consent.
-
findUsersByMultipleParamsPaged
org.springframework.data.domain.Page<UserExtendedBO> findUsersByMultipleParamsPaged(String countryCode, String branchId, String branchLogin, String userLogin, List<UserRoleBO> roles, Boolean blocked, org.springframework.data.domain.Pageable pageable)
- Parameters:
countryCode- Country CodebranchId- id of STAFF userbranchLogin- login of STAFF useruserLogin- login of CUSTOMER userroles- List of Roles to filter forblocked- Boolean representation of User statuspageable- pagination info- Returns:
- Page of Users
-
findBranchIdsByMultipleParameters
Map<String,String> findBranchIdsByMultipleParameters(String countryCode, String branchId, String branchLogin)
-
findUserLoginsByBranch
List<String> findUserLoginsByBranch(String branchId)
Returns list of user logins for given branch.- Parameters:
branchId- branch identifier.- Returns:
- list of logins.
-
findUsersByBranchAndCreatedAfter
List<UserBO> findUsersByBranchAndCreatedAfter(String branchId, LocalDateTime created)
Returns list of users for given branch, which were created after the given date and time.- Parameters:
branchId- branch identifier.created- date and time.- Returns:
- list of users.
-
countUsersByBranch
int countUsersByBranch(String branch)
Counts amount of users for a branch- Parameters:
branch- branch- Returns:
- amount of users
-
updateUser
UserBO updateUser(UserBO userBO)
Updates user- Parameters:
userBO- user to update- Returns:
- user entity
-
findUsersByIban
List<UserBO> findUsersByIban(String iban)
Finds user by IBAN- Parameters:
iban- iban- Returns:
- user Entity
-
findOwnersByIban
List<UserBO> findOwnersByIban(String iban)
Finds account owners by IBAN- Parameters:
iban- iban- Returns:
- owner of account
-
findOwnersByAccountId
List<UserBO> findOwnersByAccountId(String accountId)
Finds account owners by account id- Parameters:
accountId- account id- Returns:
- users
-
setBranchBlockedStatus
void setBranchBlockedStatus(String userId, boolean isSystemBlock, boolean statusToSet)
-
setUserBlockedStatus
void setUserBlockedStatus(String userId, boolean isSystemBlock, boolean statusToSet)
-
isPresentBranchCode
boolean isPresentBranchCode(String bban)
-
getUsersByRoles
org.springframework.data.domain.Page<UserBO> getUsersByRoles(List<UserRoleBO> roles, org.springframework.data.domain.Pageable pageable)
-
-