-
Notifications
You must be signed in to change notification settings - Fork 21
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 #475 from Backbase/hotfix/4.1.10-implemented-user-…
…bf-prv-based-limit-ingestion [Enhancement] - Implemented User, Business function and PRV level limit ingetion functionality
- Loading branch information
Showing
4 changed files
with
79 additions
and
12 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
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
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 |
---|---|---|
|
@@ -64,7 +64,7 @@ private static LegalEntityTask defaultLegalEntityTask() { | |
.parentExternalId("parent-100000") | ||
.legalEntityType(LegalEntityType.CUSTOMER) | ||
.realmName("customer-bank") | ||
.limit(legalEntityLimit()) | ||
.limit(limitWithBussinessFunctionAndPrivileges()) | ||
.productGroups(Arrays.asList( | ||
(ProductGroup) new ProductGroup() | ||
.productGroupType(BaseProductGroup.ProductGroupTypeEnum.ARRANGEMENTS) | ||
|
@@ -114,12 +114,14 @@ private static LegalEntityTask defaultLegalEntityTask() { | |
new JobProfileUser() | ||
.user( | ||
new User() | ||
.internalId("internal-id") | ||
.externalId("john.doe") | ||
.fullName("John Doe") | ||
.identityLinkStrategy(IdentityUserLinkStrategy.CREATE_IN_IDENTITY) | ||
.locked(false) | ||
.emailAddress(new EmailAddress().address("[email protected]")) | ||
.mobileNumber(new PhoneNumber().number("+12345")) | ||
.limit(limitWithBussinessFunctionAndPrivileges()) | ||
) | ||
.referenceJobRoleNames(Arrays.asList( | ||
"Private - Read only", "Private - Full access" | ||
|
@@ -144,13 +146,11 @@ private static LegalEntityTask defaultLegalEntityTask() { | |
); | ||
} | ||
|
||
private static Limit legalEntityLimit(){ | ||
private static Limit limitWithBussinessFunctionAndPrivileges(){ | ||
return new Limit() | ||
.addBusinessFunctionLimitsItem(new BusinessFunctionLimit() | ||
.functionId("1001") | ||
.shadow(true) | ||
.addPrivilegesItem(new Privilege().privilege("create").limit(new Limit().daily(BigDecimal.valueOf(2500d)))) | ||
.addPrivilegesItem(new Privilege().privilege("execute").limit(new Limit().daily(BigDecimal.valueOf(2500d)))) | ||
.addBusinessFunctionLimitsItem(new BusinessFunctionLimit("1001", false) | ||
.addPrivilegesItem(new Privilege("create").limit(new Limit().transactional(BigDecimal.valueOf(2500d)).daily(BigDecimal.valueOf(2500d)))) | ||
.addPrivilegesItem(new Privilege("approve").limit(new Limit().transactional(BigDecimal.valueOf(2500d)).daily(BigDecimal.valueOf(2500d)))) | ||
); | ||
} | ||
|
||
|