-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from ADORSYS-GIS/28-create-bank-account-access…
…-service-api-ledgers-bank-account-access-service-api 28 create bank account access service api ledgers bank account access service api
- Loading branch information
Showing
12 changed files
with
178 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ess-service-api/src/main/java/de/adorsys/ledgers/baam/api/service/AgentAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.AgentAccess; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
|
||
public interface AgentAccessService extends BankAccountAccessService<AgentAccess> { | ||
void createAgentAccess(BankAccountAccess bankAccountAccess); | ||
AgentAccess impersonateHolder(String accessId); | ||
AgentAccess endImpersonation(String accessId); | ||
} |
15 changes: 15 additions & 0 deletions
15
...s-service-api/src/main/java/de/adorsys/ledgers/baam/api/service/AuditorAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.AuditorAccess; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
|
||
|
||
public interface AuditorAccessService extends BankAccountAccessService<AuditorAccess>{ | ||
void createAuditorAccess(BankAccountAccess bankAccountAccess); | ||
|
||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...rvice-api/src/main/java/de/adorsys/ledgers/baam/api/service/BankAccountAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
|
||
import de.adorsys.ledgers.baam.db.domain.*; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface BankAccountAccessService<T extends BankAccountAccess> { | ||
|
||
T createBankAccountAccess(String accountId, String entityId, T accessDetails); | ||
|
||
void modifyBankAccountAccess(T bankAccountAccess); | ||
void suspendBankAccountAccess(String id); | ||
void reactivateBankAccountAccess(String id); | ||
Optional<Boolean> revokeBankAccountAccess(String accessId); | ||
List<T> getAllBankAccountAccess(); | ||
T getBankAccountAccessById(String id); | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
...service-api/src/main/java/de/adorsys/ledgers/baam/api/service/DelegatedAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
import de.adorsys.ledgers.baam.db.domain.DelegatedAccess; | ||
|
||
import java.util.List; | ||
|
||
public interface DelegatedAccessService extends BankAccountAccessService<DelegatedAccess> { | ||
DelegatedAccess createDelegatedAccess(BankAccountAccess bankAccountAccess); | ||
void manageDelegatedAccess(String delegateId, String action, DelegatedAccess delegatedAccess); | ||
void revokeDelegatedAccess(String accessId); | ||
List<DelegatedAccess> listDelegatedAccessByAccountId(String accountId); | ||
} |
19 changes: 19 additions & 0 deletions
19
...ss-service-api/src/main/java/de/adorsys/ledgers/baam/api/service/HolderAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.AccessScope; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
import de.adorsys.ledgers.baam.db.domain.HolderAccess; | ||
|
||
|
||
public interface HolderAccessService extends BankAccountAccessService<HolderAccess>{ | ||
void createHolderAccess(BankAccountAccess bankAccountAccess); | ||
void transferOwnership(String holderId, String newHolderId); | ||
void suspendAccess(String accessId); | ||
void grantAccessToRole(String accountId, String roleName, AccessScope accessScope); | ||
void revokeAccessToRole(String accountId, String roleName); | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...s-service-api/src/main/java/de/adorsys/ledgers/baam/api/service/ManagerAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
import de.adorsys.ledgers.baam.db.domain.ManagerAccess; | ||
|
||
public interface ManagerAccessService extends BankAccountAccessService<ManagerAccess>{ | ||
void createManagerAccess(BankAccountAccess bankAccountAccess); | ||
void impersonateHolder(Long holderId); | ||
ManagerAccess grantManagerAccess(String accountId, ManagerAccess managerAccess); | ||
ManagerAccess revokeManagerAccess(String accessId); | ||
} |
22 changes: 22 additions & 0 deletions
22
...ice-api/src/main/java/de/adorsys/ledgers/baam/api/service/SeniorManagerAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
import de.adorsys.ledgers.baam.db.domain.ManagerAccess; | ||
import de.adorsys.ledgers.baam.db.domain.SeniorManagerAccess; | ||
import de.adorsys.ledgers.baam.db.domain.TypeOfManagedAccess; | ||
|
||
import java.util.List; | ||
|
||
public interface SeniorManagerAccessService extends BankAccountAccessService<SeniorManagerAccess>{ | ||
void createSeniorManagerAccess(BankAccountAccess bankAccountAccess); | ||
void manageManagerAccess(String managerId, String action, TypeOfManagedAccess typeOfManagedAccess); | ||
void modifyManagerAccess(String accountId, String managerId); | ||
void suspendManagerAccess(String accountId, String managerId); | ||
void reactivateManagerAccess(String accountId, String managerId); | ||
List<ManagerAccess> getManagerAccessesByAccountId(String accountId); | ||
ManagerAccess getManagerAccessById(String accountId, String managerId); | ||
} |
13 changes: 13 additions & 0 deletions
13
...ss-service-api/src/main/java/de/adorsys/ledgers/baam/api/service/TellerAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.BankAccountAccess; | ||
import de.adorsys.ledgers.baam.db.domain.TellerAccess; | ||
|
||
public interface TellerAccessService extends BankAccountAccessService<TellerAccess>{ | ||
void createTellerAccess(BankAccountAccess bankAccountAccess); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
...ervice-api/src/main/java/de/adorsys/ledgers/baam/api/service/ThirdPartyAccessService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG | ||
* All rights are reserved. | ||
*/ | ||
|
||
package de.adorsys.ledgers.baam.api.service; | ||
import de.adorsys.ledgers.baam.db.domain.*; | ||
|
||
import java.util.List; | ||
|
||
public interface ThirdPartyAccessService extends BankAccountAccessService<ThirdPartyAccess>{ | ||
void createThirdPartyAccess(BankAccountAccess bankAccountAccess); | ||
void grantThirdPartyAccess(String accountId, ConsentType consentType, AccessScope accessLevel); | ||
void revokeThirdPartyAccess(String accountId, String providerId); | ||
void modifyThirdPartyAccess(String accountId, String providerId, ConsentType consentType, AccessScope accessLevel); | ||
List<ThirdPartyAccess> getThirdPartyAccessesByAccountId(String accountId); | ||
ThirdPartyAccess getThirdPartyAccessByProviderId(String accountId, String providerId); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters