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 a8cbb16..f0daa71 100644 --- a/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java +++ b/src/main/java/org/gcube/portal/databook/server/DBCassandraAstyanaxImpl.java @@ -1107,27 +1107,7 @@ public final class DBCassandraAstyanaxImpl implements DatabookStore { } return true; } - /** - * {@inheritDoc} - */ - @Override - public List getUnreadNotificationMessagesByUser(String userid) throws NotificationTypeNotFoundException, ColumnNameNotFoundException, NotificationIDNotFoundException { - ArrayList toReturn = new ArrayList(); - ArrayList notificationsIDs = getUnreadUserNotificationsIds(userid); - //need them in reverse order - for (int i = notificationsIDs.size()-1; i >= 0; i--) { - try{ - Notification not = readNotification(notificationsIDs.get(i)); - if(not.getType().equals(NotificationType.MESSAGE)) - toReturn.add(not); - }catch(Exception e){ - _log.error("Unable to read notification message with key " + notificationsIDs.get(i)); - } - } - - return toReturn; - } /** * {@inheritDoc} */ diff --git a/src/main/java/org/gcube/portal/databook/server/DatabookStore.java b/src/main/java/org/gcube/portal/databook/server/DatabookStore.java index 485a4e9..482b50b 100644 --- a/src/main/java/org/gcube/portal/databook/server/DatabookStore.java +++ b/src/main/java/org/gcube/portal/databook/server/DatabookStore.java @@ -236,14 +236,6 @@ public interface DatabookStore { * @throws ColumnNameNotFoundException */ List getUnreadNotificationsByUser(String userid) throws NotificationTypeNotFoundException, ColumnNameNotFoundException, NotificationIDNotFoundException; - /** - * return the not yet read notification messages - * @param userid user identifier - * @return a List of not yet read notifications for this user - * @throws NotificationTypeNotFoundException - * @throws ColumnNameNotFoundException - */ - List getUnreadNotificationMessagesByUser(String userid) throws NotificationTypeNotFoundException, ColumnNameNotFoundException, NotificationIDNotFoundException; /** *