Package com.ptc.windchill.esi.tgt
Class ESISimplePartTargetFinder
java.lang.Object
com.ptc.windchill.esi.tgt.ESITargetFinderImpl
com.ptc.windchill.esi.tgt.ESISimplePartTargetFinder
- All Implemented Interfaces:
ESITargetFinder
This class implements explicit assignment. It delegates all of its work to the ESITargetUtility class. Target finder
finds the explicit assignments for an object by querying the database.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<ESITargetAssociation> 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.final Collection<ESITargetAssociation> getTargetAssnsFromObjects(Collection<Persistable> objects) Returns a Collection ofESITargetAssociationobjects that are associated with the specified Persistables in the argument.final Collection<ESITargetAssociation> getTargetAssociations(Persistable object) Returns the targets assigned to an object.Methods inherited from class com.ptc.windchill.esi.tgt.ESITargetFinderImpl
getUtility, setUtility
-
Method Details
-
getTargetAssnsFromObjects
public final Collection<ESITargetAssociation> getTargetAssnsFromObjects(Collection<Persistable> objects) throws WTException Returns a Collection ofESITargetAssociationobjects that are associated with the specified Persistables in the argument.
Supported API: true- Parameters:
objects- - A collection of Persistable objects.- Returns:
- A collection ESITargetAssociations that are associated with the specified Persistables
- 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.
Supported API: true- Parameters:
assns- - A collection of ESITargetAssociations.- Returns:
- A collection of ESITargetAssociations which are the persisted versions that are associated with the Persistable objects contained in the ESITargetAssociation objects in the argument.
- Throws:
WTException
-
getTargetAssociations
public final Collection<ESITargetAssociation> getTargetAssociations(Persistable object) throws WTException Returns the targets assigned to an object.
Supported API: true- Parameters:
object- - The object of interest.- Returns:
- A collection of targets in the form of ESITargetAssociations.
- Throws:
WTException
-