Class ESIRootInheritTargetFinder

java.lang.Object
com.ptc.windchill.esi.tgt.ESITargetFinderImpl
com.ptc.windchill.esi.tgt.ESIRootInheritTargetFinder
All Implemented Interfaces:
ESITargetFinder

public final class ESIRootInheritTargetFinder extends ESITargetFinderImpl
This class implements one form of implicit assignment. If the objects have no explicit distribution target assignments, they are assumed to be assigned to the same distribution targets as the base object.Target finder that finds explicit target assignments from the base object of a structure consider them as implicit assignments for child object and associates them to specified child of base object.

Supported API: true

Extendable: false
  • Method Details

    • getTargetAssnsFromObjects

      public final Collection<ESITargetAssociation> getTargetAssnsFromObjects(Collection<Persistable> objects) throws WTException
      Returns a Collection of ESITargetAssociation objects that are associated with the input Persistables. The output collection consists of all the associations for the input objects, including those that are created by this method for those objects, using the base object's associations as appropriate.

      Supported API: true
      Parameters:
      objects - - A collection of Persistable objects.
      Returns:
      A collection of ESITargetAssociations.
      Throws:
      WTException
    • getTargetAssnsFromAssns

      public final Collection<ESITargetAssociation> getTargetAssnsFromAssns(Collection<ESITargetAssociation> assns) throws WTException
      Given a collection of ESITargetAssociations, returns a Collection of ESITargetAssociations. The returned objects are the persisted versions that are associated with the Persistable objects contained in the ESITargetAssociation objects in the argument.
      If a persistable object has no target assignments, the assignments of the base object are returned for that persistable object.

      Supported API: true
      Parameters:
      assns - - A collection of ESITargetAssociations.
      Returns:
      A collection of ESITargetAssociations that are persisted.
      Throws:
      WTException