org.sakaiproject.component.legacy.presence
Class BasePresenceService.Presence

java.lang.Object
  extended byorg.sakaiproject.component.legacy.presence.BasePresenceService.Presence
All Implemented Interfaces:
EventListener, SessionBindingListener
Enclosing class:
BasePresenceService

protected class BasePresenceService.Presence
extends Object
implements SessionBindingListener

Presence


Field Summary
protected  boolean m_active
          If true, process the unbound.
protected  long m_expireTime
          Time to expire.
protected  String m_locationId
          The location id.
protected  UsageSession m_session
          The session.
 
Constructor Summary
BasePresenceService.Presence(UsageSession session, String locationId)
           
 
Method Summary
 void deactivate()
           
 boolean isExpired()
          Has this presence timed out?
 void setActive()
          Reset the timeout based on current activity
 void valueBound(SessionBindingEvent event)
          Notifies the object that it is being bound to a session.
 void valueUnbound(SessionBindingEvent evt)
          Notifies the object that it is being unbound from a session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_session

protected UsageSession m_session
The session.


m_locationId

protected String m_locationId
The location id.


m_active

protected boolean m_active
If true, process the unbound.


m_expireTime

protected long m_expireTime
Time to expire.

Constructor Detail

BasePresenceService.Presence

public BasePresenceService.Presence(UsageSession session,
                                    String locationId)
Method Detail

deactivate

public void deactivate()

setActive

public void setActive()
Reset the timeout based on current activity


isExpired

public boolean isExpired()
Has this presence timed out?

Returns:
true if expired, false if not.

valueBound

public void valueBound(SessionBindingEvent event)
Notifies the object that it is being bound to a session.

Specified by:
valueBound in interface SessionBindingListener
Parameters:
event - the event that identifies the session

valueUnbound

public void valueUnbound(SessionBindingEvent evt)
Notifies the object that it is being unbound from a session.

Specified by:
valueUnbound in interface SessionBindingListener
Parameters:
evt - the event that identifies the session