Class PortalUtils


  • public class PortalUtils
    extends Object
    • Constructor Detail

      • PortalUtils

        public PortalUtils()
    • 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 request
        setInThread - 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 request
        setInThread - 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