wt.change2
Class CMIIBaselineHelper
java.lang.Object
wt.change2.CMIIBaselineHelper
- class CMIIBaselineHelper
- extends Object
Method Summary |
private static boolean |
areEqual(Persistable p1,
Persistable p2)
|
(package private) static Set |
condensePartUsages(Set partUsages)
|
(package private) static Set |
difference(Set a,
Set b)
|
(package private) static Set |
getDocuments(WTPart part)
|
private static List |
getDocVersions(WTDocumentMaster m,
boolean releasedOnly)
|
private static LinkedList |
getECNs(Changeable2 changeable,
Set states)
|
private static List |
getEPMDocVersions(EPMDocumentMaster m,
boolean releasedOnly)
|
(package private) static Set |
getPartUsages(WTPart part)
|
private static List |
getPartVersions(WTPartMaster m,
View view,
boolean releasedOnly)
|
(package private) static Set |
getPendingECNs(Changeable2 changeable)
Returns a set of the ECNs (wt.change2.WTChangeOrder2 instances) pending
for the specified changeable. |
(package private) static WTChangeOrder2 |
getReleasingECN(Changeable2 changeable)
Returns the latest (by resolution date) ECN (wt.change2.WTChangeOrder2
instance) releasing the specified changeable. |
private static List |
getVersions(Mastered m,
ConfigSpec lrcs,
ConfigSpec lcs,
boolean releasedOnly)
|
(package private) static List |
getVersions(Mastered master,
View view,
boolean releasedOnly)
Returns a List of latest iterations of the versions of the specified master,
beginning with the latest released version. |
(package private) static Set |
intersection(Set a,
Set b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PENDING_ECN_STATES
private static final Set PENDING_ECN_STATES
RELEASED_ECN_STATES
private static final Set RELEASED_ECN_STATES
CMIIBaselineHelper
CMIIBaselineHelper()
condensePartUsages
static Set condensePartUsages(Set partUsages)
getVersions
static List getVersions(Mastered master,
View view,
boolean releasedOnly)
throws WTException
- Returns a List of latest iterations of the versions of the specified master,
beginning with the latest released version.
- Parameters:
master
- master whose versions are to be returned
- Returns:
- an ordered list of (latest iterations of) versions of the master, beginning with the latest released version
- Throws:
ClassCastException
- if the versions of the argument master are not wt.lifecycle.LifeCycleManaged
WTException
getPartVersions
private static List getPartVersions(WTPartMaster m,
View view,
boolean releasedOnly)
throws WTException
- Throws:
WTException
getDocVersions
private static List getDocVersions(WTDocumentMaster m,
boolean releasedOnly)
throws WTException
- Throws:
WTException
getEPMDocVersions
private static List getEPMDocVersions(EPMDocumentMaster m,
boolean releasedOnly)
throws WTException
- Throws:
WTException
getVersions
private static List getVersions(Mastered m,
ConfigSpec lrcs,
ConfigSpec lcs,
boolean releasedOnly)
throws WTException
- Throws:
WTException
areEqual
private static boolean areEqual(Persistable p1,
Persistable p2)
getDocuments
static Set getDocuments(WTPart part)
throws WTException
- Throws:
WTException
difference
static Set difference(Set a,
Set b)
throws WTException
- Throws:
WTException
intersection
static Set intersection(Set a,
Set b)
throws WTException
- Throws:
WTException
getPartUsages
static Set getPartUsages(WTPart part)
throws WTException
- Throws:
WTException
getPendingECNs
static Set getPendingECNs(Changeable2 changeable)
throws WTException
- Returns a set of the ECNs (wt.change2.WTChangeOrder2 instances) pending
for the specified changeable.
- Parameters:
changeable
- changeable whose pending ECNs are to be returned
- Returns:
- a set of the ECNs (wt.change2.WTChangeOrder2 instances) pending for the specified changeable
- Throws:
WTException
getReleasingECN
static WTChangeOrder2 getReleasingECN(Changeable2 changeable)
throws WTException
- Returns the latest (by resolution date) ECN (wt.change2.WTChangeOrder2
instance) releasing the specified changeable.
- Parameters:
changeable
- changeable whose latest releasing ECN is to be returned
- Returns:
- the latest ECN (wt.change2.WTChangeOrder2 instance) releasing the specified changeable or null if the changeable is not released by any ECN
- Throws:
WTException
getECNs
private static LinkedList getECNs(Changeable2 changeable,
Set states)
throws WTException
- Throws:
WTException