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
This commit is contained in:
parent
473d102feb
commit
b386735650
|
@ -291,7 +291,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
||||||
return getStoreInstance().saveNotification(not);
|
return getStoreInstance().saveNotification(not);
|
||||||
}
|
}
|
||||||
@Override
|
@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(
|
Notification not = new Notification(
|
||||||
UUID.randomUUID().toString(),
|
UUID.randomUUID().toString(),
|
||||||
NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK,
|
NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK,
|
||||||
|
@ -299,7 +299,8 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
||||||
documentWorkflowId, //the workflowid
|
documentWorkflowId, //the workflowid
|
||||||
new Date(),
|
new Date(),
|
||||||
"?oid="+documentWorkflowId,
|
"?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,
|
false,
|
||||||
aslSession.getUsername(),
|
aslSession.getUsername(),
|
||||||
aslSession.getUserFullName(),
|
aslSession.getUserFullName(),
|
||||||
|
|
|
@ -125,7 +125,7 @@ public interface NotificationsManager {
|
||||||
* @param documentid the id of the document workflow
|
* @param documentid the id of the document workflow
|
||||||
* @return true if the notification is correctly delivered, false otherwise
|
* @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,
|
// DOCUMENT_WORKFLOW_VIEW,
|
||||||
// /**
|
// /**
|
||||||
|
|
Loading…
Reference in New Issue