|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserSession
Interface UserSession represents an user that login to the report server.
| Method Summary | |
|---|---|
void |
addExpiryListener(ExpiryListener l)
Adds a expiry listener to the session. |
long |
getCreationTime()
Return the creation time of the session. |
ExpiryListener |
getExpiryListener(int index)
Gets expiry listener from the session. |
int |
getExpiryListenerCount()
Gets expiry listener count. |
java.lang.Object |
getExternalObject()
Deprecated. replaced by getValue(String name). |
java.lang.String |
getID()
Return the session ID. |
long |
getLastAccessTime()
Return the last access time of the session. |
int |
getMaxInactiveInterval()
Return the max inactive interval of the session. |
java.lang.String |
getRealm()
Return the realm that the user belong to. |
java.lang.String |
getUserID()
Return the user ID. |
java.lang.Object |
getValue(java.lang.String name)
Returns the object bound with the specified name in this session or null if no object of that name exists. |
int |
indexOf(ExpiryListener l)
Gets index of a expiry listener in expiry listener array. |
void |
invalidate()
invalidate the user session. |
boolean |
isExternalAuthorized()
Test if this user session is authorized by an external authenticator. |
boolean |
isTimeOut()
Test if this user session expired. |
boolean |
isValid()
Test if the session is valid. |
void |
putValue(java.lang.String name,
java.lang.Object value)
Binds an object to this session, using the name specified. |
void |
refreshLastAccessTime()
Refresh the last access time of the session. |
void |
removeExpiryListener(ExpiryListener l)
Removes a expiry listener from the session. |
void |
removeValue(java.lang.String name)
Removes the object bound with the specified name from this session. |
void |
setExternalObject(java.lang.Object extObj)
Deprecated. replaced by putValue(String name, Object value). |
void |
setMaxInactiveInterval(int interval)
Set the max inactive interval of the session. |
| Method Detail |
|---|
java.lang.String getID()
java.lang.String getRealm()
java.lang.String getUserID()
boolean isExternalAuthorized()
java.lang.Object getExternalObject()
getValue(String name).
void setExternalObject(java.lang.Object extObj)
putValue(String name, Object value).
extObj - the external object.java.lang.Object getValue(java.lang.String name)
name - a string specifying the name of the object
void putValue(java.lang.String name,
java.lang.Object value)
name - the name to which the object is bound;
cannot be nullvalue - the object to be bound; cannot be nullvoid removeValue(java.lang.String name)
name - the name of the object to
remove from this sessionboolean isValid()
void invalidate()
long getCreationTime()
long getLastAccessTime()
void refreshLastAccessTime()
throws InvalidUserSessionException
InvalidUserSessionException - if a InvalidUserSessionException occurs.int getMaxInactiveInterval()
void setMaxInactiveInterval(int interval)
interval - the max inactive interval of the session in milliseconds.void addExpiryListener(ExpiryListener l)
l - the listener that will be added.void removeExpiryListener(ExpiryListener l)
l - the listener that will be removed.int getExpiryListenerCount()
ExpiryListener getExpiryListener(int index)
index - the index of expiry listener array.
int indexOf(ExpiryListener l)
l - the listener.
boolean isTimeOut()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||