Class AbstractSubcontractDiscrepancyDelegate
java.lang.Object
com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyProcessor
com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyDelegate
com.ptc.windchill.associativity.reconciliation.part.AbstractSubcontractDiscrepancyDelegate
- All Implemented Interfaces:
DiscrepancyDelegate
Discrepancy Delegate for Subcontract 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) OOTB does nothing, Can be override by customization code
Supported API: truefromJSON(ReconciliationContext context, String discrepancyData) Supported API: truetoJSON(ReconciliationContext context, Discrepancy2 discrepancy) Builds the json for the discrepancy.Methods inherited from class com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancyDelegate
detect, 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, getCompareMode, resolve, verify
-
Method Details
-
toJSON
Builds the json for the discrepancy.
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
-
fromJSON
public Discrepancy2 fromJSON(ReconciliationContext context, String discrepancyData) throws WTException Supported API: true- Specified by:
fromJSONin interfaceDiscrepancyDelegate- Overrides:
fromJSONin classAbstractDiscrepancyDelegate- Parameters:
context- - common datadiscrepancyData- - the JSON string to convert back toDiscrepancy2instance- Returns:
- -
Discrepancy2consistent with JSON. - Throws:
WTException
-
detect
public Collection<Discrepancy2> detect(ReconciliationContext context, AssociativePath currentPath, AssociativePath oldPath) throws WTException OOTB does nothing, Can be override by customization code
Supported API: true- Parameters:
context- - the common data- Throws:
WTException
-