|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.shared.BaseService
edu.ucsb.nceas.metacat.service.SessionService
public class SessionService
| Field Summary |
|---|
| Fields inherited from class edu.ucsb.nceas.metacat.shared.BaseService |
|---|
_serviceName |
| Method Summary | |
|---|---|
void |
doRefresh()
|
static SessionService |
getInstance()
Get the single instance of SessionService. |
static SessionData |
getPublicSession()
Get the public session from the session hash table. |
static SessionData |
getRegisteredSession(java.lang.String sessionId)
Get a registered session from the session hash table. |
static boolean |
isSessionRegistered(java.lang.String sessionId)
Check if a session is registered in the session hash table. |
boolean |
refreshable()
|
static void |
registerSession(SessionData sessionData)
Register a session in the session hash table. |
static void |
registerSession(java.lang.String sessionId,
java.lang.String userName,
java.lang.String[] groupNames,
java.lang.String password,
java.lang.String name)
Register a session in the session hash table. |
void |
stop()
|
static void |
touchSession(java.lang.String sessionId)
Keep a session active by updating its last accessed time. |
static void |
unRegisterAllSessions()
Unregister all sessions from the session hash table except the public session. |
static void |
unRegisterSession(java.lang.String sessionId)
Unregister a session from the session hash table. |
static void |
validateSession(java.io.PrintWriter out,
javax.servlet.http.HttpServletResponse response,
java.lang.String sessionId)
Check if a session is registered in the session hash table. |
static boolean |
validateSession(java.lang.String sessionId)
Check if a session is registered in the session hash table. |
| Methods inherited from class edu.ucsb.nceas.metacat.shared.BaseService |
|---|
refresh |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SessionService getInstance()
throws ServiceException
ServiceExceptionpublic boolean refreshable()
refreshable in class BaseService
public void doRefresh()
throws ServiceException
doRefresh in class BaseServiceServiceException
public void stop()
throws ServiceException
stop in class BaseServiceServiceException
public static void registerSession(java.lang.String sessionId,
java.lang.String userName,
java.lang.String[] groupNames,
java.lang.String password,
java.lang.String name)
throws ServiceException
sessionId - the ID of the session to registeruserName - the user name of the sessiongroupNames - the group names for the sessionpassword - the password for the session
ServiceException
public static void registerSession(SessionData sessionData)
throws ServiceException
sessionData - the session data object to add to the session hash
ServiceExceptionpublic static void unRegisterSession(java.lang.String sessionId)
sessionId - the id of the session to remove.public static void unRegisterAllSessions()
sessionId - the id of the session to remove.public static boolean isSessionRegistered(java.lang.String sessionId)
sessionId - the id of the session to look for.
public static void validateSession(java.io.PrintWriter out,
javax.servlet.http.HttpServletResponse response,
java.lang.String sessionId)
out - the output stream to write to.sessionId - the id of the session to look for.public static boolean validateSession(java.lang.String sessionId)
sessionId - the id of the session to look for.public static SessionData getRegisteredSession(java.lang.String sessionId)
sessionId - the id of the session to retrieve.public static SessionData getPublicSession()
public static void touchSession(java.lang.String sessionId)
sessionId - the id of the session to update.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||