|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.vc.VersionControlServiceEvent
Provides a service specific event extended from KeyedEvent used in conjunction
with the standard implementation of the server-side functionality as
defined by the VersionControlService interface. This event could also
be used by a custom implementation of the VersionControlService.
Supported API: true
Extendable: false
Field Summary | |
private Object |
auxEventData
|
private static String |
CLASSNAME
|
static String |
NEW_ITERATION
A constant that defines an event marking the occurrance of the creation of an iteration, not version. |
static String |
NEW_VERSION
A constant that defines an event marking the occurrance of the creation of a version, that is the very first iteration created in its iteration line (i.e., branch). |
static String |
POST_DELETE_ITERATION
A constant that defines an event marking the occurrance of the DELETE ITERATION of an iteration from a branch. |
static String |
POST_DELETE_ITERATIONS
A constant that defines an event marking the occurrance of the DELETE ITERATION of an iteration from a branch. |
static String |
POST_INSERT_ITERATION
A constant that defines an event marking the occurrance of the INSERT ITERATION of an iteration to the end of a branch. |
static String |
POST_MERGE
A constant that defines an event marking the occurrance of a merge of one version into another. |
static String |
POST_ROLLBACK
A constant that defines an event marking the occurrance of the rollback (unsuperseding) of an iteration with another one. |
static String |
POST_ROLLUP
A constant that defines an event marking the occurrance of the rollup of an iteration(s) with another one. |
static String |
POST_SUPERSEDE
A constant that defines an event marking the occurrance of the superseding of the "latest" iteration with another "latest" one. |
static String |
PRE_DELETE_ITERATION
A constant that defines an event marking the occurrance of the DELETE ITERATION of an iteration from a branch. |
static String |
PRE_DELETE_ITERATIONS
A constant that defines an event marking the occurrance of the DELETE ITERATION of an iteration from a branch. |
static String |
PRE_INSERT_ITERATION
A constant that defines an event marking the occurrance of the INSERT ITERATION of an iteration to the end of a branch. |
static String |
PRE_MERGE
A constant that defines an event marking the occurrance of a merge of one version into another. |
static String |
PRE_NEW_VERSION
A constant that defines an event marking the occurrance of the creation of a new version, that is the very first iteration created in its iteration line (i.e., branch). |
static String |
PRE_ROLLBACK
A constant that defines an event marking the occurrance of the rollback (unsuperseding) of an iteration that is about to commense. |
static String |
PRE_ROLLUP
A constant that defines an event marking the occurrance of the rollup of an iteration(s) that is about to commense. |
static String |
PRE_SUPERSEDE
A constant that defines an event marking the occurrance of the replacement of a new iteration that is about to commense. |
private static String |
RESOURCE
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
VersionControlServiceEvent(String eventType,
Iterated eventTarget)
Constructs an versioning service's event from the event type and target. |
|
VersionControlServiceEvent(String eventType,
Iterated eventTarget,
Object auxEventData)
Constructs an versioning service's event from the event type, target object, and auxiliary object. |
|
VersionControlServiceEvent(String eventType,
Object eventTarget)
Constructs an service's event from the event type and object target. |
|
VersionControlServiceEvent(String eventType,
Vector eventTarget)
Constructs an versioning service's event from the event type and target. |
|
VersionControlServiceEvent(String eventType,
Versioned eventTarget)
Constructs an versioning service's event from the event type and target. |
|
VersionControlServiceEvent(String eventType,
WTCollection eventTarget)
Constructs a versioning service's event from the event type, multiple target objects as WTCollection . |
|
VersionControlServiceEvent(String eventType,
WTCollection eventTarget,
Object auxEventData)
Constructs an versioning service's event from the event type, target collection, and auxiliary object. |
|
VersionControlServiceEvent(String eventType,
WTValuedMap eventTarget)
Constructs a versioning service's event from the event type, WTValuedMap with target objects as key and auxiliary objects as values. |
Method Summary | |
private static VersionControlServiceEvent |
createMultiObjectMergeEvent(String eventType,
WTValuedMap sourceToDestinationsMap,
WTValuedMap sourceToNewIterationsMap,
WTValuedMap newIterationToDestinationsMap,
WTValuedMap destinationToNewIterationMap)
|
private static VersionControlServiceEvent |
createSingleObjectMergeEvent(String eventType,
Versioned newIter,
Versioned source,
Versioned destination)
|
(package private) static void |
fireMultiObjectMergeEvent(ManagerService managerService,
String eventType,
WTValuedMap sourceToDestinationsMap,
WTValuedMap sourceToNewIterationsMap,
WTValuedMap newIterationToDestinationsMap,
WTValuedMap destinationToNewIterationMap)
|
(package private) static void |
fireSingleObjectMergeEvent(ManagerService managerService,
String eventType,
Versioned newIter,
Versioned source,
Versioned destination)
|
static String |
generateEventKey(String eventType)
Generates an event key from an event type. |
Iterated |
getAppendedIteration()
Gets the iteration [target] of the event. |
Object |
getAuxEventData()
Gets the value of the attribute: auxEventData; auxilliary event data above and beyond main target object Supported API: false |
private Object |
getAuxObjFromTargetMap(Object obj)
|
WTValuedMap |
getDestinationsToMergedIterationMap()
For PRE_MERGE and POST_MERGE event types (only), this method returns a map from merge destination objects to newly created "merged" objects. |
Iterated |
getIteration()
Gets the iteration [target] of the event. |
Versioned |
getMergeDestinationIteration()
For single-object PRE_MERGE and POST_MERGE events (only), this method returns the iteration which is the destination of the merge operation. |
WTCollection |
getMergeDestinationIterations()
For PRE_MERGE and POST_MERGE event types (only), this method returns a collection of all merge destination objects. |
Versioned |
getMergedIteration()
For single-object PRE_MERGE and POST_MERGE events (only), this method returns the iteration which is the result of the merge operation. |
WTSet |
getMergedIterations()
For PRE_MERGE and POST_MERGE event types (only), this method returns a set of all the newly created "merged" objects. |
WTValuedMap |
getMergedIterationToDestinationsMap()
For PRE_MERGE and POST_MERGE event types (only), this method returns a map from newly created "merged" objects to merge destination objects. |
Versioned |
getMergeSourceIteration()
For single-object PRE_MERGE and POST_MERGE events (only), this method returns the iteration which is the source of the merge operation. |
WTSet |
getMergeSourceIterations()
For PRE_MERGE and POST_MERGE event types (only), this method returns a set of all merge source objects. |
WTValuedMap |
getMergeSourceToDestinationsMap()
For PRE_MERGE and POST_MERGE event types (only), this method returns a map from merge source to merge destination objects. |
WTValuedMap |
getMergeSourceToMergedIterationsMap()
For PRE_MERGE and POST_MERGE event types (only), this method returns a map from merge source to newly created "merged" objects. |
Vector |
getRolledBackIterations()
Gets all of the iterations that have been rolled back to the one becoming the latest iteration. |
Vector |
getRolledUpIterations()
Gets all of the iterations that have been rolled up from the one becoming the very first iteration. |
Iterated |
getSupersededIteration()
Gets the old superseded iteration [target] of the event. |
Iterated |
getSupersedingIteration()
Gets the new superseding iteration [target] of the event. |
WTCollection |
getTargetCollection()
Returns target object as WTCollection.
Supported API: false |
private Iterator |
getTargetCollectionIterator()
|
WTValuedMap |
getTargetMap()
Returns target object as WTValuedMap
Supported API: false |
private Iterator |
getTargetMapIterator()
|
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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NEW_ITERATION
public static final String NEW_VERSION
public static final String PRE_SUPERSEDE
public static final String POST_SUPERSEDE
public static final String PRE_ROLLBACK
public static final String POST_ROLLBACK
public static final String PRE_ROLLUP
public static final String POST_ROLLUP
public static final String PRE_INSERT_ITERATION
public static final String POST_INSERT_ITERATION
public static final String PRE_DELETE_ITERATION
public static final String POST_DELETE_ITERATION
public static final String PRE_MERGE
public static final String POST_MERGE
private Object auxEventData
public static final String PRE_NEW_VERSION
public static final String PRE_DELETE_ITERATIONS
public static final String POST_DELETE_ITERATIONS
Constructor Detail |
public VersionControlServiceEvent(String eventType, Versioned eventTarget) throws VersionControlException, WTPropertyVetoException
eventType
- eventTarget
-
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, Object eventTarget) throws VersionControlException, WTPropertyVetoException
eventType
- eventTarget
-
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, Vector eventTarget) throws VersionControlException, WTPropertyVetoException
eventType
- eventTarget
-
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, Iterated eventTarget) throws VersionControlException, WTPropertyVetoException
eventType
- eventTarget
-
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, Iterated eventTarget, Object auxEventData) throws VersionControlException, WTPropertyVetoException
eventType
- eventTarget
- auxEventData
- auxilliary event data above and beyond main target object
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, WTCollection eventTarget) throws VersionControlException, WTPropertyVetoException
WTCollection
. This constructor is used
for multi object events.
PRE_ROLLUP as a single object event passes Vector of Iterated objects.
This should be WTCollection
in case of multi object event
eventType
- eventTarget
- eventTarget for MultiObject event
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, WTCollection eventTarget, Object auxEventData) throws VersionControlException, WTPropertyVetoException
eventType
- the type of event (as per String constants in this class)eventTarget
- eventTarget for multi-object eventauxEventData
- auxilliary event data above and beyond main target object
VersionControlException
WTPropertyVetoException
public VersionControlServiceEvent(String eventType, WTValuedMap eventTarget) throws VersionControlException, WTPropertyVetoException
PRE_SUPERSEDE event passes Vector of Iteration and Replacement as
2 elements. In case of multi object event this should be WTValuedHashMap
with targetObject as key and the auxiliary data as value.
Supported API: false
eventType
- eventTarget
- eventTarget for MultiObject event
VersionControlException
WTPropertyVetoException
Method Detail |
public Object getAuxEventData()
public static String generateEventKey(String eventType)
eventType
-
public Iterated getSupersededIteration()
PRE_SUPERSEDE
public Iterated getSupersedingIteration()
PRE_SUPERSEDE
public Vector getRolledBackIterations()
PRE_ROLLBACK
public Vector getRolledUpIterations()
PRE_ROLLUP
public Iterated getIteration()
NEW_VERSION
,
POST_SUPERSEDE
,
POST_ROLLBACK
public Iterated getAppendedIteration()
getIteration()
public Versioned getMergeSourceIteration()
public Versioned getMergeDestinationIteration()
public Versioned getMergedIteration()
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public WTValuedMap getTargetMap()
WTValuedMap
public WTCollection getTargetCollection()
WTCollection.
public WTValuedMap getMergeSourceToDestinationsMap()
public WTValuedMap getMergeSourceToMergedIterationsMap()
public WTValuedMap getMergedIterationToDestinationsMap()
public WTValuedMap getDestinationsToMergedIterationMap()
public WTSet getMergeSourceIterations()
public WTCollection getMergeDestinationIterations()
public WTSet getMergedIterations()
private Iterator getTargetMapIterator() throws WTException
WTException
private Object getAuxObjFromTargetMap(Object obj) throws WTException
WTException
private Iterator getTargetCollectionIterator() throws WTException
WTException
private static VersionControlServiceEvent createSingleObjectMergeEvent(String eventType, Versioned newIter, Versioned source, Versioned destination) throws VersionControlException, WTPropertyVetoException
VersionControlException
WTPropertyVetoException
static void fireSingleObjectMergeEvent(ManagerService managerService, String eventType, Versioned newIter, Versioned source, Versioned destination) throws WTException, VersionControlException, WTPropertyVetoException
WTException
VersionControlException
WTPropertyVetoException
private static VersionControlServiceEvent createMultiObjectMergeEvent(String eventType, WTValuedMap sourceToDestinationsMap, WTValuedMap sourceToNewIterationsMap, WTValuedMap newIterationToDestinationsMap, WTValuedMap destinationToNewIterationMap) throws VersionControlException, WTPropertyVetoException
VersionControlException
WTPropertyVetoException
static void fireMultiObjectMergeEvent(ManagerService managerService, String eventType, WTValuedMap sourceToDestinationsMap, WTValuedMap sourceToNewIterationsMap, WTValuedMap newIterationToDestinationsMap, WTValuedMap destinationToNewIterationMap) throws WTException, VersionControlException, WTPropertyVetoException
WTException
VersionControlException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |