generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sar-endpoint
- Loading branch information
Showing
11 changed files
with
107 additions
and
53 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
24 changes: 24 additions & 0 deletions
24
src/main/kotlin/uk/gov/justice/digital/hmpps/learnerrecordsapi/config/Roles.kt
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 @@ | ||
package uk.gov.justice.digital.hmpps.learnerrecordsapi.config | ||
|
||
object Keys { | ||
|
||
const val KEY_LEARNERS = "role-learners" | ||
const val KEY_MATCHING = "role-matching" | ||
} | ||
|
||
object Roles { | ||
|
||
const val ROLE_LEARNER_RECORDS_SEARCH__RO = | ||
"ROLE_LEARNER_RECORDS_SEARCH__RO" | ||
|
||
const val ROLE_LEARNER_RECORDS_MATCH__RW = | ||
"ROLE_LEARNER_RECORDS_MATCH__RW" | ||
|
||
private const val READ = "read" | ||
private const val WRITE = "write" | ||
|
||
val ROLES = mapOf( | ||
ROLE_LEARNER_RECORDS_SEARCH__RO to listOf(READ), | ||
ROLE_LEARNER_RECORDS_MATCH__RW to listOf(READ, WRITE), | ||
) | ||
} |
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
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
Oops, something went wrong.