public final class AppSession
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
static AppSession |
create(GlobalKey loginKey,
java.lang.String signature,
java.lang.String timeZoneId)
The function create() creates a new session based on the parameters passed in.
|
static AppSession |
find(java.lang.String id)
The function find() receives a session id as a parameter and returns the instance of
AppSession for the session id.
|
java.lang.String |
getId() |
GlobalKey |
getLoginKey() |
java.lang.String |
getSignature() |
java.lang.String |
getTimeZoneId() |
static boolean |
isSessionValid(java.lang.String sessionId)
The function isSessionValid() receives a session id as a parameter.
|
static AppSession |
remove(java.lang.String id)
The function remove() removes a session identified by the parameter from the system
|
void |
run() |
void |
setEnd(java.util.Date end) |
public static AppSession find(java.lang.String id) throws NotFoundException
id
- A session id stringNotFoundException
public static boolean isSessionValid(java.lang.String sessionId)
sessionId
- The session id that will be checked by this function.public static AppSession create(GlobalKey loginKey, java.lang.String signature, java.lang.String timeZoneId)
loginKey
- signature
- The database nametimeZoneId
- The timezone identifier in GMT offset formatpublic static AppSession remove(java.lang.String id)
id
- The session id of the session that will be removed.public java.lang.String getId()
public GlobalKey getLoginKey()
public java.lang.String getSignature()
public java.lang.String getTimeZoneId()
public void setEnd(java.util.Date end) throws java.lang.Exception
end
- java.lang.Exception
- a serious problempublic void run()
run
in interface java.lang.Runnable
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.