com.ptc.windchill.cadx.newcaddoctemplate
Class CreateTemplateCADDocumentFormTaskDelegate
java.lang.Object
wt.templateutil.processor.FormTaskDelegate
com.ptc.windchill.cadx.newcaddoctemplate.CreateTemplateCADDocumentFormTaskDelegate
- All Implemented Interfaces:
- ContextHolder
- public class CreateTemplateCADDocumentFormTaskDelegate
- extends FormTaskDelegate
Supported API: false
Extendable: false
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 |
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 |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
locale
private Locale locale
cadDocSpec
private CADDocSpecs cadDocSpec
sourceCADDocOid
private String sourceCADDocOid
number
private String number
name
private String name
CADModelName
private String CADModelName
modelType
private String modelType
NEWCADDOCRESOURCE
private static final String NEWCADDOCRESOURCE
- See Also:
- Constant Field Values
modelNameUniqPropName
public static final String modelNameUniqPropName
- See Also:
- Constant Field Values
DOC_TYPE_FIELDNAME
private static final String DOC_TYPE_FIELDNAME
- See Also:
- Constant Field Values
CONTAINER_FIELDNAME
private static final String CONTAINER_FIELDNAME
- See Also:
- Constant Field Values
docNumberValid
private static final int docNumberValid
- See Also:
- Constant Field Values
docNumberExists
private static final int docNumberExists
- See Also:
- Constant Field Values
docNumberBlank
private static final int docNumberBlank
- See Also:
- Constant Field Values
docNumberTooLong
private static final int docNumberTooLong
- See Also:
- Constant Field Values
modelNameBlank
private static final int modelNameBlank
- See Also:
- Constant Field Values
modelNameTooLong
private static final int modelNameTooLong
- See Also:
- Constant Field Values
modelNameHasInvalidChars
private static final int modelNameHasInvalidChars
- See Also:
- Constant Field Values
modelNameHasInvalidExtn
private static final int modelNameHasInvalidExtn
- See Also:
- Constant Field Values
modelNameExists
private static final int modelNameExists
- See Also:
- Constant Field Values
modelNameValid
private static final int modelNameValid
- See Also:
- Constant Field Values
DESC_MAX_LENGTH
public static final int DESC_MAX_LENGTH
- See Also:
- Constant Field Values
VERBOSE
private static boolean VERBOSE
CreateTemplateCADDocumentFormTaskDelegate
public CreateTemplateCADDocumentFormTaskDelegate()
processAction
public void processAction(ContentHTTPStream contentStream)
throws Exception
- Deprecated.
- Processed the desired action and then updates the state so that
the desired 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
doCreation
private void doCreation(String formName)
throws WTException
- Throws:
WTException
validateForm
private boolean validateForm(String pageName,
Properties fData)
throws WTException
- Validate the form data values.
Note that the code in this method are, for now, cloned from the
\CadxHtmlUi\src\com\ptc\windchill\cadx\newcaddoc\NewCadDocFormTaskDelegate.java class. In future, this
logic should be put in some utility method and then used from there to avoid logic duplication.
- Throws:
WTException
getContainerOid
private String getContainerOid(String formName)
throws WTException
- Throws:
WTException
getDocType
private String getDocType(String formName)
throws WTException
- Throws:
WTException
getFormValueFromSession
public String getFormValueFromSession(String formName,
String inputFieldName,
String defaultValue)
throws WTException
- Throws:
WTException
checkDocumentNumber
public int checkDocumentNumber(String docNumber)
throws WTException
- Throws:
WTException
getEPMDocumentByOid
private EPMDocument getEPMDocumentByOid(String objectOid)
- For the specified object id (in the oid format) for the EPMDocument ovbject, return back the
EPMDocument.