use of org.xwiki.eventstream.EventGroup in project xwiki-platform by xwiki.
the class BridgeEventStream method getRelatedEvents.
@Override
public EventGroup getRelatedEvents(Event e) {
XWikiContext context = getXWikiContext();
ActivityStreamPlugin plugin = getPlugin(context);
EventGroup result = new EventGroup();
try {
result.addEvents(convertActivitiesToEvents(plugin.getActivityStream().getRelatedEvents(eventConverter.convertEventToActivity(e), context)).toArray(new Event[0]));
} catch (ActivityStreamException ex) {
// Should not happen, and the eventual error was already reported downstream
}
return result;
}
Aggregations