Interface UserService


  • public interface UserService
    • 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
      • findByLoginOrEmail

        UserBO findByLoginOrEmail​(String loginOrEmail)
      • updateScaData

        UserBO updateScaData​(List<ScaUserDataBO> scaDataList,
                             String userLogin)
        Update SCA methods by user login
        Parameters:
        scaDataList - user methods
        userLogin - user login
        Returns:
        The user object.
      • listUsers

        List<UserBO> listUsers​(int page,
                               int size)
      • 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 Code
        branchId - id of STAFF user
        branchLogin - login of STAFF user
        userLogin - login of CUSTOMER user
        roles - List of Roles to filter for
        blocked - Boolean representation of User status
        pageable - pagination info
        Returns:
        Page of Users
      • 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)
      • decodeStaticTan

        String decodeStaticTan​(String staticTan)