com.ptc.windchill.esi.tgt
Class ESIRootInheritTargetFinder

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

public final class ESIRootInheritTargetFinder
extends ESITargetFinderImpl



Supported API: true

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
private static int VECTOR_SIZE_MULTIPLIER
           
 
Fields inherited from class com.ptc.windchill.esi.tgt.ESITargetFinderImpl
 
Constructor Summary
ESIRootInheritTargetFinder()
           
 
Method Summary
private  void addBaseAssignments(Vector result, Persistable object, Collection baseAssignments)
           
 Collection getTargetAssnsFromAssns(Collection assns)
          Given a collection of ESITargetAssociations, eturns a Collection of ESITargetAssociations, The returned objecs 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.
 Collection getTargetAssnsFromObjects(Collection objects)
          Returns a Collection of ESITargetAssociations that are associated with the Persistables in the argument.
 Collection getTargetAssociations(Persistable object)
          Returns the targets assigned to an object.
 
Methods inherited from class com.ptc.windchill.esi.tgt.ESITargetFinderImpl
getBase, getUtility, setBase, setUtility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

VECTOR_SIZE_MULTIPLIER

private static final int VECTOR_SIZE_MULTIPLIER
Constructor Detail

ESIRootInheritTargetFinder

public ESIRootInheritTargetFinder()
Method Detail

getTargetAssnsFromObjects

public final Collection getTargetAssnsFromObjects(Collection objects)
                                           throws WTException
Returns a Collection of ESITargetAssociations that are associated with the Persistables in the argument. If the members of the collection have no assignment, use the assignments of the base object that was passed to the target finder by the initializer.

Supported API: true

Parameters:
objects - A collection of Persistable objects.
Returns:
Collection
Throws:
WTException

getTargetAssnsFromAssns

public final Collection getTargetAssnsFromAssns(Collection assns)
                                         throws WTException
Given a collection of ESITargetAssociations, eturns a Collection of ESITargetAssociations, The returned objecs 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:
Collection
Throws:
WTException

getTargetAssociations

public final Collection getTargetAssociations(Persistable object)
                                       throws WTException
Returns the targets assigned to an object. If no targets are assigned to the object, use the assignments of the base object.

Supported API: false

Parameters:
object - The object of interest.
Returns:
Collection
Throws:
WTException

addBaseAssignments

private void addBaseAssignments(Vector result,
                                Persistable object,
                                Collection baseAssignments)
                         throws WTException
Throws:
WTException