com.ptc.wvs.server.util
Class FileAdapterClientProxy

java.lang.Object
  extended bycom.ptc.wvs.server.util.FileAdapterClientProxy

public class FileAdapterClientProxy
extends Object


Field Summary
private static Class cls
           
private static ArrayList cmdList
           
private static String COMMAND_PROPERTY
           
private static String CREATE_METHOD
           
private static String DESTROY_METHOD
           
private static String DOWNLOAD_METHOD
           
private  Object fac
           
private  File file
           
private static String FILE_ADAPTER_CLIENT_CLASS
           
private static String FILE_NAME
           
private  String[] fvLookupArray
           
private static String JAVA_TMPDIR
           
private  boolean readFromFile
           
private  boolean runExternalCommand
           
private static String UPLOAD_METHOD
           
private static boolean VERBOSE
           
private  String workerDistRule
           
private  String workingFolder
           
private  boolean writeToFile
           
private static WVSProperties wvsProperties
           
 
Constructor Summary
FileAdapterClientProxy(String workingFolder)
           
FileAdapterClientProxy(String workingFolder, String workerDistRule)
           
FileAdapterClientProxy(String workingFolder, String workerDistRule, boolean forceExecHere)
           
FileAdapterClientProxy(String upload_url1, String upload_url3, String download_url, String workingFolder, String workspaceName, String httpUser, String httpPassword, boolean writeToFile)
           
FileAdapterClientProxy(String upload_url1, String upload_url3, String download_url, String workingFolder, String workspaceName, String httpUser, String httpPassword, String fvLookup, boolean writeToFile)
           
 
Method Summary
 void createServerConnector()
           
 void destroyServerConnector()
           
 void download()
           
 void download(String[] cadNames, String[] generics, Vector[] contentFiles, String[] localFolders)
           
private  void init(String upload_url1, String upload_url3, String download_url, String workingFolder, String workspaceName, String httpUser, String httpPassword, String fvLookup)
           
 boolean isWriteToFile()
           
static void main(String[] args)
           
static String[] processFileVaultLookup(String fvLookup, String workerDistRule)
           
static String[] processFileVaultLookup(String fvLookup, String workerDistRule, boolean includeAllfvLookup)
           
private  void runMySelf()
           
 void setWriteToFile(boolean wtf)
           
 void upload()
           
 void upload(String[] docNumbers, String[] docNames, String[] cadNames, String[] instances, Vector[] files)
           
 void uploaddownload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_ADAPTER_CLIENT_CLASS

private static final String FILE_ADAPTER_CLIENT_CLASS
See Also:
Constant Field Values

CREATE_METHOD

private static final String CREATE_METHOD
See Also:
Constant Field Values

DESTROY_METHOD

private static final String DESTROY_METHOD
See Also:
Constant Field Values

DOWNLOAD_METHOD

private static final String DOWNLOAD_METHOD
See Also:
Constant Field Values

UPLOAD_METHOD

private static final String UPLOAD_METHOD
See Also:
Constant Field Values

FILE_NAME

private static final String FILE_NAME
See Also:
Constant Field Values

COMMAND_PROPERTY

private static final String COMMAND_PROPERTY
See Also:
Constant Field Values

JAVA_TMPDIR

private static final String JAVA_TMPDIR
See Also:
Constant Field Values

wvsProperties

private static WVSProperties wvsProperties

VERBOSE

private static boolean VERBOSE

cmdList

private static ArrayList cmdList

cls

private static Class cls

fac

private Object fac

writeToFile

private boolean writeToFile

readFromFile

private boolean readFromFile

runExternalCommand

private boolean runExternalCommand

file

private File file

workingFolder

private String workingFolder

workerDistRule

private String workerDistRule

fvLookupArray

private String[] fvLookupArray
Constructor Detail

FileAdapterClientProxy

public FileAdapterClientProxy(String upload_url1,
                              String upload_url3,
                              String download_url,
                              String workingFolder,
                              String workspaceName,
                              String httpUser,
                              String httpPassword,
                              boolean writeToFile)
                       throws IOException

FileAdapterClientProxy

public FileAdapterClientProxy(String upload_url1,
                              String upload_url3,
                              String download_url,
                              String workingFolder,
                              String workspaceName,
                              String httpUser,
                              String httpPassword,
                              String fvLookup,
                              boolean writeToFile)
                       throws IOException

FileAdapterClientProxy

public FileAdapterClientProxy(String workingFolder)
                       throws IOException

FileAdapterClientProxy

public FileAdapterClientProxy(String workingFolder,
                              String workerDistRule)
                       throws IOException

FileAdapterClientProxy

public FileAdapterClientProxy(String workingFolder,
                              String workerDistRule,
                              boolean forceExecHere)
                       throws IOException
Method Detail

init

private void init(String upload_url1,
                  String upload_url3,
                  String download_url,
                  String workingFolder,
                  String workspaceName,
                  String httpUser,
                  String httpPassword,
                  String fvLookup)
           throws IOException
Throws:
IOException

processFileVaultLookup

public static String[] processFileVaultLookup(String fvLookup,
                                              String workerDistRule)

processFileVaultLookup

public static String[] processFileVaultLookup(String fvLookup,
                                              String workerDistRule,
                                              boolean includeAllfvLookup)

createServerConnector

public void createServerConnector()
                           throws IOException
Throws:
IOException

destroyServerConnector

public void destroyServerConnector()

download

public void download(String[] cadNames,
                     String[] generics,
                     Vector[] contentFiles,
                     String[] localFolders)

upload

public void upload(String[] docNumbers,
                   String[] docNames,
                   String[] cadNames,
                   String[] instances,
                   Vector[] files)

download

public void download()

upload

public void upload()

uploaddownload

public void uploaddownload()

setWriteToFile

public void setWriteToFile(boolean wtf)

isWriteToFile

public boolean isWriteToFile()

runMySelf

private void runMySelf()

main

public static void main(String[] args)