Skip to content

Commit

Permalink
CIV-3401 Access profiles for case flags (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
sankaviv1 authored Feb 23, 2023
1 parent 0085545 commit 28a8b33
Show file tree
Hide file tree
Showing 12 changed files with 341 additions and 109 deletions.
2 changes: 2 additions & 0 deletions bin/add-roles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
./bin/utils/ccd-add-role.sh "civil-administrator-basic"
./bin/utils/ccd-add-role.sh "hearing-schedule-access"
./bin/utils/ccd-add-role.sh "payment-access"
./bin/utils/ccd-add-role.sh "caseflags-admin"
./bin/utils/ccd-add-role.sh "caseflags-viewer"

roles=("solicitor" "systemupdate" "admin" "staff")
for role in "${roles[@]}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"CaseTypeID": "CIVIL",
"CaseEventID": "CREATE_CASE_FLAGS",
"AccessControl": [
{
"UserRoles": [
"caseflags-admin"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "MANAGE_CASE_FLAGS",
"AccessControl": [
{
"UserRoles": [
"caseflags-admin"
],
"CRUD": "CRU"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "flagLauncher",
"AccessControl": [
{
"UserRoles": [
"caseflags-admin"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"caseflags-viewer"
],
"CRUD": "R"
}
]
}
]
32 changes: 32 additions & 0 deletions ccd-definition/CaseEvent/User/UserEvents-CaseFlags-nonprod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"CaseTypeID": "CIVIL",
"ID": "CREATE_CASE_FLAGS",
"Name": "Create case flags",
"Description": "Create case flags",
"DisplayOrder": 23,
"PreConditionState(s)": "CASE_ISSUED;AWAITING_CASE_DETAILS_NOTIFICATION;AWAITING_RESPONDENT_ACKNOWLEDGEMENT;AWAITING_APPLICANT_INTENTION",
"PostConditionState": "*",
"SecurityClassification": "Public",
"ShowSummary": "N",
"ShowEventNotes": "N",
"EndButtonLabel": "Submit",
"CallBackURLAboutToStartEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-start",
"RetriesTimeoutAboutToStartEvent": 0
},
{
"CaseTypeID": "CIVIL",
"ID": "MANAGE_CASE_FLAGS",
"Name": "Manage case flags",
"Description": "Manage case flags",
"DisplayOrder": 24,
"PreConditionState(s)": "CASE_ISSUED;AWAITING_CASE_DETAILS_NOTIFICATION;AWAITING_RESPONDENT_ACKNOWLEDGEMENT;AWAITING_APPLICANT_INTENTION",
"PostConditionState": "*",
"SecurityClassification": "Public",
"ShowSummary": "N",
"ShowEventNotes": "N",
"EndButtonLabel": "Submit",
"CallBackURLAboutToStartEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-start",
"RetriesTimeoutAboutToStartEvent": 0
}
]
9 changes: 9 additions & 0 deletions ccd-definition/CaseField/CaseField-CaseFlags-nonprod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"CaseTypeID": "CIVIL",
"ID": "flagLauncher",
"Label": "Launch the Flags screen",
"FieldType": "FlagLauncher",
"SecurityClassification": "Public"
}
]
10 changes: 10 additions & 0 deletions ccd-definition/CaseTypeTab/CaseFlags-nonprod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"CaseTypeID": "CIVIL",
"TabID": "caseFlags",
"TabLabel": "Case Flags",
"TabDisplayOrder": 13,
"CaseFieldID": "flagLauncher",
"TabFieldDisplayOrder": 1
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[
{
"RoleName" : "leadership-judge",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "judge-profile,GS_profile,caseflags-viewer",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "judge",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "judge-profile,GS_profile,caseflags-viewer",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "specific-access-judiciary",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "judge-profile,caseworker-civil,GS_profile,caseflags-viewer",
"ReadOnly": "Y",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "challenged-access-judiciary",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,judge-profile,caseworker-civil,caseflags-viewer",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "hearing-centre-admin",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,hearing-schedule-access,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "ctsc-team-leader",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "ctsc",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "nbc-team-leader",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "national-business-centre",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,hearing-schedule-access,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "hearing-centre-team-leader",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,hearing-schedule-access,caseworker-civil-admin,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "specific-access-admin",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,legal-adviser,caseworker-civil,caseflags-admin",
"ReadOnly": "Y",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "challenged-access-admin",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,legal-adviser,caseworker-civil,caseflags-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
[
{
"RoleName" : "leadership-judge",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "judge-profile,GS_profile",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "judge",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "judge-profile,GS_profile",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "specific-access-judiciary",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "judge-profile,caseworker-civil,GS_profile",
"ReadOnly": "Y",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "challenged-access-judiciary",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,judge-profile,caseworker-civil",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "hearing-centre-admin",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,hearing-schedule-access",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "ctsc-team-leader",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "ctsc",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "nbc-team-leader",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "national-business-centre",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,caseworker-civil-admin,hearing-schedule-access",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "hearing-centre-team-leader",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,hearing-schedule-access,caseworker-civil-admin",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "specific-access-admin",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,legal-adviser,caseworker-civil",
"ReadOnly": "Y",
"Disabled": "F",
"CaseAccessCategories": ""
},
{
"RoleName" : "challenged-access-admin",
"Authorisation": "",
"CaseTypeID": "CIVIL",
"AccessProfiles": "GS_profile,legal-adviser,caseworker-civil",
"ReadOnly": "N",
"Disabled": "F",
"CaseAccessCategories": ""
}
]
Loading

0 comments on commit 28a8b33

Please sign in to comment.