removed themeDisplay set in shared session (as it is not working anymore)

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/custom-portal-handler@126894 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-04-08 13:01:38 +00:00
parent d3fcaf9e60
commit 310fb934bf
1 changed files with 1 additions and 3 deletions

View File

@ -65,15 +65,13 @@ public class ScopeHelper {
_log.info("SETTING CONTEXT .. ");
String scopeToSet = "";
long userid = Long.parseLong(request.getRemoteUser());
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
request.getPortletSession().setAttribute(WebKeys.THEME_DISPLAY, themeDisplay, PortletSession.APPLICATION_SCOPE);
User user = null;
GCubeGroup currentGroup = null;
try {
user = UserLocalServiceUtil.getUser(userid);
GroupManager gm = new LiferayGroupManager();
long groupId = themeDisplay.getLayout().getGroup().getGroupId();
currentGroup = gm.getGroup(groupId);