|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventReceiver
Allows a developer to create a method which will be called when specific events occur by implementing this interface, this uses the Sakai event services
| Method Summary | |
|---|---|
String[] |
getEventNamePrefixes()
This defines the events that you want to know about by event name, receiveEvent(String, String) will be called whenever an event occurs which has a name
which begins with any of the strings this method returns, simply return empty array if you do
not want to match events this wayNote: Can be used with getResourcePrefix() |
String |
getResourcePrefix()
This defines the events that you want to know about by event resource (reference), receiveEvent(String, String) will be called whenever an event occurs which has a
resource which begins with the string this method returns, simply return empty string to match
no events this wayNote: Can be used with getEventNamePrefixes() |
void |
receiveEvent(String eventName,
String id)
This defines what should happen when an event occurs that you want to know about |
| Method Detail |
|---|
String[] getEventNamePrefixes()
receiveEvent(String, String) will be called whenever an event occurs which has a name
which begins with any of the strings this method returns, simply return empty array if you do
not want to match events this waygetResourcePrefix()
String getResourcePrefix()
receiveEvent(String, String) will be called whenever an event occurs which has a
resource which begins with the string this method returns, simply return empty string to match
no events this waygetEventNamePrefixes()
void receiveEvent(String eventName,
String id)
eventName - a string which represents the name of the event (e.g. announcement.create)id - the local id of the entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||