public class GetWorkspaceUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
GetWorkspaceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.common.storagehubwrapper.server.StorageHubWrapper |
getStorageHubWrapper(javax.servlet.http.HttpServletRequest request,
String scopeGroupId,
String username)
Gets the storage hub wrapper.
|
static org.gcube.common.storagehubwrapper.server.tohl.Workspace |
getWorkspace(javax.servlet.http.HttpServletRequest request,
org.gcube.application.framework.core.session.ASLSession session)
Gets the workspace.
|
static boolean |
isWithinPortal()
Checks if is within portal.
|
public static org.gcube.common.storagehubwrapper.server.tohl.Workspace getWorkspace(javax.servlet.http.HttpServletRequest request,
org.gcube.application.framework.core.session.ASLSession session)
throws Exception
request - the requestsession - the sessionException - the exceptionpublic static boolean isWithinPortal()
public static org.gcube.common.storagehubwrapper.server.StorageHubWrapper getStorageHubWrapper(javax.servlet.http.HttpServletRequest request,
String scopeGroupId,
String username)
throws Exception
request - the requestscopeGroupId - the scope group id. If scopeGroupId is null the scope is
read by using the request else by using the scopeGroupIdusername - the usernameException - the exceptionCopyright © 2021. All Rights Reserved.