Class PortalUtils
- java.lang.Object
-
- org.gcube.portlets.widgets.ckan2zenodopublisher.server.PortalUtils
-
public class PortalUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PortalUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCurrentContext(javax.servlet.http.HttpServletRequest request, boolean setInThread)Retrieve the current scope by using the portal manager.static StringgetCurrentToken(javax.servlet.http.HttpServletRequest request, boolean setInThread)Retrieve the current token by using the portal manager.static org.gcube.vomanagement.usermanagement.model.GCubeUsergetCurrentUser(javax.servlet.http.HttpServletRequest request)Retrieve the current user by using the portal manager.
-
-
-
Method Detail
-
getCurrentContext
public static String getCurrentContext(javax.servlet.http.HttpServletRequest request, boolean setInThread)
Retrieve the current scope by using the portal manager.- Parameters:
request- the requestsetInThread- the set in thread- Returns:
- a GcubeUser object
-
getCurrentToken
public static String getCurrentToken(javax.servlet.http.HttpServletRequest request, boolean setInThread)
Retrieve the current token by using the portal manager.- Parameters:
request- the requestsetInThread- the set in thread- Returns:
- a GcubeUser object
-
getCurrentUser
public static org.gcube.vomanagement.usermanagement.model.GCubeUser getCurrentUser(javax.servlet.http.HttpServletRequest request)
Retrieve the current user by using the portal manager.- Parameters:
request- the request- Returns:
- a GcubeUser object
-
-