org.sakaiproject.component.legacy.presence
Class ClusterPresenceService.ClusterStorage

java.lang.Object
  extended byorg.sakaiproject.component.legacy.presence.ClusterPresenceService.ClusterStorage
All Implemented Interfaces:
BasePresenceService.Storage
Enclosing class:
ClusterPresenceService

protected class ClusterPresenceService.ClusterStorage
extends Object
implements BasePresenceService.Storage

Storage


Constructor Summary
protected ClusterPresenceService.ClusterStorage()
           
 
Method Summary
 List getLocations()
          Access the List of all known location ids.
 List getSessions(String locationId)
          Access the List of UsageSessions present at this location.
 void removePresence(String sessionId, String locationId)
          Remove this sessions id's presence at this location.
 void setPresence(String sessionId, String locationId)
          Add this session id's presence at this location, if not already there.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterPresenceService.ClusterStorage

protected ClusterPresenceService.ClusterStorage()
Method Detail

setPresence

public void setPresence(String sessionId,
                        String locationId)
Add this session id's presence at this location, if not already there.

Specified by:
setPresence in interface BasePresenceService.Storage
Parameters:
sessionId - The session id.
locationId - The location id.

removePresence

public void removePresence(String sessionId,
                           String locationId)
Remove this sessions id's presence at this location.

Specified by:
removePresence in interface BasePresenceService.Storage
Parameters:
sessionId - The session id.
locationId - The location id.

getSessions

public List getSessions(String locationId)
Access the List of UsageSessions present at this location.

Specified by:
getSessions in interface BasePresenceService.Storage
Parameters:
locationId - The location id.
Returns:
The List of sessions (UsageSession) present at this location.

getLocations

public List getLocations()
Access the List of all known location ids.

Specified by:
getLocations in interface BasePresenceService.Storage
Returns:
The List (String) of all known locations.