|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.framework.core.SessionBean
public class SessionBean
The SessionBean wraps a Session
object and
exposes it to the scripting framework.
Constructor Summary | |
---|---|
SessionBean(Session session)
Creates a new SessionBean around a Session object. |
Method Summary | |
---|---|
java.lang.String |
get_id()
Returns the unique identifier for a session object (session cookie). |
java.lang.String |
getCookie()
Returns the unique identifier for a session object (session cookie). |
INode |
getData()
Get the cache/data node for this session. |
java.util.Date |
getLastActive()
Returns the time this session was last touched. |
java.util.Date |
getLastModified()
Gets the date at which the session was created or a login or logout was performed the last time. |
java.lang.String |
getMessage()
Return the message that is to be displayed upon the next request within this session. |
java.util.Date |
getOnSince()
Returns a date object representing the time a user's session was started. |
UploadStatus |
getUploadStatus(java.lang.String uploadId)
Get an upload status for the current user session. |
INode |
getUser()
Gets the user object for this session. |
java.util.Date |
lastActive()
Returns the time this session was last touched. |
void |
login(INode userNode)
Directly associates the session with a user object without requiring a username/password pair. |
boolean |
login(java.lang.String username,
java.lang.String password)
Attempts to log in a user with the given username/password credentials. |
void |
logout()
Disassociate this session from any user object it may have been associated with. |
java.util.Date |
onSince()
Returns the time this session was created. |
void |
setLastModified(java.util.Date date)
Sets the date at which the session was created or a login or logout was performed the last time. |
void |
setMessage(java.lang.String msg)
Set a message to be displayed to this session's user. |
java.lang.String |
toString()
|
void |
touch()
Touching the session marks it as active, avoiding session timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SessionBean(Session session)
session
- ...Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean login(java.lang.String username, java.lang.String password)
username
- the usernamepassword
- the password
public void login(INode userNode)
userNode
- the HopObject node representing the user.public void logout()
public void touch()
public java.util.Date lastActive()
public java.util.Date onSince()
public INode getData()
public INode getUser()
public java.lang.String get_id()
public java.lang.String getCookie()
public java.util.Date getLastActive()
public java.util.Date getOnSince()
public java.util.Date getLastModified()
public void setLastModified(java.util.Date date)
date
- ...public java.lang.String getMessage()
public void setMessage(java.lang.String msg)
msg
- public UploadStatus getUploadStatus(java.lang.String uploadId)
uploadId
- the upload id
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |