|
|
|
@ -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<String> 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<String> 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<String> 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 {
|
|
|
|
|