wt.inf.container
Class WTContainerMoveEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.inf.container.WTContainerServiceEvent
          extended bywt.inf.container.WTContainerMoveEvent

public final class WTContainerMoveEvent
extends WTContainerServiceEvent



Supported API: true

Extendable: false


Field Summary
private static String CLASSNAME
           
private  WTValuedMap containedToDestinations
          A mapping between WTContained objects and their destination WTContainers
private  WTValuedMap containedToSources
          A mapping between WTContained objects and their source WTContainers
private  WTKeyedMap destinationsToContained
          A mapping of source WTContainers to WTSets of WTContained objects that are being moved to the containers.
static String POST_MOVE
          

Supported API: false
static String PRE_MOVE
          

Supported API: false
private static String RESOURCE
           
private  WTKeyedMap sourcesToContained
          A mapping of source WTContainers to WTSets of WTContained objects that are being moved from the containers.
 
Fields inherited from class wt.inf.container.WTContainerServiceEvent
POST_CREATE, PRE_CREATE
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
(package private) WTContainerMoveEvent(String event_type, WTValuedMap contained_to_destinations, WTValuedMap contained_to_sources, WTKeyedMap destinations_to_contained, WTKeyedMap sources_to_contained)
          Construct a FolderServiceEvent
 
Method Summary
static String generateEventKey(String eventType)
          Generate a key based on the class of the event and a user defined type.
 WTValuedMap getContainedToDestinations()
          Valid for use with multi-object FolderServiceEvents.
 WTValuedMap getContainedToSources()
          Valid for use with multi-object FolderServiceEvents.
 WTKeyedMap getDestinationsToContained()
          Valid for use with multi-object FolderServiceEvents.
 WTKeyedMap getSourcesToContained()
          Valid for use with multi-object FolderServiceEvents.
 
Methods inherited from class wt.inf.container.WTContainerServiceEvent
getTarget, getTargets, toMultiObjectEvent, toSingleObjectEvents
 
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

PRE_MOVE

public static final String PRE_MOVE


Supported API: false

See Also:
Constant Field Values

POST_MOVE

public static final String POST_MOVE


Supported API: false

See Also:
Constant Field Values

containedToDestinations

private final WTValuedMap containedToDestinations
A mapping between WTContained objects and their destination WTContainers


containedToSources

private final WTValuedMap containedToSources
A mapping between WTContained objects and their source WTContainers


sourcesToContained

private WTKeyedMap sourcesToContained
A mapping of source WTContainers to WTSets of WTContained objects that are being moved from the containers.


destinationsToContained

private WTKeyedMap destinationsToContained
A mapping of source WTContainers to WTSets of WTContained objects that are being moved to the containers.

Constructor Detail

WTContainerMoveEvent

WTContainerMoveEvent(String event_type,
                     WTValuedMap contained_to_destinations,
                     WTValuedMap contained_to_sources,
                     WTKeyedMap destinations_to_contained,
                     WTKeyedMap sources_to_contained)
Construct a FolderServiceEvent

Parameters:
event_type -
contained_to_destinations - A mapping of WTContained objects to destination WTContainers
contained_to_sources - A mapping of WTContained objects to source WTContainers
destinations_to_contained - A mapping of destination WTContainers to WTSets of target WTContained objects
sources_to_contained - A mapping of source WTContainers to WTSets of target WTContained objects
Method Detail

generateEventKey

public static String generateEventKey(String eventType)
Generate a key based on the class of the event and a user defined type.

Parameters:
eventType - the type of the event
Returns:
The key

getContainedToDestinations

public WTValuedMap getContainedToDestinations()
Valid for use with multi-object FolderServiceEvents.

Returns:
A WTValuedMap mapping WTContained objects to destination WTContainers

getContainedToSources

public WTValuedMap getContainedToSources()
Valid for use with multi-object FolderServiceEvents.

Returns:
A WTValuedMap mapping WTContained objects to source WTContainers

getSourcesToContained

public WTKeyedMap getSourcesToContained()
Valid for use with multi-object FolderServiceEvents.

Returns:
A WTKeyedMap mapping source WTContainers to WTSets of WTContained objects

getDestinationsToContained

public WTKeyedMap getDestinationsToContained()
Valid for use with multi-object FolderServiceEvents.

Returns:
A WTKeyedMap mapping destination WTContainers to WTSets of WTContained objects