public class WsUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
static String |
NOTIFICATION_MANAGER |
static String |
NOTIFICATION_PORTLET_CLASS_ID |
static String |
NOTIFICATION_PRODUCER |
static String |
TEST_SCOPE |
static String |
TEST_USER |
static String |
TEST_USER_FULL_NAME |
static String |
USERNAME_ATTRIBUTE |
static String |
WORKSPACE_SCOPE_UTIL |
static String |
WORKSPACEBUILDER_ATTRIBUTE |
Constructor and Description |
---|
WsUtil() |
Modifier and Type | Method and Description |
---|---|
static org.gcube.application.framework.core.session.ASLSession |
getAslSession(javax.servlet.http.HttpSession httpSession) |
static GWTWorkspaceSharingBuilder |
getGWTWorkspaceSharingBuilder(javax.servlet.http.HttpSession httpSession) |
static org.gcube.applicationsupportlayer.social.NotificationsManager |
getNotificationManager(org.gcube.application.framework.core.session.ASLSession session) |
static NotificationsProducer |
getNotificationProducer(org.gcube.application.framework.core.session.ASLSession session) |
static ScopeUtility |
getScopeUtilFilter(javax.servlet.http.HttpSession httpSession) |
static String |
getUserId(javax.servlet.http.HttpSession httpSession) |
static List<VO> |
getVresFromInfrastructure(String infrastructure,
String startScopes) |
static org.gcube.common.homelibrary.home.workspace.Workspace |
getWorkspace(javax.servlet.http.HttpSession httpSession) |
static boolean |
isSessionExpired(javax.servlet.http.HttpSession httpSession) |
static boolean |
isVRE(org.gcube.application.framework.core.session.ASLSession session) |
static boolean |
isWithinPortal() |
public static final String USERNAME_ATTRIBUTE
public static final String WORKSPACEBUILDER_ATTRIBUTE
public static final String NOTIFICATION_MANAGER
public static final String NOTIFICATION_PRODUCER
public static final String WORKSPACE_SCOPE_UTIL
public static final String NOTIFICATION_PORTLET_CLASS_ID
public static final String TEST_SCOPE
public static final String TEST_USER
public static final String TEST_USER_FULL_NAME
protected static org.slf4j.Logger logger
public static boolean isWithinPortal()
public static org.gcube.application.framework.core.session.ASLSession getAslSession(javax.servlet.http.HttpSession httpSession)
public static boolean isSessionExpired(javax.servlet.http.HttpSession httpSession) throws Exception
httpSession
- Exception
public static List<VO> getVresFromInfrastructure(String infrastructure, String startScopes)
infrastructure
- the infrastructure namestartScopes
- the starting scopespublic static org.gcube.common.homelibrary.home.workspace.Workspace getWorkspace(javax.servlet.http.HttpSession httpSession) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException, org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
public static org.gcube.applicationsupportlayer.social.NotificationsManager getNotificationManager(org.gcube.application.framework.core.session.ASLSession session)
public static NotificationsProducer getNotificationProducer(org.gcube.application.framework.core.session.ASLSession session)
public static String getUserId(javax.servlet.http.HttpSession httpSession)
public static boolean isVRE(org.gcube.application.framework.core.session.ASLSession session)
public static ScopeUtility getScopeUtilFilter(javax.servlet.http.HttpSession httpSession)
public static GWTWorkspaceSharingBuilder getGWTWorkspaceSharingBuilder(javax.servlet.http.HttpSession httpSession)
session
- Copyright © 2015. All Rights Reserved.