diff --git a/.classpath b/.classpath index 2f7a7d9..b6cd11d 100644 --- a/.classpath +++ b/.classpath @@ -22,7 +22,7 @@ - + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 443e085..b257af7 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,6 +1,6 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error diff --git a/pom.xml b/pom.xml index c452a3c..c356379 100644 --- a/pom.xml +++ b/pom.xml @@ -204,7 +204,7 @@ provided - + diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/social/TDMNotifications.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/social/TDMNotifications.java index 3cd2998..9c70312 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/social/TDMNotifications.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/social/TDMNotifications.java @@ -1,14 +1,11 @@ package org.gcube.portlets.user.td.gwtservice.server.social; -import java.util.List; - import javax.servlet.http.HttpServletRequest; import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager; import org.gcube.applicationsupportlayer.social.NotificationsManager; import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingSite; import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingUser; -import org.gcube.common.homelibrary.util.WorkspaceUtil; import org.gcube.portal.databook.shared.NotificationType; import org.gcube.portlets.user.td.gwtservice.server.util.ServiceCredentials; import org.gcube.portlets.user.td.gwtservice.shared.share.Contacts; @@ -122,7 +119,7 @@ public class TDMNotifications extends Thread { for (Contacts contact : shareTabularResource.getContacts()) { if (contact.isGroup()) { - try { + /*try { List members = WorkspaceUtil.getMembersByGroup(contact.getLogin()); for (String member : members) { try { @@ -143,7 +140,7 @@ public class TDMNotifications extends Thread { logger.error("Error in the notification(No members found for group " + contact.getLogin() + "): " + e.getLocalizedMessage()); e.printStackTrace(); - } + }*/ } else { try { @@ -169,7 +166,7 @@ public class TDMNotifications extends Thread { for (Contacts contact : shareRule.getContacts()) { if (contact.isGroup()) { - try { + /*try { List members = WorkspaceUtil.getMembersByGroup(contact.getLogin()); for (String member : members) { try { @@ -189,7 +186,7 @@ public class TDMNotifications extends Thread { logger.error("Error in the notification(No members found for group " + contact.getLogin() + "): " + e.getLocalizedMessage()); e.printStackTrace(); - } + }*/ } else { try { @@ -214,7 +211,7 @@ public class TDMNotifications extends Thread { for (Contacts contact : shareTemplate.getContacts()) { if (contact.isGroup()) { - + /* try { List members = WorkspaceUtil.getMembersByGroup(contact.getLogin()); for (String member : members) { @@ -235,7 +232,7 @@ public class TDMNotifications extends Thread { logger.error("Error in the notification(No members found for group " + contact.getLogin() + "): " + e.getLocalizedMessage()); e.printStackTrace(); - } + }*/ } else { try {