Added notifications settings/configurations

This commit is contained in:
Francesco Mangiacrapa 2024-11-15 11:13:09 +01:00
parent 20b190a794
commit b429bbb695
3 changed files with 172 additions and 0 deletions

View File

@ -344,6 +344,132 @@
]
}
},
{
"_id": "Catalogue-Binding-Plugin",
"_type": "EventListener",
"_configuration": {
"subscribeEvents": [
{
"event": "LIFECYCLE_STEP_PERFORMED",
"when": [
{
"target_phase": [
"Published"
],
"last_invoked_step": "APPROVE-SUBMITTED"
},
{
"target_phase": [
"DRAFT"
],
"last_invoked_step": "UNPUBLISH"
}
]
},
{
"event": "PROJECT_DELETED"
}
],
"freemarker_template_host": "https://code-repo.d4science.org",
"freemarker_template_path": "gCubeSystem/gcube-cms-suite/raw/branch/event_manager/D4S_UCDs/DEV/preVRE/catalogue/binding/freemarker_templates/d4gna_to_catalogue.ftl",
"enabled": true
}
},
{
"_id": "Notifications-Plugin",
"_type": "EventListener",
"_configuration": {
"subscribeNotifications": [
{
"event": "LIFECYCLE_STEP_PERFORMED",
"notificationFor": [
{
"roles": [
"Data-Manager"
],
"when": [
{
"target_phase": [
"Pending Approval"
],
"last_invoked_step": "SUBMIT-FOR-REVIEW",
"notify": [
{
"type": "USER_NOTIFICATION",
"send": true,
"placeholder_title": "TITLE_REVIEW_REQUIRED",
"placeholder_msg": "MSG_REVIEW_REQUIRED"
}
]
},
{
"target_phase": [
"DRAFT"
],
"last_invoked_step": "REJECT-DRAFT",
"notify": [
{
"type": "USER_NOTIFICATION",
"send": true,
"placeholder_title": "TITLE_ITEM_REJECTED",
"placeholder_msg": "MSG_ITEM_REJECTED"
}
]
}
]
},
{
"roles": [
"Item_Creator"
],
"when": [
{
"target_phase": [
"DRAFT"
],
"last_invoked_step": "REJECT-DRAFT",
"notify": [
{
"type": "USER_NOTIFICATION",
"send": true,
"placeholder_title": "TITLE_ITEM_REJECTED_REVIEW_REQUIRED",
"placeholder_msg": "MSG_ITEM_REJECTED_REVIEW_REQUIRED"
}
]
}
]
},
{
"roles": [
"Any"
],
"when": [
{
"target_phase": [
"Published"
],
"last_invoked_step": "APPROVE-SUBMITTED",
"notify": [
{
"type": "VRE_POST",
"send": true,
"placeholder_msg": "MSG_ITEM_PUBLISHED",
"export_as_pdf": {
"export": false,
"placeholder_msg": "MSG_GO_TO_PDF"
}
}
]
}
]
}
]
}
],
"enabled": true,
"link_to_notifications_messages": "https://code-repo.d4science.org/gCubeSystem/gcube-cms-suite/raw/branch/event_manager/D4S_UCDs/DEV/preVRE/notifications/Notifications_Messages_ita.properties"
}
},
{
"_id": "org.gcube.portlets.user.geoportal-data-entry-app",
"_type": "DATA_ENTRY_GUI",

View File

@ -0,0 +1,23 @@
# REVIEW ACTION
TITLE_REVIEW_REQUIRED=Review required for ${project_name}
MSG_REVIEW_REQUIRED=@${user_caller} submitted the project ${project_name}. You are kindly requested to review it and decide either to APPROVE or REJECT it. See the Project at ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED=Rejected ${project_name}
MSG_ITEM_REJECTED=The project ${project_name} (id: ${project_id}) has just been rejected by @${user_caller}. See the Project at ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED_REVIEW_REQUIRED=Rejected ${project_name}
MSG_ITEM_REJECTED_REVIEW_REQUIRED=The project ${project_name} has just been rejected. You are kindly requested to review it. See the Project at ${private_data_entry_link}
# PUBLISHED ACTION
TITLE_ITEM_PUBLISHED=Published ${project_name}
MSG_ITEM_PUBLISHED=The project ${project_name} created by @${item_creator} has just been published. See the Project at ${public_data_viewer_link}
# CREATED ACTION
TITLE_ITEM_CREATED=Created ${project_name}
MSG_ITEM_CREATED=The project ${project_name} has just been created. See the Project at ${private_data_entry_link}
# DELETED ACTION
TITLE_ITEM_DELETED=Deleted ${project_name}
MSG_ITEM_DELETED=The project ${project_name} has just been deleted
# UPDATED ACTION
TITLE_ITEM_UPDATED=Updated ${project_name}
MSG_ITEM_UPDATED=The project ${project_name} (id: ${project_id}) has just been updated. See the Project at ${private_data_entry_link}
# GO TO PDF ACTION
MSG_GO_TO_PDF=Go to PDF report at ${project_as_pdf_link}

View File

@ -0,0 +1,23 @@
# REVIEW ACTION
TITLE_REVIEW_REQUIRED=Richiesta di revisione per ${project_name}
MSG_REVIEW_REQUIRED=@${user_caller} ha sottomesso il progetto ${project_name}. Si prega di esaminarlo e decidere se APPROVARLO o RIFIUTARLO. Vedi il progetto ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED=Rigettato ${project_name}
MSG_ITEM_REJECTED=Il progetto ${project_name} (id: ${project_id}) è stato rigettato da @${user_caller}. Vedi il progetto ${private_data_entry_link}
# REJECTED ACTION
TITLE_ITEM_REJECTED_REVIEW_REQUIRED=Rigettato ${project_name}
MSG_ITEM_REJECTED_REVIEW_REQUIRED=Il progetto ${project_name} è stato rigettato. Si prega di rivederlo. Vedi il progetto ${private_data_entry_link}
# PUBLISHED ACTION
TITLE_ITEM_PUBLISHED=Pubblicato ${project_name}
MSG_ITEM_PUBLISHED=Il progetto ${project_name} creato da @${item_creator} è stato pubblicato. Vedi il progetto ${public_data_viewer_link}
# CREATED ACTION
TITLE_ITEM_CREATED=Creato ${project_name}
MSG_ITEM_CREATED=Il progetto ${project_name} è stato creato. Vedi il progetto ${private_data_entry_link}
# DELETED ACTION
TITLE_ITEM_DELETED=Cancellato ${project_name}
MSG_ITEM_DELETED=Il progetto ${project_name} è stato cancellato
# UPDATED ACTION
TITLE_ITEM_UPDATED=Aggiornato ${project_name}
MSG_ITEM_UPDATED=Il progetto ${project_name} (id: ${project_id}) è stato aggiornato. Vedi il progetto ${private_data_entry_link}
# GO TO PDF ACTION
MSG_GO_TO_PDF=Vai al report PDF ${project_as_pdf_link}