Skip to content

Commit

Permalink
added segment code for parent tenant and update data security
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokendra-egov committed Apr 17, 2024
1 parent 98b947c commit 622a729
Show file tree
Hide file tree
Showing 7 changed files with 190 additions and 51 deletions.
159 changes: 108 additions & 51 deletions data/od/DataSecurity/SecurityPolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,57 +494,114 @@
],
"roleBasedDecryptionPolicy": []
},
{
"model": "DisbursementEncrypt",
"uniqueIdentifier": {
"name": "id",
"jsonPath": "/id"
{
"model": "DisbursementEncrypt",
"uniqueIdentifier": {
"name": "id",
"jsonPath": "/id"
},
"attributes": [
{
"name": "individualName",
"jsonPath": "children/*/individual/name",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualPhone",
"jsonPath": "children/*/individual/phone",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualGender",
"jsonPath": "children/*/individual/gender",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualPin",
"jsonPath": "children/*/individual/pin",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualAddress",
"jsonPath": "children/*/individual/address",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualEmail",
"jsonPath": "children/*/individual/email",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "accountCode",
"jsonPath": "children/*/account_code",
"patternId": "002",
"defaultVisibility": "PLAIN"
}
],
"roleBasedDecryptionPolicy": [
{
"roles": ["BILL_ACCOUNTANT", "MUKTA_ADMIN"],
"attributeAccessList": [
{
"attribute": "individualName",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
},
{
"attribute": "accountCode",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
},
{
"attribute": "individualPhone",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
},
{
"attribute": "individualGender",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
},
{
"attribute": "individualPin",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
},
{
"attribute": "individualAddress",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
},
{
"attribute": "individualEmail",
"firstLevelVisibility": "PLAIN",
"secondLevelVisibility": "PLAIN"
}
]
}
]
},
"attributes": [
{
"name": "individualName",
"jsonPath": "disbursements/*/individual/name",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualPhone",
"jsonPath": "disbursements/*/individual/phone",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualGender",
"jsonPath": "disbursements/*/individual/gender",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualPin",
"jsonPath": "disbursements/*/individual/pin",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualAddress",
"jsonPath": "disbursements/*/individual/address",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "individualEmail",
"jsonPath": "disbursements/*/individual/email",
"patternId": "002",
"defaultVisibility": "PLAIN"
},
{
"name": "accountCode",
"jsonPath": "disbursements/*/account_code",
"patternId": "002",
"defaultVisibility": "PLAIN"
}
],
"roleBasedDecryptionPolicy": []
}
{
"model": "PaymentInstruction",
"uniqueIdentifier": {
"name": "id",
"jsonPath": "/id"
},
"attributes": [
{
"name": "bankAccountId",
"jsonPath": "beneficiaryDetails/*/bankAccountId",
"patternId": "002",
"defaultVisibility": "PLAIN"
}
],
"roleBasedDecryptionPolicy": []
}
]
}
11 changes: 11 additions & 0 deletions data/od/segment-codes/AdministrativeCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tenantId": "od",
"moduleName": "segment-codes",
"AdministrativeCodes": [
{
"id": "15301",
"code": "MU-UD-CUTTACK",
"name": "Ministry of urban, Urban development, Cuttack"
}
]
}
10 changes: 10 additions & 0 deletions data/od/segment-codes/EconomicSegmentCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"tenantId": "od",
"moduleName": "segment-codes",
"EconomicSegmentCodes": [
{
"id": "552",
"code": "CAPEX-IFAS-OTCON",
"name": "Capital Expenditure, Infrastructure Assets, Other Constructions"
}]
}
10 changes: 10 additions & 0 deletions data/od/segment-codes/FunctionCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"tenantId": "od",
"moduleName": "segment-codes",
"FunctionCodes": [
{
"id": "490600",
"code": "OT-GEN-ECO-SVC",
"name": "Other General Economic Services, Sub scheme"
}]
}
10 changes: 10 additions & 0 deletions data/od/segment-codes/RecipientSegmentCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"tenantId": "od",
"moduleName": "segment-codes",
"RecipientSegmentCodes": [
{
"id": "26",
"code": "IND",
"name": " Individual"
}]
}
15 changes: 15 additions & 0 deletions data/od/segment-codes/SourceOfFundCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"tenantId": "od",
"moduleName": "segment-codes",
"SourceOfFundCodes": [
{
"id": "0402",
"code": "CSS",
"name": "Centrally Sponsored Schemes"
},
{
"id": "0403",
"code": "GSS",
"name": "Government Sponsored Schemes"
}]
}
26 changes: 26 additions & 0 deletions data/od/segment-codes/TargetSegmentCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"tenantId": "od",
"moduleName": "segment-codes",
"TargetSegmentCodes": [
{
"id": "0401",
"code": "WC",
"name": "Women Centric expenditures"
},
{
"id": "0402",
"code": "SC",
"name": "Schedule Castes"
},
{
"id": "0403",
"code": "ST",
"name": "Schedule Tribes"
},
{
"id": "0404",
"code": "BPL",
"name": "Below Poverty Line"
}
]
}

0 comments on commit 622a729

Please sign in to comment.