|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.server.publish.CadConvertPROEForDLL
Fields inherited from interface com.ptc.wvs.server.publish.CadConvert |
ASSEMBLY, BOTTOMUP, CADAGENT_ERROR, CADAGENT_NOTHING, COMPONENT, DRAWING, ERROR, NOOP, NOTHING_TO_PROCESS, POSASSEMBLY, TOPDOWN, UNKNOWN |
Constructor Summary | |
CadConvertPROEForDLL()
|
Method Summary | |
private void |
addWindchillIDInfo(boolean drawingStructure)
|
private void |
deleteTempWorkspace()
|
String |
doAssemblyConversion(boolean doConversion,
boolean doChildren,
int count)
|
String |
doComponentConversion(boolean doConversion,
int count)
|
String |
doDrawingConversion(boolean doConversion,
int count)
|
private boolean |
downloadWithFileAdapter(EPMDocument thisDoc,
ConfigSpec epmConfig,
File directory)
|
private boolean |
downloadWithFileAdapter(EPMDocument thisDoc,
ConfigSpec epmConfig,
File directory,
String authFileName)
|
int |
getAssemblyContent(boolean getContent,
boolean doChildren)
|
String |
getAssemblyName()
|
int |
getAssemblyType()
|
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 |
static String |
getAuthenticationStringForHost(String host,
String port)
|
static String[] |
getCADRepList(EPMDocument d,
ConfigSpec cs,
Locale locale)
|
private String |
getCadRepName()
|
int |
getComponentContent(boolean getContent)
|
String |
getComponentName()
|
int |
getDrawingContent(boolean getContent)
|
String |
getDrawingName()
|
private String |
getDrawingShapetype()
|
private String |
getFileVaultsString(EPMDocument doc)
|
private String |
getInstanceName(String contentName)
|
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 |
static String |
getProEAuthString(String authFileName,
EPMDocument thisDoc)
|
private String |
getPROEWindchillName()
|
private static String |
getPROEWindchillName(EPMDocument nameDoc)
|
int |
getType(boolean doConversion,
boolean doChildren)
|
URLConnection |
getURLDataConnection(URLData urlData)
Gets a URLConnection for the default mechanisn to download file content. |
boolean |
init(PublishJob publishJob,
EPMDocument doc,
Representable part,
String options)
|
private static boolean |
initAuthData()
|
static void |
main(String[] args)
|
private void |
matchNames(DefaultMutableTreeNode n)
|
int |
storeAssemblyRepresentation(boolean store,
boolean doChildren,
File outDir)
|
int |
storeComponentRepresentation(boolean store,
File outDir)
|
int |
storeDrawingRepresentation(boolean store,
File outDir)
|
boolean |
useDistributedCadAgent(String url)
Returns if a distributed CadAgent could service the conversion of the url data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static WVSProperties wvsProperties
protected static boolean VERBOSE
protected PublishJob publishJob
protected EPMDocument doc
protected Representable part
protected String options
private static final String PROE_MODEL
private static final String PROE_DRAWING
private static final String INSTANCE_NAME
private static final String PRT
private static final String ASM
private static final String DRW
private static final String LAY
private static final String FRM
private static final String DGM
private static final String SEC
private static final String GPH
private static final String RESOURCE
private Object xmlDocument
private EPMDocument srcDoc
private String proeName
private boolean hasContent
private String familyInstanceName
private EPMDocument familyInstanceGeneric
private Hashtable fileLookup
private String distributedCadAgent
private String cadoptions
private boolean fileVaultLookup
private boolean usePnfsUrls
private boolean proeFileAdapter
private boolean proeFileAdapterStatus
private String proeFileAdapterAuthFile
private boolean startContent
private boolean additionalFiles
private static Object synch
private String[] doc_ret
private static Properties proeAuth
private static final String AUTH_GATEWAY_PROPERTIES
private static final String AUTH_GATEWAY_KEY
private static boolean authDataLoaded
private static Properties authData
Constructor Detail |
public CadConvertPROEForDLL()
Method Detail |
public boolean init(PublishJob publishJob, EPMDocument doc, Representable part, String options)
init
in interface CadConvert
public static String[] getCADRepList(EPMDocument d, ConfigSpec cs, Locale locale)
public int getType(boolean doConversion, boolean doChildren)
getType
in interface CadConvert
public int getAssemblyType()
getAssemblyType
in interface CadConvert
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 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
public URLConnection getURLDataConnection(URLData urlData)
FileConvert
getURLDataConnection
in interface FileConvert
urlData
- the URLData
private String getPROEWindchillName()
private static String getPROEWindchillName(EPMDocument nameDoc) throws Exception
Exception
public String getComponentName()
getComponentName
in interface CadConvert
public int getComponentContent(boolean getContent)
getComponentContent
in interface CadConvert
public String doComponentConversion(boolean doConversion, int count)
doComponentConversion
in interface CadConvert
public int storeComponentRepresentation(boolean store, File outDir)
storeComponentRepresentation
in interface CadConvert
public String getAssemblyName()
getAssemblyName
in interface CadConvert
public int getAssemblyContent(boolean getContent, boolean doChildren)
getAssemblyContent
in interface CadConvert
public String doAssemblyConversion(boolean doConversion, boolean doChildren, int count)
doAssemblyConversion
in interface CadConvert
public int storeAssemblyRepresentation(boolean store, boolean doChildren, File outDir)
storeAssemblyRepresentation
in interface CadConvert
public String getDrawingName()
getDrawingName
in interface CadConvert
public int getDrawingContent(boolean getContent)
getDrawingContent
in interface CadConvert
public String doDrawingConversion(boolean doConversion, int count)
doDrawingConversion
in interface CadConvert
public int storeDrawingRepresentation(boolean store, File outDir)
storeDrawingRepresentation
in interface CadConvert
private String getDrawingShapetype()
private String getInstanceName(String contentName)
private String getCadRepName()
private void addWindchillIDInfo(boolean drawingStructure)
private void matchNames(DefaultMutableTreeNode n) throws Exception
Exception
public static String getProEAuthString(String authFileName, EPMDocument thisDoc)
private boolean downloadWithFileAdapter(EPMDocument thisDoc, ConfigSpec epmConfig, File directory)
private boolean downloadWithFileAdapter(EPMDocument thisDoc, ConfigSpec epmConfig, File directory, String authFileName)
private void deleteTempWorkspace()
private String getFileVaultsString(EPMDocument doc)
private static boolean initAuthData()
public static String getAuthenticationStringForHost(String host, String port)
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |