|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.server.publish.WildfireDownload
Constructor Summary | |
WildfireDownload()
Creates a new instance of WildfireDownload |
|
WildfireDownload(String wrkFldr)
Creates a new instance of WildfireDownload |
|
WildfireDownload(String wrkFldr,
EPMDocConfigSpec dcs)
Creates a new instance of WildfireDownload |
|
WildfireDownload(String wrkFolder,
String wsName,
WTContainer wsContainer,
EPMDocConfigSpec dcs,
String httpUser,
String httpPassword,
String fvLookup,
boolean writeToFile)
Create an instance of WildfireDownload passing in an authentication object, a workspace name a local working folder for download and a config spec |
|
WildfireDownload(WTPrincipal authObject)
Create an instance of WildfireDownload passing in an authentication object |
|
WildfireDownload(WTPrincipal authObject,
String wrkFolder)
Create an instance of WildfireDownload passing in an authentication object, a workspace name and a local working folder for download |
|
WildfireDownload(WTPrincipal authObject,
String wrkFolder,
String wsName)
Create an instance of WildfireDownload passing in an authentication object, a workspace name and a local working folder for download |
Method Summary | |
void |
addEPMDocToWorkspace(EPMDocument thisDoc)
|
void |
addToUpload(EPMDocument doc,
File file)
|
void |
addToWS(EPMDocument doc)
|
void |
addToWS(EPMDocument doc,
boolean recursive)
|
void |
closeConnection()
Close Windchill connection |
private void |
configureHttpUser()
|
void |
createConnection()
Create a Windchill connection |
private EPMWorkspace |
createWorkspace(String name,
EPMDocConfigSpec dcs,
WTContainer container,
WTPrincipal principal)
Create a new EPMWorkspace, and log the creation to the console. |
private EPMWorkspace |
createWorkspace(String name,
EPMDocConfigSpec dcs,
WTContainer container,
WTPrincipal principal,
Folder folder)
|
void |
destroyWorkspace()
|
private void |
destroyWorkspace(EPMWorkspace workspace,
String owner)
Delete a Workspace from Windchill |
static void |
destroyWorkspace(String wsName,
WTPrincipal principal)
|
void |
destroyWorkspace1()
|
static boolean |
destroyWorkspace1(String wsName,
WTPrincipal principal)
|
void |
download(String[] docArray)
|
void |
downloadAll(EPMDocument thisDoc)
|
void |
downloadAll(EPMDocument thisDoc,
boolean populateWSOnly)
|
void |
downloadAll(String docName)
|
private void |
downloadAllInternal(EPMDocument doc,
boolean recursive)
|
static Object[] |
getContents(EPMWorkspace workspace)
This method lists all the contents of a workspace in an array. |
static EPMDocument |
getEPMDocument(String number)
This convenience method finds a document based on its unique number using the latest config spec |
static EPMDocument |
getEPMDocument(String number,
ConfigSpec configSpec)
This method finds a document based on its unique number and the config spec. |
static EPMDocument |
getEPMDocument(String number,
EPMWorkspace workspace)
This convenience method finds a document based on its unique number using the workspace config spec. |
private static EPMWorkspace |
getEPMWorkspace(String workspaceName,
WTPrincipal principal)
This method finds a workspace given its name |
private EPMDocument |
getGenericForInstance(EPMDocument instanceDoc,
ConfigSpec configSpec)
This method returns the appropriate version of generic document for the input instance document (if any) by applying the input config specs. |
private void |
init()
Simple init method for the simpler constructors |
void |
initializeUpload()
|
static void |
main(String[] args)
|
void |
performUpload()
|
void |
setDownloadVeto(ArrayList dv)
|
private static void |
usage()
Simple usage function |
private void |
windchillAuthenticate()
Initial Windchill authentication/login method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String WINDCHILL_CODEBASE
private static final String UPLOAD_URL1
private static final String UPLOAD_URL3
private static final String DOWNLOAD_URL
private static WVSProperties wvsProperties
private static boolean VERBOSE
private static boolean retrieveAll
private static boolean fullyPopulateWS
private static boolean deleteWS
private WTPrincipal authenticationObject
private WTPrincipal httpWTUser
private FileAdapterClientProxy fac
private String workspaceName
private WTContainer workspaceContainer
private EPMWorkspace ws
private EPMDocConfigSpec docConfigSpec
private String workingFolder
private String httpUser
private String httpPassword
private String fvLookup
private boolean writeToFile
private WTProperties wtprops
private static final String WS_NAME_PROP
private static final String WRK_FLDR_NAME_PROP
private ArrayList cadNamesList
private ArrayList genericNamesList
private ArrayList foldersList
private ArrayList contentFilesList
private Vector addToWorkspaceVector
private HashMap wsContentMap
private ArrayList downloadVeto
private ArrayList docNumbersList
private ArrayList docNamesList
private ArrayList instanceNamesList
Constructor Detail |
public WildfireDownload() throws WTException
public WildfireDownload(String wrkFldr) throws WTException
wrkFldr
- WOrking Folderpublic WildfireDownload(String wrkFldr, EPMDocConfigSpec dcs) throws WTException
wrkFldr
- WOrking Folderpublic WildfireDownload(WTPrincipal authObject) throws WTException
authObject
- Authentication object thats been created by the calling applicationpublic WildfireDownload(WTPrincipal authObject, String wrkFolder) throws WTException
authObject
- Authentication object thats been created by the calling applicationwrkFolder
- working folderpublic WildfireDownload(WTPrincipal authObject, String wrkFolder, String wsName) throws WTException
authObject
- Authentication object thats been created by the calling applicationwrkFolder
- working folderwsName
- workspace namepublic WildfireDownload(String wrkFolder, String wsName, WTContainer wsContainer, EPMDocConfigSpec dcs, String httpUser, String httpPassword, String fvLookup, boolean writeToFile) throws WTException
wrkFolder
- working folderwsName
- workspace nameMethod Detail |
private void init() throws IOException
IOException
public void createConnection() throws IOException
IOException
public void closeConnection()
public void addEPMDocToWorkspace(EPMDocument thisDoc) throws IOException, WTException
IOException
WTException
public void download(String[] docArray) throws IOException, WTException
IOException
WTException
public void setDownloadVeto(ArrayList dv)
public void downloadAll(String docName) throws IOException, WTException
IOException
WTException
public void downloadAll(EPMDocument thisDoc) throws IOException, WTException
IOException
WTException
public void downloadAll(EPMDocument thisDoc, boolean populateWSOnly) throws IOException, WTException
IOException
WTException
private void downloadAllInternal(EPMDocument doc, boolean recursive) throws IOException, WTException
IOException
WTException
public void initializeUpload() throws IOException, WTException
IOException
WTException
public void addToWS(EPMDocument doc) throws WTException
WTException
public void addToWS(EPMDocument doc, boolean recursive) throws WTException
WTException
public void addToUpload(EPMDocument doc, File file) throws IOException, WTException
IOException
WTException
public void performUpload() throws IOException, WTException
IOException
WTException
public static void destroyWorkspace(String wsName, WTPrincipal principal)
public static boolean destroyWorkspace1(String wsName, WTPrincipal principal)
public void destroyWorkspace()
public void destroyWorkspace1()
private void windchillAuthenticate() throws UserNotFoundException, WTException, WTPropertyVetoException
UserNotFoundException
WTException
WTPropertyVetoException
private void configureHttpUser()
private static EPMWorkspace getEPMWorkspace(String workspaceName, WTPrincipal principal) throws WTException
workspaceName
- The name of the workspace to be searched
WTException
private EPMWorkspace createWorkspace(String name, EPMDocConfigSpec dcs, WTContainer container, WTPrincipal principal) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private EPMWorkspace createWorkspace(String name, EPMDocConfigSpec dcs, WTContainer container, WTPrincipal principal, Folder folder) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void destroyWorkspace(EPMWorkspace workspace, String owner) throws WTException
WTException
public static Object[] getContents(EPMWorkspace workspace) throws WTException
workspace
- The workspace whose contents are to be retrieved
WTException
public static EPMDocument getEPMDocument(String number) throws WTException
number
- The number of the document to be searched.
WTException
public static EPMDocument getEPMDocument(String number, EPMWorkspace workspace) throws WTException
number
- The number of the document to be searched.workspace
- The workspace which is used for config spec.
WTException
public static EPMDocument getEPMDocument(String number, ConfigSpec configSpec) throws WTException
number
- The number of the document to be searched.configSpec
- The config spec to be used for filtering the document iterations
WTException
private EPMDocument getGenericForInstance(EPMDocument instanceDoc, ConfigSpec configSpec)
instanceDoc
- The instance document for which the generic document is to be found.configSpec
- The config spec to be applied to filter out the proper version of generic
WTException
public static void main(String[] args)
args
- the command line argumentsprivate static void usage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |