|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserSessionManager
Interface UserSessionManager manages the user sessions.
| Method Summary | |
|---|---|
boolean |
addSessionExpiryListener(ExpiryListener listener)
Add user session expired listener. duplicated add same listener instance will be ignored, test by listener.equals(). |
java.util.Enumeration |
getAllUserSessions()
Gets all user sessions in the report server. |
java.util.Enumeration |
getAllWaitUserSessions()
Gets all waiting user sessions in the report server. |
Authenticator |
getAuthenticator()
Gets the Authenticator. |
int |
getDefaultMaxInactiveInterval()
Gets the default maximum inactive interval of user sessions. |
long |
getLastLoginTime(java.lang.String user)
Gets last login time of the specified user. |
long |
getLastLogoutTime(java.lang.String user)
Gets last logout time of the specified user. |
UserSession |
getUserSession(java.lang.String sessionID)
Gets the user session by the session ID. |
boolean |
isWait(java.lang.String sessionId)
Checks if to wait for the specified user session. |
UserSession |
login(java.lang.String realm,
java.lang.String user,
java.lang.String password,
java.lang.Object extObj)
Logins a user in the report server. |
UserSession |
loginExternalAuthorized(java.lang.String realm,
java.lang.String externalAuthorizedUser,
java.lang.Object extObj)
Logs in an external authorized user in the report server. |
void |
logout(UserSession session)
Logs out a user session in the report server. |
boolean |
needSecurity()
Checks if it needs security checking. |
void |
putSessions(UserSession us)
Puts a specified user session |
void |
refreshLastAccessTime(java.lang.String sessionID)
Refreshes the last accessed time of a user session. |
boolean |
removeSessionExpiryListener(ExpiryListener listener)
Remove user session expired listener. |
void |
setAuthenticator(Authenticator authenticator)
Sets the Authenticator. |
void |
setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
Sets the default maximum inactive interval of user sessions. |
void |
updateUserSession(UserSession us)
Notify this UserSessionManager, the specified user session was updated (e.g. |
| Method Detail |
|---|
void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
defaultMaxInactiveInterval - the default maximum inactive interval of user sessions in milliseconds.int getDefaultMaxInactiveInterval()
void setAuthenticator(Authenticator authenticator)
authenticator - the Authenticator.Authenticator getAuthenticator()
UserSession login(java.lang.String realm,
java.lang.String user,
java.lang.String password,
java.lang.Object extObj)
throws TooManyUsersException
realm - the realm.userID - the user ID.password - the password.extObj - the external object attached to the user session.
TooManyUsersException - if a TooManyUsersException occurs.UserSession
UserSession loginExternalAuthorized(java.lang.String realm,
java.lang.String externalAuthorizedUser,
java.lang.Object extObj)
throws TooManyUsersException
realm - the realm.userID - the user ID.extObj - the external object attached to the user session.
TooManyUsersException - if a TooManyUsersException occurs.UserSessionvoid logout(UserSession session)
session - the user session.UserSession getUserSession(java.lang.String sessionID)
sessionID - the session ID.
java.util.Enumeration getAllUserSessions()
java.util.Enumeration getAllWaitUserSessions()
void refreshLastAccessTime(java.lang.String sessionID)
throws InvalidUserSessionException
sessionID - the session ID.
InvalidUserSessionException - if an InvalidUserSessionException occurs.boolean isWait(java.lang.String sessionId)
sessionID - the session ID.
void putSessions(UserSession us)
us - UserSession objectboolean needSecurity()
long getLastLoginTime(java.lang.String user)
user - the user ID
long getLastLogoutTime(java.lang.String user)
user - the user ID
boolean addSessionExpiryListener(ExpiryListener listener)
All listeners on this server will be notified if any user session expired or logout.
Notes
remote implementation not support this operation.
listener -
boolean removeSessionExpiryListener(ExpiryListener listener)
Notes
remote implementation not support this operation.
listener -
void updateUserSession(UserSession us)
throws InvalidUserSessionException
us -
InvalidUserSessionException - if the specified UserSession is not exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||