diff --git a/api/api-iam/iam-internal/src/main/config/customer-init.yml b/api/api-iam/iam-internal/src/main/config/customer-init.yml index d4dc821db6dea7fe03ac1440d46aec9ae2ed3f46..25a5be07cf4773b8545a2797fe35ae9eb1856ab3 100644 --- a/api/api-iam/iam-internal/src/main/config/customer-init.yml +++ b/api/api-iam/iam-internal/src/main/config/customer-init.yml @@ -117,6 +117,7 @@ customer-init: - ROLE_GET_INGEST - ROLE_CREATE_INGEST - ROLE_GET_ALL_INGEST + - ROLE_LOGBOOKS - name: Profil Arbres et Plans description: Gestion des application d'import d'arbres de positionnement et plans de classement diff --git a/commons/commons-api/src/main/java/fr/gouv/vitamui/commons/api/domain/ServicesData.java b/commons/commons-api/src/main/java/fr/gouv/vitamui/commons/api/domain/ServicesData.java index 3d14b465fd517768b7c3fa1fb3eed8d4ce0a2a1c..1fdea2670704988606fd461aaa0e8fa4adf16136 100644 --- a/commons/commons-api/src/main/java/fr/gouv/vitamui/commons/api/domain/ServicesData.java +++ b/commons/commons-api/src/main/java/fr/gouv/vitamui/commons/api/domain/ServicesData.java @@ -458,14 +458,15 @@ public class ServicesData { ROLE_GET_ALL_INGEST, ROLE_GET_INGEST, ROLE_CREATE_INGEST, + ROLE_LOGBOOKS, - ROLE_GET_ALL_ARCHIVE, - ROLE_GET_ARCHIVE, - ROLE_CREATE_ARCHIVE, + ROLE_GET_ALL_ARCHIVE, + ROLE_GET_ARCHIVE, + ROLE_CREATE_ARCHIVE, - ROLE_CREATE_HOLDING_FILLING_SCHEME_ROLE, - ROLE_GET_HOLDING_FILLING_SCHEME_ROLE, - ROLE_GET_ALL_HOLDING_FILLING_SCHEME_ROLE + ROLE_CREATE_HOLDING_FILLING_SCHEME_ROLE, + ROLE_GET_HOLDING_FILLING_SCHEME_ROLE, + ROLE_GET_ALL_HOLDING_FILLING_SCHEME_ROLE ); /** @@ -576,6 +577,7 @@ public class ServicesData { ROLE_GET_ALL_INGEST, ROLE_GET_INGEST, ROLE_CREATE_INGEST, + ROLE_LOGBOOKS, ROLE_GET_ALL_ARCHIVE, ROLE_GET_ARCHIVE, diff --git a/deployment/roles/init_ingest_app_bdd/templates/ingest/01_ingest.js.j2 b/deployment/roles/init_ingest_app_bdd/templates/ingest/01_ingest.js.j2 index 8d8ee41da9bcd7f4cab377d7d701f4e4d469c2c4..04e89c72a37d8a5807fc4698faa399584227d52e 100644 --- a/deployment/roles/init_ingest_app_bdd/templates/ingest/01_ingest.js.j2 +++ b/deployment/roles/init_ingest_app_bdd/templates/ingest/01_ingest.js.j2 @@ -26,7 +26,8 @@ db.profiles.update( "roles": [ {"name": "ROLE_CREATE_INGEST"}, {"name": "ROLE_GET_INGEST"}, - {"name": "ROLE_GET_ALL_INGEST"} + {"name": "ROLE_GET_ALL_INGEST"}, + {"name": "ROLE_LOGBOOKS"} ] }, "$setOnInsert": { @@ -111,7 +112,7 @@ db.contexts.update( "fullAccess" : true, "tenants" : [NumberInt({{ vitamui_platform_informations.proof_tenant }}), NumberInt({{ vitamui_platform_informations.cas_tenant }})], "roleNames" : [ - "ROLE_CREATE_INGEST", "ROLE_GET_INGEST", "ROLE_GET_ALL_INGEST" + "ROLE_CREATE_INGEST", "ROLE_GET_INGEST", "ROLE_GET_ALL_INGEST", "ROLE_LOGBOOKS" ] }, "$setOnInsert": { @@ -162,7 +163,7 @@ db.services.update( } }, "$setOnInsert": { - "_id" : NumberInt(4) + "_id" : NumberInt(4) } }, { "upsert":true } diff --git a/deployment/roles/vitamui/files/customer-init.yml b/deployment/roles/vitamui/files/customer-init.yml index 1a400729afd7941a7847a0a1f691479cd3df7cd2..44b9f2bbfd65c0732154735c5202c912ccb1926f 100644 --- a/deployment/roles/vitamui/files/customer-init.yml +++ b/deployment/roles/vitamui/files/customer-init.yml @@ -106,6 +106,7 @@ customer-init: - ROLE_GET_INGEST - ROLE_CREATE_INGEST - ROLE_GET_ALL_INGEST + - ROLE_LOGBOOKS - name: Profil Arbres et Plans description: Gestion des applications d'import d'arbres de positionnement et plans de classement diff --git a/deployment/scripts/mongod/1.0.0/212_application_ref.js.j2 b/deployment/scripts/mongod/1.0.0/212_application_ref.js.j2 index 26f1f72b4262141c9ea257734607897bed002e57..729fc6b6fef4d332557f2f4940772ee4c1a6703d 100644 --- a/deployment/scripts/mongod/1.0.0/212_application_ref.js.j2 +++ b/deployment/scripts/mongod/1.0.0/212_application_ref.js.j2 @@ -42,6 +42,9 @@ db.profiles.insert({ }, { "name": "ROLE_GET_ALL_INGEST" + }, + { + "name" : "ROLE_LOGBOOKS" } ] }); diff --git a/deployment/scripts/mongod/1.0.0/214_security_ref.js.j2 b/deployment/scripts/mongod/1.0.0/214_security_ref.js.j2 index 58ae8560ce64999b68a8c8182c4c263bbc87433f..94affb1d1679819b4c482f0fed936c19645174e9 100644 --- a/deployment/scripts/mongod/1.0.0/214_security_ref.js.j2 +++ b/deployment/scripts/mongod/1.0.0/214_security_ref.js.j2 @@ -8,7 +8,7 @@ db.contexts.insert({ "fullAccess" : true, "tenants" : [NumberInt({{ vitamui_platform_informations.proof_tenant }}), NumberInt({{ vitamui_platform_informations.cas_tenant }})], "roleNames" : [ - "ROLE_CREATE_INGEST", "ROLE_GET_INGEST", "ROLE_GET_ALL_INGEST", + "ROLE_CREATE_INGEST", "ROLE_GET_INGEST", "ROLE_GET_ALL_INGEST", "ROLE_LOGBOOKS", "ROLE_CREATE_HOLDING_FILLING_SCHEME", "ROLE_GET_HOLDING_FILLING_SCHEME", "ROLE_GET_ALL_HOLDING_FILLING_SCHEME" ]