From c4d4db0e7703951c7f57ef0731022739bb546ab1 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 28 Jan 2013 01:01:02 +0000 Subject: [PATCH] added the document workflow edit and view notifications git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@68415 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../databook/server/DBCassandraAstyanaxImpl.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java index 0219765..f863b56 100644 --- a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java +++ b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java @@ -1248,6 +1248,21 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore { else if (type.compareTo("JOB_COMPLETED_OK") == 0) { return NotificationType.JOB_COMPLETED_OK; } + else if (type.compareTo("DOCUMENT_WORKFLOW_EDIT") == 0) { + return NotificationType.DOCUMENT_WORKFLOW_EDIT; + } + else if (type.compareTo("DOCUMENT_WORKFLOW_VIEW") == 0) { + return NotificationType.DOCUMENT_WORKFLOW_VIEW; + } + else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER") == 0) { + return NotificationType.DOCUMENT_WORKFLOW_STEP_FORWARD_OWNER; + } + else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_FORWARD_PEER") == 0) { + return NotificationType.DOCUMENT_WORKFLOW_STEP_FORWARD_PEER; + } + else if (type.compareTo("DOCUMENT_WORKFLOW_STEP_REQUEST_TASK") == 0) { + return NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK; + } else if (type.compareTo("GENERIC") == 0) { return NotificationType.GENERIC; }