Search in sources :

Example 1 with UntypedRecordableEvent

use of org.xwiki.eventstream.UntypedRecordableEvent in project xwiki-platform by xwiki.

the class DefaultUntypedRecordableEventConverter method convert.

@Override
public Event convert(RecordableEvent recordableEvent, String source, Object data) throws Exception {
    Event convertedEvent = super.convert(recordableEvent, source, data);
    convertedEvent.setType(((UntypedRecordableEvent) recordableEvent).getEventType());
    return convertedEvent;
}
Also used : UntypedRecordableEvent(org.xwiki.eventstream.UntypedRecordableEvent) Event(org.xwiki.eventstream.Event) RecordableEvent(org.xwiki.eventstream.RecordableEvent)

Aggregations

Event (org.xwiki.eventstream.Event)1 RecordableEvent (org.xwiki.eventstream.RecordableEvent)1 UntypedRecordableEvent (org.xwiki.eventstream.UntypedRecordableEvent)1