use of org.xwiki.bridge.event.AbstractActionExecutionEvent in project xwiki-platform by xwiki.
the class ActionExecutionEventConverter method toRemote.
@Override
public boolean toRemote(LocalEventData localEvent, RemoteEventData remoteEvent) {
if (localEvent.getEvent() instanceof ActionExecutedEvent || localEvent.getEvent() instanceof ActionExecutingEvent) {
AbstractActionExecutionEvent event = (AbstractActionExecutionEvent) localEvent.getEvent();
if (this.actions.contains(event.getActionName())) {
// fill the remote event
remoteEvent.setEvent(event);
remoteEvent.setSource(serializeXWikiDocument((XWikiDocument) localEvent.getSource()));
remoteEvent.setData(serializeXWikiContext((XWikiContext) localEvent.getData()));
}
return true;
}
return false;
}
Aggregations