org.xwiki.observation.remote.converter
Interface LocalEventConverter

All Known Implementing Classes:
AbstractEventConverter

@Role
public interface LocalEventConverter

Convert a local event to a serializable remote event.

Since:
2.0M3
Version:
$Id: 9c72040c0db67e9d363563866f377fcd53dd4045 $

Method Summary
 int getPriority()
           
 boolean toRemote(LocalEventData localEvent, RemoteEventData remoteEvent)
          Convert provided local event to remote event by filling the provided remote event object.
 

Method Detail

getPriority

int getPriority()
Returns:
the priority of the converter

toRemote

boolean toRemote(LocalEventData localEvent,
                 RemoteEventData remoteEvent)
Convert provided local event to remote event by filling the provided remote event object.

Parameters:
localEvent - the local event
remoteEvent - the remote event
Returns:
if the converter support this conversion it should return true after the conversion, otherwise false


Copyright © 2004-2013 XWiki. All Rights Reserved.