|
|||||||||
| 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 | |
|---|---|
java.util.Enumeration |
getAllUserSessions()
Get all user sessions in the report server. |
java.util.Enumeration |
getAllWaitUserSessions()
Get all wait user sessions in the report server. |
Authenticator |
getAuthenticator()
Get the Authenticator. |
int |
getDefaultMaxInactiveInterval()
Get the default max inactive interval of user sessions. |
long |
getLastLoginTime(java.lang.String user)
Get last login time of specify user. |
long |
getLastLogoutTime(java.lang.String user)
Get last logout time of specify user. |
UserSession |
getUserSession(java.lang.String sessionID)
Get the user session by the session ID. |
boolean |
isWait(java.lang.String sessionId)
|
UserSession |
login(java.lang.String realm,
java.lang.String user,
java.lang.String password,
java.lang.Object extObj)
Login an user in the report server. |
UserSession |
loginExternalAuthorized(java.lang.String realm,
java.lang.String externalAuthorizedUser,
java.lang.Object extObj)
Login an external authorized user in the report server. |
void |
logout(UserSession session)
Logout an user session in the report server. |
boolean |
needSecurity()
Check if it needs security checking. |
void |
putSessions(UserSession us)
|
void |
refreshLastAccessTime(java.lang.String sessionID)
Refresh the last access time of a user session. |
void |
setAuthenticator(Authenticator authenticator)
Set the Authenticator. |
void |
setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
Set the default max inactive interval of user sessions. |
| Method Detail |
|---|
void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
defaultMaxInactiveInterval - the default max 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 is 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 is 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 a InvalidUserSessionException occurs.boolean isWait(java.lang.String sessionId)
void putSessions(UserSession us)
boolean needSecurity()
long getLastLoginTime(java.lang.String user)
user - the user ID
long getLastLogoutTime(java.lang.String user)
user - the user ID
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||