wt.epm.clients.relateditems
Class RelatedItemsProcessor

java.lang.Object
  extended bywt.epm.clients.relateditems.RelatedItemsProcessor
Direct Known Subclasses:
DocCentricProcessor, PartCentricProcessor

public abstract class RelatedItemsProcessor
extends Object


Nested Class Summary
protected static class RelatedItemsProcessor.ObjectGroup
          ObjectGroup is a collection of objects that share a common lineage.
protected static class RelatedItemsProcessor.ObjectInfoCache
           
 
Field Summary
protected static RelatedItemsOption GET_ALL
           
protected static RelatedItemsOption GET_NONE
           
protected static DependencyOption GET_REQUIRED
           
 
Constructor Summary
RelatedItemsProcessor()
           
 
Method Summary
protected  List getAssociated(List groups, AssociatedObjects associated, boolean buildOnly)
          Finds the associated parts or CAD documents for each group of objects.
protected  List getDependents(List groups, DependencyGraph dependencyGraph, boolean requiredOnly)
          Finds the required and optional dependents for each group of documents.
protected  List getDependents(List groups, DependencyGraph dependencyGraph, RelatedItemsSelector.IncludeType includeType, boolean requiredOnly)
          Finds the dependents for each group of documents or parts.
protected  List getDrawings(List groups, RelatedDrawings relatedDrawings)
          Finds the related drawings for each group of documents.
protected  List getFamilyMembers(List groups, FamilyTableFinder familyTableFinder)
          For each instance or generic in each group of documents, find the other instances and generics that belongs to the same family.
private  RelatedItemsProcessor.ObjectGroup getFamilyMembers(RelatedItemsProcessor.ObjectGroup group, WTValuedMap familyTableMap, WTKeyedMap familyMemberMap)
           
protected  void getFolders(RelatedItemsProcessor.ObjectInfoCache objectInfos)
          Finds the folders that the objects in the cache reside in.
private static ObjectIdentifier getKey(Persistable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_NONE

protected static final RelatedItemsOption GET_NONE

GET_ALL

protected static final RelatedItemsOption GET_ALL

GET_REQUIRED

protected static final DependencyOption GET_REQUIRED
Constructor Detail

RelatedItemsProcessor

public RelatedItemsProcessor()
Method Detail

getDependents

protected List getDependents(List groups,
                             DependencyGraph dependencyGraph,
                             boolean requiredOnly)
                      throws WTException
Finds the required and optional dependents for each group of documents.

Returns:
groups of required dependents and groups of optional dependents, one for each group of documents
Throws:
WTException

getDependents

protected List getDependents(List groups,
                             DependencyGraph dependencyGraph,
                             RelatedItemsSelector.IncludeType includeType,
                             boolean requiredOnly)
                      throws WTException
Finds the dependents for each group of documents or parts.

Returns:
groups of dependents, one for each group of objects (parts or documents)
Throws:
WTException

getDrawings

protected List getDrawings(List groups,
                           RelatedDrawings relatedDrawings)
                    throws WTException
Finds the related drawings for each group of documents.

Returns:
groups of drawings, one for each group of documents
Throws:
WTException

getAssociated

protected List getAssociated(List groups,
                             AssociatedObjects associated,
                             boolean buildOnly)
                      throws WTException
Finds the associated parts or CAD documents for each group of objects.

Returns:
groups of associated parts or documents, one for each group of objects
Throws:
WTException

getFamilyMembers

protected List getFamilyMembers(List groups,
                                FamilyTableFinder familyTableFinder)
                         throws WTException
For each instance or generic in each group of documents, find the other instances and generics that belongs to the same family.

Returns:
groups of included instances and generics, one for each group of documents
Throws:
WTException

getFolders

protected void getFolders(RelatedItemsProcessor.ObjectInfoCache objectInfos)
                   throws WTException
Finds the folders that the objects in the cache reside in.

Throws:
WTException

getFamilyMembers

private RelatedItemsProcessor.ObjectGroup getFamilyMembers(RelatedItemsProcessor.ObjectGroup group,
                                                           WTValuedMap familyTableMap,
                                                           WTKeyedMap familyMemberMap)
                                                    throws WTException
Throws:
WTException

getKey

private static ObjectIdentifier getKey(Persistable object)