|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sakaiproject.util.ObservingCourier
org.sakaiproject.util.EventObservingCourier
public class EventObservingCourier
EventObservingCourier is an ObservingCourier that watches Events, of a particular reference root. It automatically registers / un-registers as an observer with the event service.
| Field Summary | |
|---|---|
protected org.sakaiproject.event.api.EventTrackingService |
m_eventTrackingService
Constructor discovered injected EventTrackingService. |
protected String |
m_resourcePattern
The event resource pattern - we watch for only events that start with this |
| Fields inherited from class org.sakaiproject.util.ObservingCourier |
|---|
m_courierService, m_deliveryId, m_elementId, m_enabled, m_location |
| Constructor Summary | |
|---|---|
EventObservingCourier(String location,
String elementId,
String resourcePattern)
Construct. |
|
| Method Summary | |
|---|---|
boolean |
check(Object arg)
Check to see if we want to process or ignore this update. |
String |
getResourcePattern()
|
void |
setResourcePattern(String pattern)
|
void |
valueBound(org.sakaiproject.tool.api.SessionBindingEvent event)
SessionBindingListener implementation |
void |
valueUnbound(org.sakaiproject.tool.api.SessionBindingEvent event)
|
| Methods inherited from class org.sakaiproject.util.ObservingCourier |
|---|
disable, enable, getDeliveryId, getElementId, getEnabled, getLocation, justDelivered, setDeliveryId, setElementId, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.sakaiproject.event.api.EventTrackingService m_eventTrackingService
protected String m_resourcePattern
| Constructor Detail |
|---|
public EventObservingCourier(String location,
String elementId,
String resourcePattern)
location - The key identifying the Portal Page Instance.elementId - The key identifying the element on the Portal Page that would need a courier delivered message when things change.The - event resource pattern - we watch for only events whose ref start with this.| Method Detail |
|---|
public String getResourcePattern()
public void setResourcePattern(String pattern)
public boolean check(Object arg)
check in interface ObservingCouriercheck in class ObservingCourierarg - The arg from the update.
public void valueBound(org.sakaiproject.tool.api.SessionBindingEvent event)
valueBound in interface org.sakaiproject.tool.api.SessionBindingListenerpublic void valueUnbound(org.sakaiproject.tool.api.SessionBindingEvent event)
valueUnbound in interface org.sakaiproject.tool.api.SessionBindingListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||