|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserSession
Interface UserSession represents a user that logs in to the report server.
| Method Summary | |
|---|---|
void |
addExpiryListener(ExpiryListener l)
Deprecated. As of v13 replaced by UserSessionManager.addSessionExpiryListener(ExpiryListener). |
long |
getCreationTime()
Returns the creation time of the session. |
ExpiryListener |
getExpiryListener(int index)
Deprecated. As of v13, no replace. |
int |
getExpiryListenerCount()
Deprecated. As of v13, no replace. |
java.lang.Object |
getExternalObject()
Deprecated. replaced by getValue(String name). |
java.lang.String |
getID()
Returns the session ID. |
long |
getLastAccessTime()
Returns the last accessed time of the session. |
int |
getMaxInactiveInterval()
Returns the maximum inactive interval of the session. |
java.lang.String |
getRealm()
Returns the realm that the user belongs to. |
java.lang.String |
getUserID()
Returns 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)
Deprecated. As of v13, no replace. |
void |
invalidate()
Invalidates the user session. |
boolean |
isExternalAuthorized()
Checks if this user session is authorized by an external authenticator. |
boolean |
isTimeOut()
Checks if this user session is expired. |
boolean |
isValid()
Checks if the session is valid. |
void |
putValue(java.lang.String name,
java.lang.Object value)
Binds an object to this session, using the specified name. |
void |
refreshLastAccessTime()
Refreshes the last accessed time of the session. |
void |
removeExpiryListener(ExpiryListener l)
Deprecated. As of v13 replaced by UserSessionManager.removeSessionExpiryListener(ExpiryListener). |
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)
Sets the maximum 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, which
cannot be nullvalue - the object to be bound, which must be Serializable
java.lang.IllegalArgumentException - if the value is not Serializablevoid 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 an InvalidUserSessionException occurs.int getMaxInactiveInterval()
void setMaxInactiveInterval(int interval)
interval - the maximum 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 expired 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 | ||||||||