|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventBus
GenericEventListener can
register for an event bound to a certain
OLATResourceable. A class having
"news" concerning an OLATResourceable may fire
Events which are sent to all
listeners.
| Method Summary | |
|---|---|
void |
deregisterFor(GenericEventListener gel,
OLATResourceable ores)
deregisters/removes a GenericEventListener to listen to events concerning the OLATResourceable ores |
void |
fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
fires an event to all listeners interested in events concerning this OLATResourceable ores. |
int |
getListeningIdentityCntFor(OLATResourceable ores)
Note for cluster: this method is cluster-safe. |
java.util.Set |
getListeningIdentityNamesFor(OLATResourceable ores)
returns a Set of Identities which had at the very moment controllers which were listening to the OLATResourceable ores. |
java.util.Map |
getUnmodifiableInfoCenter()
For admin purposes only! gets the whole infocenter and typeInfocenter map (keys: String-form of OLATResoureable; values: EventAgencies) as a map. |
void |
registerFor(GenericEventListener gel,
Identity identity,
OLATResourceable ores)
registers a GenericEventListener to listen to events concerning the OLATResourceable ores |
| Method Detail |
|---|
void registerFor(GenericEventListener gel,
Identity identity,
OLATResourceable ores)
gel - the GenericEventListener / the class implementing itidentity - the identity to whicinfoh the listening (controller)
belongs, or null if that is not known or the olat-system itself.ores - the OLATResourceable
void deregisterFor(GenericEventListener gel,
OLATResourceable ores)
gel - ores -
void fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
event - the OLATResourceableEvent (must be serializable!, for multiple
server olat installations)ores - the OLATResourceablejava.util.Set getListeningIdentityNamesFor(OLATResourceable ores)
ores - the OLATResourceable
int getListeningIdentityCntFor(OLATResourceable ores)
ores - the resourceable
java.util.Map getUnmodifiableInfoCenter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||