com.ptc.windchill.uwgm.common.pdm
Class PartDocumentRetriever

java.lang.Object
  extended bycom.ptc.windchill.uwgm.common.pdm.AbstractRetriever
      extended bycom.ptc.windchill.uwgm.common.pdm.PartDocumentRetriever
All Implemented Interfaces:
PartDocumentFinder

public class PartDocumentRetriever
extends AbstractRetriever

Helper class to retrieve EPMDocuments and WTPart by PartDocumentRetriever specs


Field Summary
private  WTContainer container
           
private static Log log
           
 
Fields inherited from class com.ptc.windchill.uwgm.common.pdm.AbstractRetriever
configSpec, workspaceContent
 
Constructor Summary
PartDocumentRetriever(WTContainer container)
          constructs PartDocumentRetriever object
 
Method Summary
protected  Persistable getRetrieverScope()
          returns WTContainer as RetrieverScope
protected  WTKeyedMap retrievePartDocuments(RetrieverSpec.Type specType, Collection retrieverSpecs, Class iterCl)
          retrieves Persistables of given iterCl class specified in Collection of retrieverSpecs
protected  WTKeyedMap retrievePartDocumentsByOID(Collection retrieverSpecs, Class iterCl)
          retrieves Persistables specified in Collection of retrieverSpecs by OID
 
Methods inherited from class com.ptc.windchill.uwgm.common.pdm.AbstractRetriever
postprocessFindOfSpecs, retrieveEPMDocumentMap, retrieveEPMDocuments, retrievePartDocuments, retrievePartDocumentsFromWorkspace, retrieveWTPartMap, retrieveWTParts, setConfigSpec, setWorkspaceContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

private WTContainer container

log

private static Log log
Constructor Detail

PartDocumentRetriever

public PartDocumentRetriever(WTContainer container)
constructs PartDocumentRetriever object

full blown constructor for use to retrieve documents and parts from WS and shared folders

Parameters:
container -
Method Detail

retrievePartDocuments

protected WTKeyedMap retrievePartDocuments(RetrieverSpec.Type specType,
                                           Collection retrieverSpecs,
                                           Class iterCl)
                                    throws WTException
retrieves Persistables of given iterCl class specified in Collection of retrieverSpecs

Specified by:
retrievePartDocuments in class AbstractRetriever
Parameters:
specType - SpecType
retrieverSpecs - Collection
iterCl - Class
Returns:
WTKeyedMap [Persistable, Spec]
Throws:
WTException

retrievePartDocumentsByOID

protected WTKeyedMap retrievePartDocumentsByOID(Collection retrieverSpecs,
                                                Class iterCl)
                                         throws WTException
retrieves Persistables specified in Collection of retrieverSpecs by OID

Specified by:
retrievePartDocumentsByOID in class AbstractRetriever
Parameters:
retrieverSpecs - Collection
iterCl - Class
Returns:
WTKeyedMap [Persistable, Spec]
Throws:
WTException

getRetrieverScope

protected Persistable getRetrieverScope()
returns WTContainer as RetrieverScope

Specified by:
getRetrieverScope in class AbstractRetriever
Returns:
Persistable