com.ptc.windchill.cadx.common.util
Class CADDocTemplateUtilities

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.util.CADDocTemplateUtilities

public class CADDocTemplateUtilities
extends Object

This class contains convenience methods for accessing the EPMDocument template objects.


Field Summary
private static boolean VERBOSE
           
 
Constructor Summary
CADDocTemplateUtilities()
           
 
Method Summary
static QueryResult getTemplateCADDocs(WTContainer container, QuerySpec querySpec, Locale locale, boolean lookup, boolean removeOverridden, boolean firstMatchOnly)
          Return back the Template CAD Documents for the specified container and for the specified CAD Doc Query Spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE
Constructor Detail

CADDocTemplateUtilities

public CADDocTemplateUtilities()
Method Detail

getTemplateCADDocs

public static QueryResult getTemplateCADDocs(WTContainer container,
                                             QuerySpec querySpec,
                                             Locale locale,
                                             boolean lookup,
                                             boolean removeOverridden,
                                             boolean firstMatchOnly)
                                      throws WTException
Return back the Template CAD Documents for the specified container and for the specified CAD Doc Query Spec. The logic in this method is very similar to the logic in the StandardEnterpriseService.getTemplates() method. Since EPMDocument is not Templateable yet, it has been modified accordingly for alternate workaround solution. It is assumed that the template CAD Document is domain administered by the system domain of the container. This is how template CAD Doc is differentiated from the regular CAD Doc. It is expected that the calling component of this method will prepare QuerySpec to put other required criteria.

Parameters:
lookup - Look for these object starting from the specified container and all the way up the container hierarchy. Defauls to true.
removeOverridden - Defaults to true
firstMatchOnly - Whether or not only the first matching template should be returned. Default is true.
Throws:
WTException