wt.inf.sharing
Class DataSharingServiceEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.inf.sharing.DataSharingServiceEvent
All Implemented Interfaces:
Serializable

public class DataSharingServiceEvent
extends KeyedEvent
implements Serializable

Object that is emitted as a KeyedEvent when there is a change of state in a share. Five types of events are supported:

Four the four first types of events the target object of the event is a Link contained the shares affected. For the last one - switchShare - the target is a list contained two elements: the first one is the share that was deleted while the second is the one that was created.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static String ADD_SHARE
          

Supported API: false
private static String CLASSNAME
           
static String DISABLE_SHARE
          

Supported API: false
static String ENABLE_SHARE
          

Supported API: false
static String REMOVE_SHARE
          

Supported API: false
private static String RESOURCE
           
static String SWITCH_SHARE
          

Supported API: false
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
DataSharingServiceEvent(String event_type, List map_list)
          

Supported API: false
DataSharingServiceEvent(String event_type, WTCollection map_list)
          

Supported API: false
 
Method Summary
static void checkEventType(String event_type)
          

Supported API: false
static String generateEventKey(String event_type)
          

Supported API: false
private  ArrayList getArrayList(WTCollection wt_collection)
           
 KeyedEvent toMultiObjectEvent()
          

Supported API: false
 KeyedEvent[] toSingleObjectEvents()
          

Supported API: false
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

ADD_SHARE

public static final String ADD_SHARE


Supported API: false

See Also:
Constant Field Values

REMOVE_SHARE

public static final String REMOVE_SHARE


Supported API: false

See Also:
Constant Field Values

DISABLE_SHARE

public static final String DISABLE_SHARE


Supported API: false

See Also:
Constant Field Values

ENABLE_SHARE

public static final String ENABLE_SHARE


Supported API: false

See Also:
Constant Field Values

SWITCH_SHARE

public static final String SWITCH_SHARE


Supported API: false

See Also:
Constant Field Values
Constructor Detail

DataSharingServiceEvent

public DataSharingServiceEvent(String event_type,
                               List map_list)


Supported API: false

Parameters:
event_type -
map_list -

DataSharingServiceEvent

public DataSharingServiceEvent(String event_type,
                               WTCollection map_list)


Supported API: false

Parameters:
event_type -
map_list -
Method Detail

generateEventKey

public static String generateEventKey(String event_type)


Supported API: false

Parameters:
event_type -
Returns:
String

checkEventType

public static void checkEventType(String event_type)


Supported API: false

Parameters:
event_type -

toMultiObjectEvent

public KeyedEvent toMultiObjectEvent()


Supported API: false

Overrides:
toMultiObjectEvent in class KeyedEvent
Returns:
KeyedEvent

toSingleObjectEvents

public KeyedEvent[] toSingleObjectEvents()
                                  throws WTException


Supported API: false

Overrides:
toSingleObjectEvents in class KeyedEvent
Returns:
KeyedEvent[]
Throws:
WTException

getArrayList

private ArrayList getArrayList(WTCollection wt_collection)
                        throws WTException
Throws:
WTException