|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.processor.FormTaskDelegate
com.ptc.windchill.cadx.newcaddoc.NewCadDocFormTaskDelegate
Supported API: true
Extendable: false
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 | |
NewCadDocFormTaskDelegate()
|
Method Summary | |
private boolean |
additionalValidation(EPMDocument tmplDoc)
This method must be called after validateData (). |
boolean |
addToWorkspace()
Adds the newly created object to workspace. |
int |
checkCADModelName()
Supported API: false |
int |
checkDocumentNumber()
Supported API: false |
boolean |
createDocument()
Supported API: false |
private String |
getNewNumberForReferencedDocument(String docNo,
String referredModelType)
|
EPMDocument |
getReferencedDocument(EPMDocument srcDoc)
|
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)
For the specified model type, get the template EPMDocument. |
void |
handleCheckCADModelNamePressed()
Supported API: false |
void |
handleCheckNumberPressed()
Supported API: false |
private void |
initializeEPMReferenceLink(EPMReferenceLink newLink,
EPMReferenceLink srcLink,
EPMDocument srcObj,
EPMDocument refObj)
|
private boolean |
isContainerValid(String containerName)
Check to see if the specified container is a valid container. |
private boolean |
isFolderValid(String docFolder,
WTContainer container)
Validate if the specified doc folder is valid one. |
void |
processAction(ContentHTTPStream contentStream)
Deprecated. |
private void |
removeUnwantedReferencedLinks(EPMDocument srcObj)
During copy, the EPMReferenceLink gets copied too when a EPMDocument with reference link is copied. |
boolean |
validateData()
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String checkNumber
private String docNumber
private String docFolder
private String CADModelName
private String modelType
private String docName
private EPMWorkspace wsObj
private CADDocSpecs cadDocSpec
private String desc
private EPMDocument newDocObj
private String checkCADModelName
private EPMDocument referredDocTempl
private String referredModelType
private String referredModelName
private String referredDocNumber
private EPMReferenceLink linkFromSrc
private EPMReferenceLink linkFromOtherSideObj
private Vector newObjVector
private String isAutoNumber
private String organizationOID
private WTContainer container
private Locale locale
public static final String modelNameUniqPropName
private static final int docNumberValid
private static final int docNumberBlank
private static final int docNumberTooLong
private static final int modelNameBlank
private static final int modelNameTooLong
private static final int modelNameHasInvalidChars
private static final int modelNameHasInvalidExtn
private static final int modelNameExists
private static final int modelNameValid
public static final int DESC_MAX_LENGTH
private static boolean VERBOSE
Constructor Detail |
public NewCadDocFormTaskDelegate()
Method Detail |
public int checkDocumentNumber() throws WTException
WTException
public boolean validateData()
public boolean createDocument() throws WTException
WTException
public void handleCheckNumberPressed()
public boolean addToWorkspace() throws WTException
WTException
public void handleCheckCADModelNamePressed()
public int checkCADModelName() throws WTException
WTException
public void processAction(ContentHTTPStream contentStream) throws Exception
Use the addToResponse
methods to pass back messages on the status/results of the action.
Supported API: true
processAction
in class FormTaskDelegate
contentStream
-
Exception
private EPMDocument getTemplateEPMDocument(String modelType) throws WTException
WTException
private EPMDocument getTemplateByConfiguredDocNumber(String modelType) throws WTException
WTException
private EPMDocument getTemplateCadDocForContainer(String modelType) throws WTException
WTException
public EPMDocument getReferencedDocument(EPMDocument srcDoc) throws WTException
WTException
private String getNewNumberForReferencedDocument(String docNo, String referredModelType)
private boolean additionalValidation(EPMDocument tmplDoc)
private void initializeEPMReferenceLink(EPMReferenceLink newLink, EPMReferenceLink srcLink, EPMDocument srcObj, EPMDocument refObj) throws WTPropertyVetoException
WTPropertyVetoException
private void removeUnwantedReferencedLinks(EPMDocument srcObj) throws WTException
WTException
private boolean isContainerValid(String containerName)
private boolean isFolderValid(String docFolder, WTContainer container) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |