|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteUserSessionManager
Interface RemoteUserSessionManager manages the user sessions.
| Method Summary | |
|---|---|
java.util.Vector |
getAllUserSessions()
Gets all user sessions in the report server. |
java.util.Vector |
getAllWaitUserSessions()
Gets all waiting user sessions in the report server. |
RemoteAuthenticator |
getAuthenticator()
Gets the Authenticator. |
int |
getDefaultMaxInactiveInterval()
Gets the default maximum inactive interval of user sessions. |
long |
getLastLoginTime(java.lang.String user)
Gets the last login time of the specified user. |
long |
getLastLogoutTime(java.lang.String user)
Gets the 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)
Judges if a user session is a waiting user session. |
UserSession |
login(java.lang.String realm,
java.lang.String user,
java.lang.String password)
Logs in a user in the report server. |
UserSession |
login(java.lang.String realm,
java.lang.String userID,
java.lang.String password,
boolean isExternal,
boolean isWait)
Logs in a user in the report server. |
UserSession |
loginExternalAuthorized(java.lang.String realm,
java.lang.String externalAuthorizedUser)
Logs in an external authorized user in the report server. |
void |
logout(java.lang.String sessionID)
Logs out a user session in the report server. |
boolean |
needSecurity()
Checks if it needs security checking. |
void |
putSessions(java.lang.String sessionID)
Puts a user session specified by session ID to sessions. |
void |
refreshLastAccessTime(java.lang.String sessionID)
Refreshes the last accessed time of a user session. |
void |
setAuthenticator(RemoteAuthenticator 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)
throws java.rmi.RemoteException
defaultMaxInactiveInterval - the default maximum inactive interval of user sessions in milliseconds.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
int getDefaultMaxInactiveInterval()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
void setAuthenticator(RemoteAuthenticator authenticator)
throws java.rmi.RemoteException
authenticator - the Authenticator.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
RemoteAuthenticator getAuthenticator()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
UserSession login(java.lang.String realm,
java.lang.String user,
java.lang.String password)
throws java.rmi.RemoteException,
TooManyUsersException
realm - the realm.userID - the user ID.password - the password.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
TooManyUsersException - if a TooManyUsersException occurs.UserSession
UserSession login(java.lang.String realm,
java.lang.String userID,
java.lang.String password,
boolean isExternal,
boolean isWait)
throws java.rmi.RemoteException,
TooManyUsersException
realm - the realm.userID - the user ID.password - the password.isExternal - specifies if it was checked by external authenticator.isWait - specified if it is a waiting user.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
TooManyUsersException - if a TooManyUsersException occurs.UserSession
UserSession loginExternalAuthorized(java.lang.String realm,
java.lang.String externalAuthorizedUser)
throws java.rmi.RemoteException,
TooManyUsersException
realm - the realm.userID - the user ID.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
TooManyUsersException - if a TooManyUsersException occurs.UserSession
void logout(java.lang.String sessionID)
throws java.rmi.RemoteException
sessionID - the user session ID.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
UserSession getUserSession(java.lang.String sessionID)
throws java.rmi.RemoteException
sessionID - the session ID.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
java.util.Vector getAllUserSessions()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
java.util.Vector getAllWaitUserSessions()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
void refreshLastAccessTime(java.lang.String sessionID)
throws java.rmi.RemoteException,
InvalidUserSessionException
sessionID - the session ID.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
InvalidUserSessionException - if an InvalidUserSessionException occurs.
boolean isWait(java.lang.String sessionId)
throws java.rmi.RemoteException
sessionId - the user session id
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
void putSessions(java.lang.String sessionID)
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
boolean needSecurity()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
long getLastLoginTime(java.lang.String user)
throws java.rmi.RemoteException
user - the user ID
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
long getLastLogoutTime(java.lang.String user)
throws java.rmi.RemoteException
user - the user ID
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.
void updateUserSession(UserSession us)
throws java.rmi.RemoteException,
InvalidUserSessionException
us -
java.rmi.RemoteException
InvalidUserSessionException - if the specified UserSession is not exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||