Package wt.associativity
Interface BomService
- All Known Implementing Classes:
StandardBomService
Service for upstreamd and downstream Bom related use cases
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEquivalenceLinks(WTPart[] downstreamParts, WTPart[] upstreamParts) Creates Equivalence Link between all elements of Upstream Part array and Downstream Part array If an Equivalence Link already exists between the 2 elements, it ignores the creation and proceeds with the next Equivalence Link creation.findDownstreamEquivalent(Iterated iterate) find the downstream iterated that is equivalent to the given upstream iterated
Supported API: truefindOutOfDateEquivalence(ObjectReference source, NCServerHolder otherSideCriteria, ViewReference[] sourceViewReferences, ViewReference[] otherSideViewReferences, boolean getDownstream, TypeFilter allowedTypesOnOtherSide) Deprecated.findUpstreamEquivalent(Iterated iterated) find the upstream iterated that is equivalent to the given downstream iterated
Supported API: truefindUpstreamFromDownstream(PathOccurrence consumes) retreive the upstream paths consumed by this downstream path.<T extends Iterated>
Map<T, Collection<EquivalenceLink>> getFilteredEquivalenceLinks(Set<T> items, EquivalenceParams params)
Supported API: truegetFilteredEquivalenceLinks(Set<Associative> items, NavigationCriteria upnc, NavigationCriteria downnc, boolean getDownstream, TypeFilter allowedTypes)
Supported API: truegetFilteredEquivalentParts(Set<Associative> items, NavigationCriteria upnc, NavigationCriteria downnc, boolean getDownstream) Get other side equivalent part matching the given upstream downstream context and other side config spec.getFilteredEquivalentParts(Set<Associative> items, NavigationCriteria upnc, NavigationCriteria downnc, Long annotation, boolean getDownstream) Get other side equivalent part matching annotation and the given upstream downstream context and other side config spec.getPartsFromPart(WTPart part, NCServerHolder nc_server_holder, boolean only_return_other_side)
Supported API: truegetPartsMapFromPart(WTPart part, NCServerHolder nc_server_holder, FilteredStatus filter_status, boolean bReturn_filtered)
Supported API: true
-
Method Details
-
getPartsFromPart
QueryResult getPartsFromPart(WTPart part, NCServerHolder nc_server_holder, boolean only_return_other_side) throws WTException
Supported API: true- Throws:
WTException
-
getPartsMapFromPart
Map<CSCollectedFromObj,Persistable> getPartsMapFromPart(WTPart part, NCServerHolder nc_server_holder, FilteredStatus filter_status, boolean bReturn_filtered) throws WTException
Supported API: true- Throws:
WTException
-
findOutOfDateEquivalence
@Deprecated WTCollection findOutOfDateEquivalence(ObjectReference source, NCServerHolder otherSideCriteria, ViewReference[] sourceViewReferences, ViewReference[] otherSideViewReferences, boolean getDownstream, TypeFilter allowedTypesOnOtherSide) throws WTException Deprecated.As of 13.0.1.0, usegetFilteredEquivalenceLinks(Set, EquivalenceParams)Use API to find only out of date downstream equivalent parts. It returns latest of all the out of date parts from current iteration if any else from previous iteration.
Supported API: true- Parameters:
source-otherSideCriteria-sourceViewReferences-otherSideViewReferences-getDownstream-- Returns:
- Throws:
WTException
-
findDownstreamEquivalent
find the downstream iterated that is equivalent to the given upstream iterated
Supported API: true- Parameters:
iterate-- Returns:
- QueryResult
- Throws:
WTException
-
findUpstreamEquivalent
find the upstream iterated that is equivalent to the given downstream iterated
Supported API: true- Parameters:
iterated-- Returns:
- QueryResult
- Throws:
WTException
-
findUpstreamFromDownstream
retreive the upstream paths consumed by this downstream path. The result is a collection of PathOccurrence
Supported API: true- Parameters:
consumes- the downstream path- Returns:
- WTCollection
- Throws:
WTException
-
createEquivalenceLinks
void createEquivalenceLinks(WTPart[] downstreamParts, WTPart[] upstreamParts) throws WTException, WTPropertyVetoException Creates Equivalence Link between all elements of Upstream Part array and Downstream Part array If an Equivalence Link already exists between the 2 elements, it ignores the creation and proceeds with the next Equivalence Link creation.
Supported API: true- Parameters:
downstreamParts- : Array of Downstream PartsupstreamParts- : Array of Upstream Parts- Throws:
WTExceptionWTPropertyVetoException
-
getFilteredEquivalenceLinks
<T extends Iterated> Map<T,Collection<EquivalenceLink>> getFilteredEquivalenceLinks(Set<T> items, EquivalenceParams params) throws WTException
Supported API: true- Parameters:
items-params-- Returns:
- Throws:
WTException
-
getFilteredEquivalenceLinks(Set, EquivalenceParams)