public class ScopeUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
static String |
TEST_SCOPE |
static String |
TEST_USER |
static String |
TEST_USER_FULL_NAME |
static String |
USERNAME_ATTRIBUTE |
Constructor and Description |
---|
ScopeUtil() |
Modifier and Type | Method and Description |
---|---|
static org.gcube.application.framework.core.session.ASLSession |
getAslSession(javax.servlet.http.HttpSession httpSession)
Gets the asl session.
|
static DaoGcubeBuilderReportDBManager<Release> |
getDbMangerForRelease(org.gcube.application.framework.core.session.ASLSession session,
javax.persistence.EntityManagerFactory factory)
Gets the db manger for release.
|
static boolean |
isSessionExpired(javax.servlet.http.HttpSession httpSession)
Checks if is session expired.
|
static boolean |
isWithinPortal()
Checks if is within portal.
|
public static final String USERNAME_ATTRIBUTE
public static final String TEST_SCOPE
public static String TEST_USER
public static 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)
httpSession
- the http sessionpublic static boolean isSessionExpired(javax.servlet.http.HttpSession httpSession) throws Exception
httpSession
- the http sessionException
- the exceptionpublic static DaoGcubeBuilderReportDBManager<Release> getDbMangerForRelease(org.gcube.application.framework.core.session.ASLSession session, javax.persistence.EntityManagerFactory factory)
session
- the sessionfactory
- the factoryCopyright © 2016. All Rights Reserved.