|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Maintains references to RemoteSessions that are used on the various clients/agents that administer Access Control.
Session,
RemoteSession| Field Summary |
| Fields inherited from interface com.cafesoft.core.lifecycle.Lifecycle |
START_EVENT, STOP_EVENT |
| Method Summary | |
void |
addRemoteSessionEventListener(RemoteSessionEventListener listener)
Add a RemoteSessionEventListener. |
void |
addSession(RemoteSession session)
Add a RemoteSession to the RemoteSessionManager This method will attempt to add a RemoteSession to the list of RemoteSessions managed by the RemoteSessionManager. |
boolean |
exists(RemoteSession session)
Determine if the RemoteSession exists within the RemoteSessionManager. |
boolean |
exists(SessionId sessionId)
Determine if the RemoteSession exists within the RemoteSessionManager. |
RemoteSession |
getSession(SessionId sessionId)
Get a RemoteSession Attempts to retrieve a RemoteSession from the RemoteSessionManager |
void |
initialize(Config config)
Initialize the RemoteSessionManager This method takes the Config object passed into it and initializes the RemoteSessionManager |
void |
removeRemoteSessionEventListener(RemoteSessionEventListener listener)
Remove a RemoteSessionEventListener. |
void |
removeSession(RemoteSession session)
Remove a RemoteSession Removes the specified RemoteSession from the RemoteSessionManager. |
void |
removeSession(SessionId sessionId)
Remove a RemoteSession Removes the specified RemoteSession from the RemoteSessionManager. |
void |
updateSession(RemoteSession session)
Update a RemoteSession This method will attempt to update RemoteSession information for a RemoteSession Object already contained within the RemoteSessionManager. |
| Methods inherited from interface com.cafesoft.core.lifecycle.Lifecycle |
addLifecycleListener, isStarted, removeLifecycleListener, start, stop |
| Methods inherited from interface com.cafesoft.core.util.Debuggable |
setDebug |
| Method Detail |
public void initialize(Config config)
throws ConfigException
This method takes the Config object passed into it and initializes the RemoteSessionManager
config - the Config object
ConfigException - thrown if config is nullpublic void addSession(RemoteSession session)
This method will attempt to add a RemoteSession to the list of RemoteSessions managed by the RemoteSessionManager.
If the RemoteSession already exists within the RemoteSessionManager its values are updated.
If the RemoteSession is null the method simply returns
session - the RemoteSession Object to addpublic void updateSession(RemoteSession session)
This method will attempt to update RemoteSession information for a RemoteSession Object already contained within the RemoteSessionManager.
If the RemoteSession exists within the RemoteSessionManager it's internal data is updated (items such as last touch time and SessionStatus) If the RemoteSession does not exist within the RemoteSessionManager it is added to the the RemoteSessionManager.
If the RemoteSession's status has changed to EXPIRED or CLOSED the RemoteSession Object will be removed.
session - the RemoteSession Object to updatepublic void removeSession(RemoteSession session)
Removes the specified RemoteSession from the RemoteSessionManager. This method uses the RemoteSession object as the identifier to locate which RemoteSession should be removed.
If the RemoteSession to be removed is null the method simply returns.
session - the RemoteSession to removepublic void removeSession(SessionId sessionId)
Removes the specified RemoteSession from the RemoteSessionManager. This method uses the session id as the identifier to locate which RemoteSession should be removed.
If the session id is null the method simply returns.
sessionId - the session id of the RemoteSession to removepublic RemoteSession getSession(SessionId sessionId)
Attempts to retrieve a RemoteSession from the RemoteSessionManager
sessionId - the session id of the RemoteSession to retrieve from the
RemoteSessionManager
public boolean exists(RemoteSession session)
If session is null, the method returns false
session - the RemoteSession object used to determine if the
RemoteSession exists within the RemoteSessionManager
public boolean exists(SessionId sessionId)
If session id is null, the method returns false
sessionId - the session id of the RemoteSession used to determine if
the RemoteSession exists within the RemoteSessionManager
public void addRemoteSessionEventListener(RemoteSessionEventListener listener)
listener - the RemoteSessionEventListener instancepublic void removeRemoteSessionEventListener(RemoteSessionEventListener listener)
listener - the RemoteSessionEventListener instance to be removed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||