Class ReconciliationFactory

java.lang.Object
com.ptc.windchill.associativity.reconciliation.ReconciliationFactory

public class ReconciliationFactory extends Object
The factory to fetch the delegates for reconciliation, discrepancies and criteria etc. This caches the information to not query the xconf files each time, which mean restart is needed if configurations are changed

Supported API: true

Extendable: false
  • Method Details

    • getReconciliationDelegate

      public ReconciliationDelegate getReconciliationDelegate(Class requestor)
      Get the delegate for overall reconciliation flow. If no configured delegate found or there is error retriving it, we return default DefaultReconciliationDelegate Supported API: true

      Parameters:
      requestor - - the class name, typically WTPart
      Returns:
      - the configured or default delegate
    • getAddResolver

      public AbstractAddUsageResolver getAddResolver(Class requestor, String selector) throws WTException
      Get the configured resolver for the DiscrepancyType.ADDUSAGE, if none configured, we return default AddedUsageDiscrepancyResolver Supported API: true

      Parameters:
      requestor - - the class name, typically WTPart
      Returns:
      - the configured or default resolver
      Throws:
      WTException
    • getDelegate

      public DiscrepancyDelegate getDelegate(DiscrepancyType type)
      Get the configured delegate for the given DiscrepancyType Supported API: true

      Parameters:
      type - - the discrepancy type for which we need the delegate
      Returns:
      - the configured or default resolver
    • getCriteria

      public AbstractCriteria getCriteria(String type, String criteriaTypeInput)
      Get the configured criteria for the given EnumeratedType.toString() Supported API: true

      Parameters:
      type - - the criteria type for which we need the implementation
      criteriaTypeInput - - this is optional and needed for some criteria types like BaselineCriteria to tell the baseline number to be used
      Returns:
      - the configured or default criteria
    • getDefaultCriteria

      public AbstractCriteria getDefaultCriteria()
      Get the default criteria. If no default defined, it returns OutOfDateCriteria Supported API: true

      Returns:
      - the default criteria
    • getAllConfiguredTypes

      public Collection<DiscrepancyType> getAllConfiguredTypes()
      Get all the DiscrepancyType which have a configured delegate against them in the xconf. Supported API: true

      Returns:
      - all the discrepancy types which have a delegate configured.