Added comment to debug First Name
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@131024 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fe7800faba
commit
1decd8c40e
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
|||
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>workspace-tree-widget</artifactId>
|
||||
<version>6.13.0-SNAPSHOT</version>
|
||||
<version>6.13.1-SNAPSHOT</version>
|
||||
<name>gCube Workspace Tree Widget</name>
|
||||
<description>
|
||||
gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace
|
||||
|
|
|
@ -42,7 +42,6 @@ import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashFolder;
|
|||
import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashItem;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.datacatalogue.ckanutillibrary.CKanUtils;
|
||||
import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsImpl;
|
||||
import org.gcube.datacatalogue.ckanutillibrary.CkanUtilsFactory;
|
||||
import org.gcube.portlets.user.workspace.client.ConstantsExplorer;
|
||||
import org.gcube.portlets.user.workspace.client.interfaces.GXTCategoryItemInterface;
|
||||
|
@ -2673,6 +2672,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
try {
|
||||
LiferayUserManager l = new LiferayUserManager();
|
||||
GCubeUser user = l.getUserByUsername(username);
|
||||
workspaceLogger.info("My login first name is: "+user.getFirstName());
|
||||
firstName = user.getFirstName();
|
||||
lastName = user.getLastName();
|
||||
email = user.getEmail();
|
||||
|
@ -3411,7 +3411,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
ASLSession asl = WsUtil.getAslSession(httpSession);
|
||||
CKanUtils instance = null;
|
||||
try{
|
||||
String scopeInWhichDiscover = (scope != null && !scope.isEmpty()) ? scope : asl.getScope();
|
||||
String scopeInWhichDiscover = scope != null && !scope.isEmpty() ? scope : asl.getScope();
|
||||
workspaceLogger.debug("Discovering ckan instance into scope " + scopeInWhichDiscover);
|
||||
instance = CkanUtilsFactory.getFactory().getUtilsPerScope(scopeInWhichDiscover);
|
||||
}catch(Exception e){
|
||||
|
|
|
@ -241,6 +241,11 @@ public class WsUtil {
|
|||
}
|
||||
|
||||
return notifMng;
|
||||
|
||||
|
||||
// SocialNetworkingSite site = new SocialNetworkingSite(request);
|
||||
// SocialNetworkingUser curser = new SocialNetworkingUser(session.getUsername(), session.getUserEmailAddress(), session.getUserFullName(), session.getUserAvatarId());
|
||||
// return new ApplicationNotificationsManager(site, session.getScope(), curser, NOTIFICATION_PORTLET_CLASS_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -262,6 +267,8 @@ public class WsUtil {
|
|||
}
|
||||
|
||||
return notifProducer;
|
||||
|
||||
//return new NotificationsProducer(session, request);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue