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 a77b452..8b41ceb 100644 --- a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java +++ b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java @@ -2419,27 +2419,6 @@ 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_FORWARD_STEP_COMPLETED_OWNER") == 0) { - return NotificationType.DOCUMENT_WORKFLOW_FORWARD_STEP_COMPLETED_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("DOCUMENT_WORKFLOW_USER_FORWARD_TO_OWNER") == 0) { - return NotificationType.DOCUMENT_WORKFLOW_USER_FORWARD_TO_OWNER; - } - else if (type.compareTo("DOCUMENT_WORKFLOW_FIRST_STEP_REQUEST_INVOLVMENT") == 0) { - return NotificationType.DOCUMENT_WORKFLOW_FIRST_STEP_REQUEST_INVOLVMENT; - } else if (type.compareTo("TDM_TAB_RESOURCE_SHARE") == 0) { return NotificationType.TDM_TAB_RESOURCE_SHARE; } diff --git a/src/main/java/org/gcube/portal/databook/shared/NotificationType.java b/src/main/java/org/gcube/portal/databook/shared/NotificationType.java index 7f59ba8..df1e8dd 100644 --- a/src/main/java/org/gcube/portal/databook/shared/NotificationType.java +++ b/src/main/java/org/gcube/portal/databook/shared/NotificationType.java @@ -113,40 +113,6 @@ public enum NotificationType { * use to notify a user he got a job completed not ok */ JOB_COMPLETED_NOK, - /** - * use to notify a document workflow owner that someone - * has edited a document involved in a worflow he created - */ - DOCUMENT_WORKFLOW_EDIT, - /** - * use to notify a document workflow owner that someone - * has viewed a document involved in a worflow he created - */ - DOCUMENT_WORKFLOW_VIEW, - /** - * 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, - /** - * use to notify a document workflow user that he was involved into a new Document Workflow - * and he is requested to do a task - */ - DOCUMENT_WORKFLOW_FIRST_STEP_REQUEST_INVOLVMENT, - /** - * 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 */