|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.server.publish.ConvertDocument
Field Summary | |
private static String |
ATTRIBUTE_KEY
|
private String |
charset
|
private WTDocument |
document
|
private ContentItem |
documentContentItem
|
private String |
documentFile
|
private String |
documentWorker
|
private String |
documentWorkerOptions
|
private String |
downloadedFileName
|
private ArrayList |
dtiWorkers
|
private boolean |
encodeFilename
|
private boolean |
fileNameEncoded
|
private static String |
options
|
private Representable |
part
|
private String |
preconvertedFileName
|
private PublishJob |
publishJob
|
private String |
rawFileName
|
private static String |
TAG_ATTRIBUTE
|
private static String |
TAG_MSOIMIME
|
private static String |
TAG_WCFILE
|
private static boolean |
VERBOSE
|
private static WVSProperties |
wvsProperties
|
Constructor Summary | |
ConvertDocument(PublishJob publishJob,
WTDocument document,
Representable part,
String documentFile)
|
Method Summary | |
private void |
decodeEDFileContent()
|
private String |
doDocumentConversion(boolean doConversion)
|
private String |
doEncodeFileName(String f)
|
String |
getAuthenticationString(URLData urlData)
Gets a encrypted authentication string for the specified url data This is will be passed to the distributed CadAgent to allow it to retieve file from the source, typicall ProIntralink Called by file download for URLData items Supported API: false |
private int |
getDocumentContent(boolean getContent)
|
private String |
getDocumentWindchillName()
|
boolean |
getLocalFileContentFromContentItem(ContentItem ci,
File localFile)
Downloads the ContentItem for this CAD system to the local file specified. |
String |
getLocalFileNameFromContentItem(ContentItem ci)
Returns the local file name for a ContentItem of this CAD system Called by file download for both ApplicationData and URLData items Supported API: false |
URLConnection |
getURLDataConnection(URLData urlData)
Gets a URLConnection for the default mechanisn to download file content. |
private boolean |
processZIPFile()
|
int |
publishDocument(boolean getContent,
boolean doConversion,
boolean store,
boolean doChildren)
|
private void |
setDocumentWorker(String in)
|
private int |
storeDocumentRepresentation(boolean store,
boolean doChildren,
File outDir)
|
boolean |
useDistributedCadAgent(String url)
Returns if a distributed CadAgent could service the conversion of the url data. |
private void |
writeDocumentXML(WTDocument d,
ContentItem ci,
File tempDir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String TAG_MSOIMIME
private static final String TAG_WCFILE
private static final String ATTRIBUTE_KEY
private static final String TAG_ATTRIBUTE
private static WVSProperties wvsProperties
private static boolean VERBOSE
private static String options
private PublishJob publishJob
private WTDocument document
private Representable part
private String documentFile
private ContentItem documentContentItem
private String documentWorker
private String documentWorkerOptions
private String downloadedFileName
private String rawFileName
private boolean fileNameEncoded
private String preconvertedFileName
private String charset
private boolean encodeFilename
private ArrayList dtiWorkers
Constructor Detail |
public ConvertDocument(PublishJob publishJob, WTDocument document, Representable part, String documentFile)
Method Detail |
public int publishDocument(boolean getContent, boolean doConversion, boolean store, boolean doChildren)
public String getLocalFileNameFromContentItem(ContentItem ci)
FileConvert
getLocalFileNameFromContentItem
in interface FileConvert
ci
- the ContentItem
public boolean getLocalFileContentFromContentItem(ContentItem ci, File localFile)
FileConvert
getLocalFileContentFromContentItem
in interface FileConvert
ci
- the ContentItemlocalFile
- the local file name
public URLConnection getURLDataConnection(URLData urlData)
FileConvert
getURLDataConnection
in interface FileConvert
urlData
- the URLData
public String getAuthenticationString(URLData urlData)
FileConvert
getAuthenticationString
in interface FileConvert
urlData
- the URLData
public boolean useDistributedCadAgent(String url)
FileConvert
useDistributedCadAgent
in interface FileConvert
url
- the url String
private String getDocumentWindchillName()
private int getDocumentContent(boolean getContent)
private String doDocumentConversion(boolean doConversion)
private int storeDocumentRepresentation(boolean store, boolean doChildren, File outDir)
private void setDocumentWorker(String in)
private boolean processZIPFile()
private void decodeEDFileContent()
private String doEncodeFileName(String f)
private void writeDocumentXML(WTDocument d, ContentItem ci, File tempDir)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |