public class WsUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FOLDERIMPORTER_ATTRIBUTE |
protected static org.apache.log4j.Logger |
logger |
static String |
METADATACONVERTER_ATTRIBUTE |
static String |
NOTIFICATION_MANAGER |
static String |
NOTIFICATION_PORTLET_CLASS_ID |
static String |
NOTIFICATION_PRODUCER |
static String |
PROPERTY_SPECIAL_FOLDER |
static String |
TEST_SCOPE |
static String |
TEST_USER |
static String |
TEST_USER_FULL_NAME |
static String |
URI_RESOLVER_SERVICE |
static String |
URL_SHORTENER_SERVICE |
static String |
USERNAME_ATTRIBUTE |
static String |
WORKSPACE_EVENT_COLLECTOR_ATTRIBUTE |
static String |
WORKSPACE_SCOPE_UTIL |
static String |
WORKSPACEBUILDER_ATTRIBUTE |
static String |
WS_RUN_IN_TEST_MODE |
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 GWTWorkspaceBuilder |
getGWTWorkspaceBuilder(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 PropertySpecialFolderReader |
getPropertySpecialFolderReader(javax.servlet.http.HttpSession httpSession,
String pathProperty) |
static ScopeUtilFilter |
getScopeUtilFilter(javax.servlet.http.HttpSession httpSession) |
static UriResolverReaderParameterForResolverIndex |
getUriResolver(javax.servlet.http.HttpSession httpSession) |
static UrlShortener |
getUrlShortener(javax.servlet.http.HttpSession httpSession) |
static String |
getUserId(javax.servlet.http.HttpSession httpSession) |
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 FOLDERIMPORTER_ATTRIBUTE
public static final String METADATACONVERTER_ATTRIBUTE
public static final String WORKSPACE_EVENT_COLLECTOR_ATTRIBUTE
public static final String WORKSPACEBUILDER_ATTRIBUTE
public static final String NOTIFICATION_MANAGER
public static final String NOTIFICATION_PRODUCER
public static final String WS_RUN_IN_TEST_MODE
public static final String WORKSPACE_SCOPE_UTIL
public static final String URL_SHORTENER_SERVICE
public static final String URI_RESOLVER_SERVICE
public static final String PROPERTY_SPECIAL_FOLDER
public static final String NOTIFICATION_PORTLET_CLASS_ID
public static final String TEST_SCOPE
public static String TEST_USER
public static String TEST_USER_FULL_NAME
protected static org.apache.log4j.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 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 GWTWorkspaceBuilder getGWTWorkspaceBuilder(javax.servlet.http.HttpSession httpSession)
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 ScopeUtilFilter getScopeUtilFilter(javax.servlet.http.HttpSession httpSession)
public static UrlShortener getUrlShortener(javax.servlet.http.HttpSession httpSession)
session
- public static UriResolverReaderParameterForResolverIndex getUriResolver(javax.servlet.http.HttpSession httpSession)
session
- public static PropertySpecialFolderReader getPropertySpecialFolderReader(javax.servlet.http.HttpSession httpSession, String pathProperty)
session
- Copyright © 2016. All Rights Reserved.