diff --git a/emc-metalnx-services/src/main/java/com/emc/metalnx/services/notification/NotificationServiceImpl.java b/emc-metalnx-services/src/main/java/com/emc/metalnx/services/notification/NotificationServiceImpl.java index 451f33c..82ff544 100644 --- a/emc-metalnx-services/src/main/java/com/emc/metalnx/services/notification/NotificationServiceImpl.java +++ b/emc-metalnx-services/src/main/java/com/emc/metalnx/services/notification/NotificationServiceImpl.java @@ -36,12 +36,6 @@ public List getAllNotification(String userId) { return result; } - @Override - public List getNotificationById(String userId, String notificationId) { - // TODO Auto-generated method stub - return null; - } - @Override public Map getUnseenCounts(String userId) { Map result = new HashMap<>(); @@ -51,12 +45,11 @@ public Map getUnseenCounts(String userId) { // TODO Auto-generated catch block e.printStackTrace(); } - return result; } @Override - public Map deleteNotifications(List uuids) { + public Map markToSeen(List uuids) { /* * NOTE - Conversion should be kept in the services-- this should be the list of * String/UUIDs. and the services should convert to any supported or desired @@ -70,17 +63,17 @@ public Map deleteNotifications(List uuids) { UUID temp = UUID.fromString(uuid); uuidList.addUuidsItem(temp); } - result = apiInstance.deleteNotification(uuidList); - } catch (ApiException e) { - // TODO Auto-generated catch block + result = apiInstance.markSeen(uuidList); + } catch ( + + ApiException e) { e.printStackTrace(); } return result; - } @Override - public Map markToSeen(List uuids) { + public Map deleteNotifications(List uuids) { /* * NOTE - Conversion should be kept in the services-- this should be the list of * String/UUIDs. and the services should convert to any supported or desired @@ -94,12 +87,18 @@ public Map markToSeen(List uuids) { UUID temp = UUID.fromString(uuid); uuidList.addUuidsItem(temp); } - result = apiInstance.markSeen(uuidList); - } catch ( - - ApiException e) { + result = apiInstance.deleteNotification(uuidList); + } catch (ApiException e) { + // TODO Auto-generated catch block e.printStackTrace(); } return result; } + + @Override + public List getNotificationById(String userId, String notificationId) { + // TODO Auto-generated method stub + // To be used if needed + return null; + } }