added new notification Types

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@68502 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-01-29 15:24:28 +00:00
parent c4d4db0e77
commit a7dcae15ac
3 changed files with 1108 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1254,8 +1254,8 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
else if (type.compareTo("DOCUMENT_WORKFLOW_VIEW") == 0) { else if (type.compareTo("DOCUMENT_WORKFLOW_VIEW") == 0) {
return NotificationType.DOCUMENT_WORKFLOW_VIEW; return NotificationType.DOCUMENT_WORKFLOW_VIEW;
} }
else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER") == 0) { else if (type.compareTo("DOCUMENT_WORKFLOW_FORWARD_STEP_COMPLETED_OWNER") == 0) {
return NotificationType.DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER; return NotificationType.DOCUMENT_WORKFLOW_FORWARD_STEP_COMPLETED_OWNER;
} }
else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_FORWARD_PEER") == 0) { else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_FORWARD_PEER") == 0) {
return NotificationType.DOCUMENT_WORKFLOW_STEP_FORWARD_PEER; return NotificationType.DOCUMENT_WORKFLOW_STEP_FORWARD_PEER;
@ -1263,6 +1263,9 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_REQUEST_TASK") == 0) { else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_REQUEST_TASK") == 0) {
return NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK; return NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK;
} }
else if (type.compareTo("DOCUMENT_WORKFLOW_USER_FORWARD_TO_OWNER") == 0) {
return NotificationType.DOCUMENT_WORKFLOW_USER_FORWARD_TO_OWNER;
}
else if (type.compareTo("GENERIC") == 0) { else if (type.compareTo("GENERIC") == 0) {
return NotificationType.GENERIC; return NotificationType.GENERIC;
} }

View File

@ -69,21 +69,25 @@ public enum NotificationType {
* has viewed a document involved in a worflow he created * has viewed a document involved in a worflow he created
*/ */
DOCUMENT_WORKFLOW_VIEW, DOCUMENT_WORKFLOW_VIEW,
/**
* use to notify a document workflow owner that someone
* has forwarded to another step a document worflow he created
*/
DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER,
/**
* 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) * 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 * that forwarded to a step where he is requested to do a task
*/ */
DOCUMENT_WORKFLOW_STEP_REQUEST_TASK, DOCUMENT_WORKFLOW_STEP_REQUEST_TASK,
/**
* use to notify a document workflow owner that a user performed a forward action to another step a document worflow he created
*/
DOCUMENT_WORKFLOW_USER_FORWARD_TO_OWNER,
/**
* use to notify a document workflow owner that someone
* forwarded and the workflow moved to another step a document worflow he created
*/
DOCUMENT_WORKFLOW_FORWARD_STEP_COMPLETED_OWNER,
/**
* use to notify a document workflow peer (user that in the same step has your same role)
* that someone performed a forward action to another step in a document worflow he is involved into
*/
DOCUMENT_WORKFLOW_STEP_FORWARD_PEER,
/** /**
* generic notification * generic notification
*/ */