public class EventObservingCourier extends ObservingCourier implements SessionBindingListener
EventObservingCourier is an ObservingCourier that watches Events, of a particular reference root. It automatically registers / un-registers as an observer with the event service.
| Modifier and Type | Field and Description |
|---|---|
protected EventTrackingService |
m_eventTrackingService
Constructor discovered injected EventTrackingService.
|
protected String |
m_resourcePattern
The event resource pattern - we watch for only events that start with this
|
m_courierService, m_deliveryId, m_elementId, m_enabled, m_location| Constructor and Description |
|---|
EventObservingCourier(String location,
String elementId,
String resourcePattern)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Object arg)
Check to see if we want to process or ignore this update.
|
String |
getResourcePattern() |
void |
setResourcePattern(String pattern) |
void |
valueBound(SessionBindingEvent event)
SessionBindingListener implementation
|
void |
valueUnbound(SessionBindingEvent event) |
disable, enable, getDeliveryId, getElementId, getEnabled, getLocation, justDelivered, setDeliveryId, setElementId, updateprotected EventTrackingService m_eventTrackingService
protected String m_resourcePattern
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.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(SessionBindingEvent event)
valueBound in interface SessionBindingListenerpublic void valueUnbound(SessionBindingEvent event)
valueUnbound in interface SessionBindingListenerCopyright © 2003–2016 The Sakai Foundation. All rights reserved.