added the document workflow task involvment notification
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@68439 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
806ba670d2
commit
473d102feb
|
@ -290,6 +290,22 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
||||||
aslSession.getUserAvatarId());
|
aslSession.getUserAvatarId());
|
||||||
return getStoreInstance().saveNotification(not);
|
return getStoreInstance().saveNotification(not);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName) {
|
||||||
|
Notification not = new Notification(
|
||||||
|
UUID.randomUUID().toString(),
|
||||||
|
NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK,
|
||||||
|
userIdToNotify, //user no notify
|
||||||
|
documentWorkflowId, //the workflowid
|
||||||
|
new Date(),
|
||||||
|
"?oid="+documentWorkflowId,
|
||||||
|
"has actively involved you on the document workflow with name: " + escapeHtml(documentName) + " on VRE: " + aslSession.getScopeName(),
|
||||||
|
false,
|
||||||
|
aslSession.getUsername(),
|
||||||
|
aslSession.getUserFullName(),
|
||||||
|
aslSession.getUserAvatarId());
|
||||||
|
return getStoreInstance().saveNotification(not);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -105,8 +105,7 @@ public interface NotificationsManager {
|
||||||
* @param userIdToNotify the user you want to notify
|
* @param userIdToNotify the user you want to notify
|
||||||
* @param documentName the document title
|
* @param documentName the document title
|
||||||
* @param documentid the id of the document workflow
|
* @param documentid the id of the document workflow
|
||||||
* @param documentName the documentName
|
* @return true if the notification is correctly delivered, false otherwise
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
boolean notifyDocumentWorkflowView(String userIdToNotify, String documentWorkflowId, String documentName);
|
boolean notifyDocumentWorkflowView(String userIdToNotify, String documentWorkflowId, String documentName);
|
||||||
/**
|
/**
|
||||||
|
@ -115,26 +114,34 @@ public interface NotificationsManager {
|
||||||
* @param userIdToNotify the user you want to notify
|
* @param userIdToNotify the user you want to notify
|
||||||
* @param documentName the document title
|
* @param documentName the document title
|
||||||
* @param documentid the id of the document workflow
|
* @param documentid the id of the document workflow
|
||||||
* @param documentName the documentName
|
* @return true if the notification is correctly delivered, false otherwise
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
boolean notifyDocumentWorkflowUpdate(String userIdToNotify, String documentWorkflowId, String documentName);
|
boolean notifyDocumentWorkflowUpdate(String userIdToNotify, String documentWorkflowId, String documentName);
|
||||||
//
|
/**
|
||||||
// DOCUMENT_WORKFLOW_VIEW,
|
* use to notify a document workflow user (user that in the same document workflow)
|
||||||
// /**
|
* that he is requested to do a task
|
||||||
// * use to notify a document workflow owner that someone
|
* @param userIdToNotify the user you want to notify
|
||||||
// * has forwarded to another step a document worflow he created
|
* @param documentName the document title
|
||||||
// */
|
* @param documentid the id of the document workflow
|
||||||
// DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER,
|
* @return true if the notification is correctly delivered, false otherwise
|
||||||
// /**
|
*/
|
||||||
// * use to notify a document workflow peer (user that in the same step has your same role)
|
boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName);
|
||||||
// * that someone has forwarded to another step a document worflow he was involved into
|
//
|
||||||
// */
|
// DOCUMENT_WORKFLOW_VIEW,
|
||||||
// DOCUMENT_WORKFLOW_STEP_FORWARD_PEER,
|
// /**
|
||||||
// /**
|
// * use to notify a document workflow owner that someone
|
||||||
// * use to notify a document workflow user (user that in the same document workflow)
|
// * has forwarded to another step a document worflow he created
|
||||||
// * that forwarded to a step where he is requested to do a task
|
// */
|
||||||
// */
|
// DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER,
|
||||||
// DOCUMENT_WORKFLOW_STEP_REQUEST_TASK,
|
// /**
|
||||||
|
// * use to notify a document workflow peer (user that in the same step has your same role)
|
||||||
|
// * that someone has forwarded to another step a document worflow he was involved into
|
||||||
|
// */
|
||||||
|
// DOCUMENT_WORKFLOW_STEP_FORWARD_PEER,
|
||||||
|
// /**
|
||||||
|
// * use to notify a document workflow user (user that in the same document workflow)
|
||||||
|
// * that forwarded to a step where he is requested to do a task
|
||||||
|
// */
|
||||||
|
// DOCUMENT_WORKFLOW_STEP_REQUEST_TASK,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue