merged with master branch

This commit is contained in:
Francesco Mangiacrapa 2023-03-01 14:40:30 +01:00
parent eab6a27c76
commit 0edc6c6f1f
2 changed files with 803 additions and 673 deletions

View File

@ -98,15 +98,43 @@
} }
}, },
"_dataAccessPolicies": [ "_dataAccessPolicies": [
{"_policy": {"_read": "any","_write": "any"}, {
"_roles": ["Data-Manager"]}, "_policy": {
{"_policy": {"_read": "own","_write": "own"}, "_read": "any",
"_roles": ["Data-Editor"]}, "_write": "any"
{"_policy": {"_read": "any","_write": "none"}, },
"_roles": ["Member"], "_roles": [
"_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"}}, "Data-Manager"
{"_policy": {"_read": "none","_write": "none"}, ]
"_roles": []} },
{
"_policy": {
"_read": "own",
"_write": "own"
},
"_roles": [
"Data-Editor"
]
},
{
"_policy": {
"_read": "any",
"_write": "none"
},
"_roles": [
"Member"
],
"_enforcer": {
"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"
}
},
{
"_policy": {
"_read": "none",
"_write": "none"
},
"_roles": []
}
], ],
"_handlers": [ "_handlers": [
{ {
@ -129,6 +157,12 @@
"roles": [ "roles": [
"Data-Manager" "Data-Manager"
] ]
},
{
"STEP": "UNPUBLISH",
"roles": [
"Data-Manager"
]
} }
] ]
} }
@ -579,8 +613,7 @@
} }
] ]
} }
} },
,
{ {
"_id": "org.gcube.portlets.user.geoportal-timeline-json-template", "_id": "org.gcube.portlets.user.geoportal-timeline-json-template",
"_type": "TIMELINE_JSON_TEMPLATE", "_type": "TIMELINE_JSON_TEMPLATE",
@ -637,15 +670,32 @@
"display_on_phase": [ "display_on_phase": [
"Pending Approval" "Pending Approval"
] ]
},
{
"id": "unpublish",
"title": "UnPublish",
"call_STEPS": [
"UNPUBLISH"
],
"description": "UnPublish the Project",
"display_on_phase": [
"Published"
]
} }
] ]
} }
} }
], ],
"_relationshipDefinitions": [ "_relationshipDefinitions": [
{"_id": "precedes", "_label" : "Precede", {
"_reverseRelationId" : "follows"}, "_id": "precedes",
{"_id": "follows", "_label" : "Segue", "_label": "Precede",
"_reverseRelationId" : "precedes"} "_reverseRelationId": "follows"
},
{
"_id": "follows",
"_label": "Segue",
"_reverseRelationId": "precedes"
}
] ]
} }

View File

@ -5,27 +5,47 @@
"_schema": { "_schema": {
"fonteInformazione": { "fonteInformazione": {
"_children": [ "_children": [
{"filesetIta": {"_type": "RegisteredFileSet"}} {
"filesetIta": {
"_type": "RegisteredFileSet"
}
}
] ]
}, },
"documentazioneScientifica": { "documentazioneScientifica": {
"_children": [ "_children": [
{"fileset": {"_type": "RegisteredFileSet"}} {
"fileset": {
"_type": "RegisteredFileSet"
}
}
] ]
}, },
"immaginiRappresentative": { "immaginiRappresentative": {
"_children": [ "_children": [
{"fileset": {"_type": "RegisteredFileSet"}} {
"fileset": {
"_type": "RegisteredFileSet"
}
}
] ]
}, },
"datiAltimetrici": { "datiAltimetrici": {
"_children": [ "_children": [
{"fileset": {"_type": "RegisteredFileSet"}} {
"fileset": {
"_type": "RegisteredFileSet"
}
}
] ]
}, },
"planimetria": { "planimetria": {
"_children": [ "_children": [
{"fileset": {"_type": "RegisteredFileSet"}} {
"fileset": {
"_type": "RegisteredFileSet"
}
}
] ]
} }
}, },
@ -36,15 +56,43 @@
} }
}, },
"_dataAccessPolicies": [ "_dataAccessPolicies": [
{"_policy": {"_read": "any","_write": "any"}, {
"_roles": ["Data-Manager"]}, "_policy": {
{"_policy": {"_read": "own","_write": "own"}, "_read": "any",
"_roles": ["Data-Editor"]}, "_write": "any"
{"_policy": {"_read": "any","_write": "none"}, },
"_roles": ["Member"], "_roles": [
"_enforcer": {"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"}}, "Data-Manager"
{"_policy": {"_read": "none","_write": "none"}, ]
"_roles": []} },
{
"_policy": {
"_read": "own",
"_write": "own"
},
"_roles": [
"Data-Editor"
]
},
{
"_policy": {
"_read": "any",
"_write": "none"
},
"_roles": [
"Member"
],
"_enforcer": {
"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}"
}
},
{
"_policy": {
"_read": "none",
"_write": "none"
},
"_roles": []
}
], ],
"_handlers": [ "_handlers": [
{ {
@ -54,7 +102,16 @@
"step_access": [ "step_access": [
{ {
"STEP": "PUBLISH", "STEP": "PUBLISH",
"roles": ["Data-Manager","Data-Editor"] "roles": [
"Data-Manager",
"Data-Editor"
]
},
{
"STEP": "UNPUBLISH",
"roles": [
"Data-Manager"
]
} }
] ]
} }
@ -427,8 +484,7 @@
} }
] ]
} }
} },
,
{ {
"_id": "org.gcube.portlets.user.geoportal-workflow-action-list", "_id": "org.gcube.portlets.user.geoportal-workflow-action-list",
"_type": "WORKFLOW_ACTION_LIST_GUI", "_type": "WORKFLOW_ACTION_LIST_GUI",
@ -437,7 +493,9 @@
{ {
"id": "post_creation_action", "id": "post_creation_action",
"title": "Post Creation Action", "title": "Post Creation Action",
"call_STEPS": ["PUBLISH"], "call_STEPS": [
"PUBLISH"
],
"description": "Action fired after the Project creation", "description": "Action fired after the Project creation",
"display_on_phase": [] "display_on_phase": []
}, },
@ -473,6 +531,28 @@
"display_on_phase": [ "display_on_phase": [
"Pending Approval" "Pending Approval"
] ]
},
{
"id": "unpublish",
"title": "UnPublish",
"call_STEPS": [
"UNPUBLISH"
],
"description": "UnPublish the Project",
"display_on_phase": [
"Published"
]
},
{
"id": "unpublish",
"title": "UnPublish",
"call_STEPS": [
"UNPUBLISH"
],
"description": "UnPublish the Project",
"display_on_phase": [
"PUBLISHED"
]
} }
] ]
} }