Class AbstractDiscrepancyResolver
java.lang.Object
com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyProcessor
com.ptc.windchill.associativity.reconciliation.resolver.AbstractDiscrepancyResolver
- Direct Known Subclasses:
AbstractAddUsageResolver
Abstract for discrepancy resolvers which are used to resolve particular types of discrepancies.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyProcessor
AbstractDiscrepancyProcessor.ConsumptionData -
Field Summary
Fields inherited from class com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyProcessor
BASE_SERVICE_LOCATOR, containerRef, DISCREPANCY_RESOURCE, EMPTY_STRING, EQUIVALENCE_CACHE, EQUIVALENTPART_CACHE, FIRST_LEVEL_EQUIVALENCE_PATHS, MAPSB_PARAM_COPY_OVER_CONTEXT, OCCURRENCE_PATH_CACHE, OTHERSIDE_OCC_PATH_CACHE, OTHERSIDE_USAGE_PATH_CACHE, RESOURCE, UPSTREAM_OCCURRENCE_CACHE -
Method Summary
Modifier and TypeMethodDescriptionprotected List<EquivalenceLink> createEquivalenceLinks(Set<AssociativePath> sourceAssociativePaths, AssociativePath downstreamAssociativePath, ReconciliationContext context, Collection<EquivalenceLinkAnnotation> equivalenceLinkAnnotations, boolean checkForExistingEquivalent) Creates equivalent link between sourcepaths's leaf and DownPath leaf if no link exist between them and sets annotaions on link.protected abstract ReconciliationReportresolve(ReconciliationContext context, Collection<? extends Discrepancy2> discrepanciesToResolve) Supported API: trueMethods inherited from class com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyProcessor
areEqual, checkoutAndHandleReplacements, createUsageLinkAndGetAssociativePath, doConsumptionAnalysis, fetchAndCacheDownstreamEquivalenceLinks, fetchEquivalenceLinks, fetchEquivalentParts, filterConsumedPaths, filterDownEquivalents, getAllOccurrences, getAllSplitDownEquivalentContextMasters, getAssembleToOrderDAO, getAssociativeDAO, getBomService, getChildrenInfo, getClassificationAttributeDAO, getCopyOverDelegateFactory, getCurrentToOldChangeItems, getDescriptorFactory, getDiscrepancyDelegate, getDiscrepantConsumedOccPaths, getDiscrepantConsumedUsagePaths, getDiscrepantConsumedUsagePaths, getDownConsumedPath, getDownstreamEquivalentContextMasters, getEffectivityDAO, getEquivalenceDAO, getEquivalenceManager, getExpressionService, getFactory, getFilteredDownstreamEquivalent, getFilteredDownstreamEquivalents, getFirstLevelEquivalentPaths, getIteratedDAO, getLocalizedMessage, getLocalizer, getNavCriteriaDAO, getOccurrenceManager, getParentAssociative, getPartDAO, getPartPathManager, getPathManager, getPersistableDAO, getPropertiesParser, getResolutionOption, getUpdateQuantityService, getUsagePathLinkManager, hasEquivalenceAnnotation, isAlternateDiscpreancy, isCheckedOutToAnotherUser, isProcessed, isSamePath, populateEquivalenceConsumptionData, populateImpactedUsageConsumptionData, populateOccurrenceConsumptionData, populateTypeInstances, populateUsageConsumptionData, setDownstreamEquivalentAssociativesToContext, updateAssociativePath
-
Method Details
-
resolve
protected abstract ReconciliationReport resolve(ReconciliationContext context, Collection<? extends Discrepancy2> discrepanciesToResolve) throws WTException Supported API: true- Parameters:
context-discrepanciesToResolve-- Returns:
- Throws:
WTException
-
createEquivalenceLinks
protected List<EquivalenceLink> createEquivalenceLinks(Set<AssociativePath> sourceAssociativePaths, AssociativePath downstreamAssociativePath, ReconciliationContext context, Collection<EquivalenceLinkAnnotation> equivalenceLinkAnnotations, boolean checkForExistingEquivalent) throws WTException Creates equivalent link between sourcepaths's leaf and DownPath leaf if no link exist between them and sets annotaions on link. Upstream context and Downstream Context for Equivalence link are set from First view of navigation criteria.
Supported API: true- Parameters:
sourceAssociativePaths-downstreamAssociativePath-context-equivalenceLinkAnnotations-checkForExistingEquivalent- if this flag is true then it checks for existing links with current and predecessors. if link exist then new link is not created.- Returns:
- Throws:
WTException
-