From b3867356506edab9f83a11df0a87dfd162eb59f0 Mon Sep 17 00:00:00 2001 From: "massimiliano.assante" Date: Mon, 28 Jan 2013 18:11:47 +0000 Subject: [PATCH] added the document workflow task involvment notification git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@68440 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../social/ApplicationNotificationsManager.java | 5 +++-- .../applicationsupportlayer/social/NotificationsManager.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java index cb38c20..489d361 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java @@ -291,7 +291,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen return getStoreInstance().saveNotification(not); } @Override - public boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName) { + public boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName, String assignedRoleName) { Notification not = new Notification( UUID.randomUUID().toString(), NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK, @@ -299,7 +299,8 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen documentWorkflowId, //the workflowid new Date(), "?oid="+documentWorkflowId, - "has actively involved you on the document workflow with name: " + escapeHtml(documentName) + " on VRE: " + aslSession.getScopeName(), + "has actively involved you on the document workflow with name: " + escapeHtml(documentName) + " " + + "and has assigned you the following role: " + assignedRoleName +". The VRE used was " + aslSession.getScopeName(), false, aslSession.getUsername(), aslSession.getUserFullName(), diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java index 743209f..84b2e2d 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java @@ -125,7 +125,7 @@ public interface NotificationsManager { * @param documentid the id of the document workflow * @return true if the notification is correctly delivered, false otherwise */ - boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName); + boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName, String assignedRole); // // DOCUMENT_WORKFLOW_VIEW, // /**