Class ESIPartUtility

java.lang.Object
com.ptc.windchill.esi.esipart.ESIPartUtility

public final class ESIPartUtility extends Object
This class is the public interface to the esipart package. It provides generally useful methods for clients external to the package.

Supported API: true

Extendable: false
  • Method Details

    • getPartIteration

      public static final Collection<ESIPartMasterIteration> getPartIteration(Collection<? extends WTPartMaster> partMasters, NavigationCriteria navigationCriteria) throws WTException
      Returns a collection of ESIPartMasterIteration objects given a collection of part masters. The method uses the ConfigSpec instance(s) associated with the input NavigationCriteria object to fetch the part iteration for a given master.

      Supported API: true
      Parameters:
      partMasters - Collection of part masters for which to fetch ESIPartMasterIteration objects.
      navigationCriteria - Input NavigationCriteria object to use for fetching the part iteration for a given master.
      Returns:
      Collection of ESIPartMasterIteration objects.
      Throws:
      WTException
    • getPartIteration

      public static final ESIPartMasterIteration getPartIteration(WTPartMaster partMaster, NavigationCriteria navigationCriteria) throws WTException
      Returns an ESIPartMasterIteration objects given a part masters. The method uses the ConfigSpec instance(s) associated with the input NavigationCriteria object to fetch the part iteration for a given master.

      Supported API: true
      Parameters:
      partMaster - - The part masters for which to fetch ESIPartMasterIteration objects.
      navigationCriteria - - Input NavigationCriteria object to use for fetching the part iteration for a given master.
      Returns:
      An ESIPartMasterIteration objects.
      Throws:
      WTException
    • isIterationInSameViewVariations

      public static boolean isIterationInSameViewVariations(ViewManageable newPartIteration, ViewManageable oldPartIteration)
      Check if the input part iterations are from the same view and have the same values for variation1 (i.e. BOM Usage) and variation2 (i.e BOM Alternate).


      Supported API: true
      Parameters:
      newPartIteration - - The new iteration of part to be compared.
      oldPartIteration - - The old iteration of part with which new iteration needs to be compared.
      Returns:
      - true, if the input part iterations are from the same view and have the same variation1 and variation2 values; otherwise false.