added support for catalogue notifications
This commit is contained in:
parent
b9b918d7ce
commit
4bcd8abdd0
|
@ -2527,6 +2527,21 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore {
|
|||
else if (type.compareTo("TDM_TEMPLATE_SHARE") == 0) {
|
||||
return NotificationType.TDM_TEMPLATE_SHARE;
|
||||
}
|
||||
else if (type.compareTo("CAT_ITEM_SUBMITTED") == 0) {
|
||||
return NotificationType.CAT_ITEM_SUBMITTED;
|
||||
}
|
||||
else if (type.compareTo("CAT_ITEM_REJECTED") == 0) {
|
||||
return NotificationType.CAT_ITEM_REJECTED;
|
||||
}
|
||||
else if (type.compareTo("CAT_ITEM_PUBLISHED") == 0) {
|
||||
return NotificationType.CAT_ITEM_PUBLISHED;
|
||||
}
|
||||
else if (type.compareTo("CAT_ITEM_UPDATED") == 0) {
|
||||
return NotificationType.CAT_ITEM_UPDATED;
|
||||
}
|
||||
else if (type.compareTo("CAT_ITEM_DELETE") == 0) {
|
||||
return NotificationType.CAT_ITEM_DELETE;
|
||||
}
|
||||
else if (type.compareTo("GENERIC") == 0) {
|
||||
return NotificationType.GENERIC;
|
||||
}
|
||||
|
|
|
@ -154,6 +154,26 @@ public enum NotificationType {
|
|||
*/
|
||||
@Deprecated
|
||||
DOCUMENT_WORKFLOW_STEP_FORWARD_PEER,
|
||||
/**
|
||||
* catalogue, use to notify someone submits an item for consideration
|
||||
*/
|
||||
CAT_ITEM_SUBMITTED,
|
||||
/**
|
||||
* catalogue, use to notify someone rejected a submitted item
|
||||
*/
|
||||
CAT_ITEM_REJECTED,
|
||||
/**
|
||||
* catalogue, use to notify someone published an item
|
||||
*/
|
||||
CAT_ITEM_PUBLISHED,
|
||||
/**
|
||||
* catalogue, use to notify someone updated an item
|
||||
*/
|
||||
CAT_ITEM_UPDATED,
|
||||
/**
|
||||
* catalogue, use to notify someone removed an item
|
||||
*/
|
||||
CAT_ITEM_DELETE,
|
||||
/**
|
||||
* generic notification
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue