Package wt.vc.baseline
Class BaselineServiceEvent
java.lang.Object
wt.events.KeyedEvent
wt.vc.baseline.BaselineServiceEvent
- All Implemented Interfaces:
Serializable,wt.events.summary.SummarizedEvent
This class implements an event for the Baseline service operations.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn event type emitted after a Baselineable item is added to a Baseline.static final StringAn event type emitted after a Baselineable item is removed from a Baseline.static final StringAn event type emitted after a Baselineable item is replaced in a Baseline.static final StringAn event type emitted before a Baselineable item is added to a Baseline.static final StringAn event type emitted before a Baselineable item is removed from a Baseline.static final StringAn event type emitted before a Baselineable item is replaced in a Baseline. -
Constructor Summary
ConstructorsConstructorDescriptionBaselineServiceEvent(String a_eventType, WTCollection a_baselineables, Baseline a_baseline) Constructs a multi obejct BaselineServiceEvent instance for ADD and REMOVE events where list Baselineable objects are passed in asWTCollectionfor single Baseline.BaselineServiceEvent(String a_eventType, WTValuedMap a_baselineables, Baseline a_baseline) Constructs a multi obejct BaselineServiceEvent instance for REPLACE event where a map of new and old Baselineable objects are passed in asWTValuedMapfor single Baseline.BaselineServiceEvent(String a_eventType, Baselineable a_baselineable, Baseline a_baseline) Constructs a BaselineServiceEvent instance.BaselineServiceEvent(String a_eventType, Baselineable a_baselineable, Baseline a_baseline, Baselineable a_replacedBaselineable) Constructs a BaselineServiceEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateEventKey(String a_eventType) This method generates a unique key for the event type.Gets the object for the association that plays role: theBaseline.Gets the object for the association that plays role: replacedItem.Gets the object for the association that plays role: targetItem.Methods inherited from class wt.events.KeyedEvent
generateEventKey, getEventKey, getEventTarget, getEventType
-
Field Details
-
PRE_ADD_BASELINE
An event type emitted before a Baselineable item is added to a Baseline.
Supported API: true- See Also:
-
POST_ADD_BASELINE
An event type emitted after a Baselineable item is added to a Baseline.
Supported API: true- See Also:
-
PRE_REMOVE_BASELINE
An event type emitted before a Baselineable item is removed from a Baseline.
Supported API: true- See Also:
-
POST_REMOVE_BASELINE
An event type emitted after a Baselineable item is removed from a Baseline.
Supported API: true- See Also:
-
PRE_REPLACE_BASELINE
An event type emitted before a Baselineable item is replaced in a Baseline.
Supported API: true- See Also:
-
POST_REPLACE_BASELINE
An event type emitted after a Baselineable item is replaced in a Baseline.
Supported API: true- See Also:
-
-
Constructor Details
-
BaselineServiceEvent
Constructs a BaselineServiceEvent instance.
Supported API: true- Parameters:
a_eventType-a_baselineable-a_baseline-
-
BaselineServiceEvent
public BaselineServiceEvent(String a_eventType, Baselineable a_baselineable, Baseline a_baseline, Baselineable a_replacedBaselineable) Constructs a BaselineServiceEvent instance.
Supported API: true- Parameters:
a_eventType-a_baselineable-a_baseline-a_replacedBaselineable-
-
BaselineServiceEvent
Constructs a multi obejct BaselineServiceEvent instance for ADD and REMOVE events where list Baselineable objects are passed in asWTCollectionfor single Baseline.
Supported API: true- Parameters:
a_eventType-a_baselineables-a_baseline-
-
BaselineServiceEvent
Constructs a multi obejct BaselineServiceEvent instance for REPLACE event where a map of new and old Baselineable objects are passed in asWTValuedMapfor single Baseline.
Supported API: true- Parameters:
a_eventType-a_baselineables-a_baseline-
-
-
Method Details
-
getTargetItem
Gets the object for the association that plays role: targetItem.
Supported API: true- Returns:
- Baselineable
-
getBaseline
Gets the object for the association that plays role: theBaseline.
Supported API: true- Returns:
- Baseline
-
getReplacedItem
Gets the object for the association that plays role: replacedItem.
Supported API: true- Returns:
- Baselineable
-
generateEventKey
This method generates a unique key for the event type.
Supported API: true- Parameters:
a_eventType-- Returns:
- String
-