com.ptc.windchill.enterprise.templates
Interface TemplatesObjectDelegate

All Known Implementing Classes:
TemplatesWTDocumentDelegate

public interface TemplatesObjectDelegate

Delegate for the UI to process templates. The appropriate function is picked by the factory based on the object type irrespective of the solution. For ex:- The appropriate WTDocument or WTPart method will be picked based on the object type.

Supported API: true

Extendable: false


Method Summary
 RevisionControlled newObjFromTemplate(Templateable objTemplate, String context)
          Create an object from template and set its context, defaults and mandatory values etc.
 Templateable newTemplate(String objType, String context)
          Create an object that will be used as a template object and set its context, defaults and mandatory values etc.
 Templateable newTemplate(TypeIdentifier objType, WTContainer context)
          Create an object that will be used as a template object and set its context, defaults and mandatory values etc.
 

Method Detail

newTemplate

public Templateable newTemplate(String objType,
                                String context)
                         throws WTException
Create an object that will be used as a template object and set its context, defaults and mandatory values etc. This new object will be stored in the context that this operation is started in.

Supported API: true

Parameters:
objType - Type to use for the new template.
context - Context used to store this new template
Returns:
Templateable
Throws:
WTException

newTemplate

public Templateable newTemplate(TypeIdentifier objType,
                                WTContainer context)
                         throws WTException
Create an object that will be used as a template object and set its context, defaults and mandatory values etc. This new object will be stored in the context that this operation is started in.

Supported API: true

Parameters:
objType - Type to use for the new template.
context - Context used to store this new template
Returns:
Templateable
Throws:
WTException

newObjFromTemplate

public RevisionControlled newObjFromTemplate(Templateable objTemplate,
                                             String context)
                                      throws WTException
Create an object from template and set its context, defaults and mandatory values etc. This new object will be stored in the context that this operation is started in.

Supported API: true

Parameters:
objTemplate - Template to use for the new object.
context - Context used to store this object created from template
Returns:
RevisionControlled
Throws:
WTException