org.sakaiproject.component.legacy.presence
Interface BasePresenceService.Storage

All Known Implementing Classes:
ClusterPresenceService.ClusterStorage
Enclosing interface:
BasePresenceService

protected static interface BasePresenceService.Storage

Storage


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.
 

Method Detail

setPresence

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

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.

Parameters:
sessionId - The session id.
locationId - The location id.

getSessions

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

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.

Returns:
The List (String) of all known locations.