com.ptc.windchill.cadx.placeHolder
Class PlaceHolderTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bycom.ptc.windchill.cadx.placeHolder.PlaceHolderTaskDelegate
All Implemented Interfaces:
ContextHolder, Serializable

public class PlaceHolderTaskDelegate
extends FormTaskDelegate
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  CADDocSpecs cadDocSpec
           
private static String CLASSNAME
           
private  WTContainer container
           
private  EPMWorkspace currentWorkspace
           
private  EncodingConverter encoder
           
private  EPMDocument newDocObj
           
private  Vector newObjVector
           
private static String RESOURCE
           
private  List responseMessageList
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.templateutil.processor.FormTaskDelegate
 
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS
 
Constructor Summary
PlaceHolderTaskDelegate()
           
 
Method Summary
private  void addToResponseMessageList(String key, Object[] params)
           
private  boolean copyDocumentContent(String modelType, String CADModelName)
           
private  boolean createDocument(String modelType, String CADModelName)
           
private static Locale getLocale()
           
private  String getModelTypeforproeExt(String extension)
           
private  EPMDocument getTemplateByConfiguredDocNumber(String modelType)
          For the specified model type, get the template EPMDocument as per the template cad doc number specified in the configuration file for this type of model.
private  EPMDocument getTemplateCadDocForContainer(String modelType)
          For the specified model type, get the template cad doc as found in the container.
private  EPMDocument getTemplateEPMDocument(String modelType)
           
 void processAction(ContentHTTPStream contentStream)
          Deprecated.  
protected  void redirectToDefaultRefererPage(Object contextObj)
           
protected static EPMDocument renameDocContents(EPMDocument newDocument)
           
private  void setResponseMessages()
          From the saved list of response messages, construct a one-liner message and send that as response message.
 
Methods inherited from class wt.templateutil.processor.FormTaskDelegate
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, deleteFormDataFromSession, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getState, getStatus, saveFormDataInSession, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, switchPages
 
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

currentWorkspace

private EPMWorkspace currentWorkspace

newDocObj

private EPMDocument newDocObj

cadDocSpec

private CADDocSpecs cadDocSpec

newObjVector

private Vector newObjVector

container

private WTContainer container

encoder

private EncodingConverter encoder

responseMessageList

private List responseMessageList

VERBOSE

private static boolean VERBOSE
Constructor Detail

PlaceHolderTaskDelegate

public PlaceHolderTaskDelegate()
Method Detail

processAction

public void processAction(ContentHTTPStream contentStream)
                   throws Exception
Deprecated.  

Processed the desired picker action and then updates the state so that the desired submit action response page can be generated.

Use the addToResponse methods to pass back messages on the status/results of the action.

Supported API: false

Specified by:
processAction in class FormTaskDelegate
Parameters:
contentStream -
Throws:
Exception

redirectToDefaultRefererPage

protected void redirectToDefaultRefererPage(Object contextObj)

getModelTypeforproeExt

private String getModelTypeforproeExt(String extension)

copyDocumentContent

private boolean copyDocumentContent(String modelType,
                                    String CADModelName)
                             throws WTException
Throws:
WTException

createDocument

private boolean createDocument(String modelType,
                               String CADModelName)
                        throws WTException
Throws:
WTException

renameDocContents

protected static EPMDocument renameDocContents(EPMDocument newDocument)
                                        throws WTException
Throws:
WTException

getTemplateEPMDocument

private EPMDocument getTemplateEPMDocument(String modelType)
                                    throws WTException
Throws:
WTException

getTemplateCadDocForContainer

private EPMDocument getTemplateCadDocForContainer(String modelType)
                                           throws WTException
For the specified model type, get the template cad doc as found in the container.

Throws:
WTException

getTemplateByConfiguredDocNumber

private EPMDocument getTemplateByConfiguredDocNumber(String modelType)
                                              throws WTException
For the specified model type, get the template EPMDocument as per the template cad doc number specified in the configuration file for this type of model. For example, the cad doc number could be specified in the .ini file.

Throws:
WTException

getLocale

private static Locale getLocale()

addToResponseMessageList

private void addToResponseMessageList(String key,
                                      Object[] params)

setResponseMessages

private void setResponseMessages()
From the saved list of response messages, construct a one-liner message and send that as response message. This is the work-around way of showing console type messages until console support is added for this functionality.