Commit b2d2ff9f authored by descamps's avatar descamps
Browse files

Merge branch 'feature/template_mongo_initialisation_pastis' into 'master'

KDE - 11/05/2021 - feature - Template pour l'init Mongo afin d'intégrer Pastis...

See merge request !1
parents 58ea409a 11d42441
Pipeline #3389 passed with stage
in 17 seconds
......@@ -82,6 +82,33 @@ db.profiles.insert({
]
});
db.profiles.insert({
"_id" : "system_pastis",
"identifier" : NumberInt(maxIdProfile++),
"name" : "Pastis Profile",
"description" : "Pastis Profile",
"tenantIdentifier": NumberInt({{ vitamui_platform_informations.proof_tenant }}),
"applicationName" : "PASTIS_APP",
"enabled" : true,
"readonly" : true,
"level" : "",
"customerId" : "system_customer",
"roles" : [
{
"name": "ROLE_GET_PASTIS"
},
{
"name": "ROLE_CREATE_PASTIS"
},
{
"name": "ROLE_UPDATE_PASTIS"
},
{
"name": "ROLE_DELETE_PASTIS"
}
]
});
db.profiles.insert({
"_id" : "system_agencies",
"identifier" : NumberInt(maxIdProfile++),
......@@ -342,7 +369,8 @@ db.groups.updateOne( {
"system_probative_value",
"system_logbook_operation",
"system_holding_filling_scheme_profile",
"system_file_format"
"system_file_format",
"system_pastis"
]
}
}
......
......@@ -130,6 +130,22 @@ db.applications.insert({
"target" : "_self"
});
db.applications.insert({
"identifier" : "PASTIS_APP",
{% if vitamui.referential.base_url is defined %}
"url": "{{ vitamui.pastis.base_url }}/",
{% endif %}
"icon" : "vitamui-icon vitamui-icon-ontologie",
"name" : "Pastis",
"category" : "referential",
"position" : 1,
"hasCustomerList" : false,
"hasTenantList" : false,
"hasHighlight" : false,
"tooltip" : "Accéder à Pastis",
"target" : "_self"
});
db.applications.insert({
"identifier" : "AUDIT_APP",
{% if vitamui.referential.base_url is defined %}
......
......@@ -23,7 +23,8 @@ db.contexts.insert({
"ROLE_GET_CONTEXTS", "ROLE_UPDATE_CONTEXTS", "ROLE_CREATE_CONTEXTS",
"ROLE_GET_SECURITY_PROFILES", "ROLE_UPDATE_SECURITY_PROFILES", "ROLE_CREATE_SECURITY_PROFILES", "ROLE_DELETE_SECURITY_PROFILES",
"ROLE_GET_OPERATIONS", "ROLE_RUN_AUDITS", "ROLE_RUN_PROBATIVE_VALUE",
"ROLE_LOGBOOKS"
"ROLE_LOGBOOKS",
"ROLE_GET_PASTIS", "ROLE_CREATE_PASTIS", "ROLE_UPDATE_PASTIS", "ROLE_DELETE_PASTIS"
]
});
......
......@@ -92,3 +92,5 @@ vitamui:
base_url: "https://dev.vitamui.com:4208"
archive_search:
base_url: "https://dev.vitamui.com:4209"
pastis:
base_url: "https://dev.vitamui.com:4251"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment