org.nuiton.wikitty
Class WikittyServiceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.nuiton.wikitty.WikittyServiceEvent
All Implemented Interfaces:
Serializable

public class WikittyServiceEvent
extends EventObject

Wikitty service event. Contains :

Version:
$Revision: 120 $ Last update : $Date: 2010-06-11 12:36:03 +0200 (ven., 11 juin 2010) $ By : $Author: echatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  Map<String,Set<String>> idExtensions
          Map between extensions set for each id.
protected  Set<String> ids
          Id managed by event.
protected  Map<String,String> idVersions
          Map between versions for each id.
protected  boolean remote
          Remote event (received from jgroup).
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WikittyServiceEvent(Object source)
          Constructor with source WikittyService.
 
Method Summary
 Map<String,Set<String>> getIdExtensions()
          Get id and extensions map.
 Set<String> getIds()
          Get ids.
 Map<String,String> getIdVersions()
          Get id and version map.
 boolean isRemote()
          Is event remote.
 void setIdExtensions(Map<String,Set<String>> idExtensions)
          Change id and extensions map.
 void setIds(Set<String> ids)
          Set ids.
 void setIdVersions(Map<String,String> idVersions)
          Set id and version map.
 void setRemote(boolean remote)
          Change remote event property.
 void setSource(Object source)
          To allow set transient source after deserialisation.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

remote

protected boolean remote
Remote event (received from jgroup).


ids

protected Set<String> ids
Id managed by event. Can be :


idExtensions

protected Map<String,Set<String>> idExtensions
Map between extensions set for each id.


idVersions

protected Map<String,String> idVersions
Map between versions for each id.

Constructor Detail

WikittyServiceEvent

public WikittyServiceEvent(Object source)
Constructor with source WikittyService.

Parameters:
source - wikitty service
Method Detail

setSource

public void setSource(Object source)
To allow set transient source after deserialisation.

Parameters:
source - source

isRemote

public boolean isRemote()
Is event remote.

Returns:
remote event

setRemote

public void setRemote(boolean remote)
Change remote event property.

Parameters:
remote - remote

getIds

public Set<String> getIds()
Get ids.

Returns:
ids or null if no ids is related to event

setIds

public void setIds(Set<String> ids)
Set ids.

Parameters:
ids - ids to set

getIdExtensions

public Map<String,Set<String>> getIdExtensions()
Get id and extensions map.

Returns:
map with extension set for each id or null if no ids is related to event

setIdExtensions

public void setIdExtensions(Map<String,Set<String>> idExtensions)
Change id and extensions map.

Parameters:
idExtensions - id and extensions map

getIdVersions

public Map<String,String> getIdVersions()
Get id and version map.

Returns:
map with version for each id

setIdVersions

public void setIdVersions(Map<String,String> idVersions)
Set id and version map.

Parameters:
idVersions - id and versions

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2009-2010 CodeLutin. All Rights Reserved.