org.xwiki.observation.remote.converter
Interface EventConverterManager


@ComponentRole
public interface EventConverterManager

Provide events converters.

Since:
2.0M3
Version:
$Id$

Method Summary
 LocalEventData createLocalEventData(RemoteEventData remoteEvent)
          Convert a remote event to a local event.
 RemoteEventData createRemoteEventData(LocalEventData localEvent)
          Convert a local event to a remote event.
 List<LocalEventConverter> getLocalEventConverters()
           
 List<RemoteEventConverter> getRemoteEventConverters()
           
 

Method Detail

getLocalEventConverters

List<LocalEventConverter> getLocalEventConverters()
Returns:
the local to remote events converters

getRemoteEventConverters

List<RemoteEventConverter> getRemoteEventConverters()
Returns:
the remote to local events converters

createRemoteEventData

RemoteEventData createRemoteEventData(LocalEventData localEvent)
Convert a local event to a remote event.

Parameters:
localEvent - the local event
Returns:
the remote event, if null the event should not be sent to the network.

createLocalEventData

LocalEventData createLocalEventData(RemoteEventData remoteEvent)
Convert a remote event to a local event.

Parameters:
remoteEvent - the remote event
Returns:
the local event, if null the event should not send to ObservationManager.


Copyright © 2004-2011 XWiki. All Rights Reserved.