public class WsUtil extends Object
| Constructor and Description |
|---|
WsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,GatewayRolesThredds> |
getScopesWithThreddsRolesForUser(org.gcube.vomanagement.usermanagement.model.GCubeUser user)
Gets the list of Scopes (Root-VO, VOs and VREs) for user and the Thredds
roles that user has in them.
|
static GatewayRolesThredds |
getThreddsRoleFor(org.gcube.vomanagement.usermanagement.model.GCubeUser user,
org.gcube.vomanagement.usermanagement.model.GCubeGroup scope)
Gets the (highest) thredds role for the user in the scope
|
static boolean |
isSessionExpired(javax.servlet.http.HttpServletRequest httpServletRequest)
Checks if is session expired.
|
static boolean |
isWithinPortal()
Checks if is within portal.
|
public static boolean isWithinPortal()
public static boolean isSessionExpired(javax.servlet.http.HttpServletRequest httpServletRequest)
throws Exception
httpServletRequest - the http servlet requestException - the exceptionpublic static Map<String,GatewayRolesThredds> getScopesWithThreddsRolesForUser(org.gcube.vomanagement.usermanagement.model.GCubeUser user)
user - the userpublic static GatewayRolesThredds getThreddsRoleFor(org.gcube.vomanagement.usermanagement.model.GCubeUser user, org.gcube.vomanagement.usermanagement.model.GCubeGroup scope)
user - the userscope - the vreCopyright © 2021. All Rights Reserved.