|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.core.task.Task
com.ptc.core.task.AtomicTask
com.ptc.windchill.uwgm.task.newcaddoc.NewCadDocTask
Supported API: false
Extendable: false
Fields inherited from class com.ptc.core.task.Task |
log |
Constructor Summary | |
NewCadDocTask()
|
Method Summary | |
protected TaskResult |
_run()
Supported API: false |
private boolean |
additionalValidation(EPMDocument tmplDoc)
This method must be called after validateData (). |
boolean |
addToWorkspace()
|
int |
checkCADModelName()
|
int |
checkDocumentNumber()
|
boolean |
createDocument()
|
String |
getName()
Gets the value of the attribute: name; Localized String that represents the "user task" label 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()
|
void |
handleCheckNumberPressed()
|
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. |
private boolean |
isNonModeledAttributesPresentInForm(Map taskData)
Returns true if any non modeled attributes are present in the form |
private boolean |
processNewCadDocAction(DefaultTaskData taskData)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(NewCadDocTask thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
removeUnwantedReferencedLinks(EPMDocument srcObj)
During copy, the EPMReferenceLink gets copied too when a EPMDocument with reference link is copied. |
private EPMDocument |
setEntityAttributes(EPMDocument document)
Set soft type attributes for the specified CAD Document. |
boolean |
validateData()
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class com.ptc.core.task.AtomicTask |
readVersion, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private String checkNumber
private String docNumber
private String docFolder
private String CADModelName
private String modelType
private String templateDocNumber
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 Locale locale
private static boolean VERBOSE
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
Constructor Detail |
public NewCadDocTask()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AtomicTask
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AtomicTask
input
-
IOException
ClassNotFoundException
protected boolean readVersion(NewCadDocTask thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected TaskResult _run() throws WTException
_run
in class AtomicTask
WTException
private boolean processNewCadDocAction(DefaultTaskData taskData) throws WTException
WTException
public int checkDocumentNumber() throws WTException
WTException
public boolean validateData()
public boolean createDocument() throws WTException
WTException
private EPMDocument setEntityAttributes(EPMDocument document) throws WTException
document
- persisted cad doc
WTException
private boolean isNonModeledAttributesPresentInForm(Map taskData)
public void handleCheckNumberPressed()
public boolean addToWorkspace() throws WTException
WTException
public void handleCheckCADModelNamePressed()
public int checkCADModelName() throws WTException
WTException
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
public String getName()
Task
getName
in class Task
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |