Class ItemExpressionDiscrepancyDelegate
java.lang.Object
com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyProcessor
com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyDelegate
com.ptc.windchill.associativity.reconciliation.AbstractChangeableDiscrepancyDelegate
com.ptc.windchill.associativity.reconciliation.part.ItemExpressionDiscrepancyDelegate
- All Implemented Interfaces:
ChangeableDiscrepancyDelegate,DiscrepancyDelegate
Delegate for ItemExpression discrepancy
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.ConsumptionDataNested classes/interfaces inherited from interface com.ptc.windchill.associativity.reconciliation.DiscrepancyDelegate
DiscrepancyDelegate.CompareMode -
Field Summary
Fields inherited from class com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyDelegate
ITERATED_CHILD, RESOLVED_PATH_ROOTFields 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 TypeMethodDescriptiondetect(ReconciliationContext context, AssociativePath currentPath, AssociativePath oldPath)
Supported API: truegetChangeItems(ReconciliationContext context)
Supported API: true
Supported API: trueprotected AbstractDiscrepancy2
Supported API: trueresolve(ReconciliationContext context, Collection<? extends Discrepancy2> discrepancies)
Supported API: truetoJSON(ReconciliationContext context, Discrepancy2 discrepancy)
Supported API: truevoidverify(ReconciliationContext context, Collection<? extends Discrepancy2> discrepancies)
Supported API: trueMethods inherited from class com.ptc.windchill.associativity.reconciliation.AbstractChangeableDiscrepancyDelegate
getCurrentToOldChangeablesMethods inherited from class com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyDelegate
detect, fromJSON, getCurrentStringValue, getCurrentValueFromJSON, getDiscrepancyTarget, getDiscrepancyTypeDisplayName, getDiscrepantPath, getDiscrepantPathRoot, getFilteredIteration, getPathFromJSON, getPathFromJSON, getPreviousStringValue, getPreviousValueFromJSON, getResolvedPathRoot, getTargetPathRoot, getUpstreamImpactedObject, isOccurrenceBasedMethods 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, getCopyOverContext, 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, updateAssociativePathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.windchill.associativity.reconciliation.DiscrepancyDelegate
detect
-
Method Details
-
toJSON
Supported API: true- Specified by:
toJSONin interfaceDiscrepancyDelegate- Overrides:
toJSONin classAbstractDiscrepancyDelegate- Parameters:
context- - common datadiscrepancy- - theDiscrepancy2to convert to a JSON string- Returns:
- -
Discrepancy2consistent with JSON. - Throws:
WTException
-
detect
public Collection<Discrepancy2> detect(ReconciliationContext context, AssociativePath currentPath, AssociativePath oldPath) throws WTException
Supported API: true- Parameters:
context- - the common data- Throws:
WTException
-
resolve
public ReconciliationReport resolve(ReconciliationContext context, Collection<? extends Discrepancy2> discrepancies) throws WTException
Supported API: true- Parameters:
context- - the common datadiscrepancies- - the discrepancies to resolve. can be assumed to be of same type against which the delegate configuration is done. these should not be updated by this method, but create new instances for returning.- Returns:
- - returns ReconciliationReport containing all resolved discrepancies
- Throws:
WTException
-
verify
public void verify(ReconciliationContext context, Collection<? extends Discrepancy2> discrepancies) throws WTException
Supported API: true- Parameters:
context- - the common datadiscrepancies- - the discrepancies to resolve. can be assumed to be of same type against which the delegate configuration is done. this method may update the discrepancies- Throws:
WTException
-
getDiscrepancyInstance
protected AbstractDiscrepancy2 getDiscrepancyInstance(ReconciliationContext context) throws WTException
Supported API: true- Specified by:
getDiscrepancyInstancein classAbstractDiscrepancyDelegate- Returns:
- - bare minimum instance of the discrepancy
- Throws:
WTException
-
getChangeItems
Supported API: true- Parameters:
context- - Bean which stores information for Discrepancy- Returns:
- Throws:
WTException
-
getCompareMode
Supported API: true
-