com.ptc.wgmecad
Class WindchillIntegrationManager

java.lang.Object
  extended bycom.ptc.wgmecad.WindchillIntegrationManager
All Implemented Interfaces:
IRegisterProgress

public class WindchillIntegrationManager
extends Object
implements IRegisterProgress

User: barky Date: Feb 5, 2003 Time: 3:34:14 PM Change History: 2004.01.24 NickV: Added Comments


Field Summary
private static ArgumentMap argMap
           
private static ArgumentRegister argReg
           
private  File attrdef_file
           
private static int BOM_OPTION_BUILD
           
private static int BOM_OPTION_NONE
           
private static int BOM_OPTION_NULL
           
private static int brdDirLogCount
          setup the attribure def file , temp file and project directory, and make sure the client inteface is initialized.
private  ClientInterface clientinterface
           
private static boolean DEBUG_DONT_CREATE_CORE_ZIPS
           
private static boolean DEBUG_USE_EXISTING_ZIPS
           
static String defaultBoardTarFileName
           
static String defaultDesignTarFileName
           
static String defaultMainDesignTarFileName
           
static String defaultSchematicTarFileName
           
private static WindchillIntegrationManager instance
           
(package private) static org.apache.log4j.Logger logger
           
static int prepAttr
           
static int prepContentStructure
           
static int prepCreateBom
           
static int prepGetCPMFile
           
static int prepGetZipFile
           
static int prepInitFileNames
           
static int prepStart
           
static int prepTotal
           
static int prepZip
           
(package private)  ProcessManager processmanager
           
static String projConfigFileName
           
private static SecondaryArgumentMap sargMap
           
private static SecondaryArgumentRegister sargReg
           
static String tmpExtractToDir
           
static int totalOperation
           
private  URL windchillServerURL
           
 
Constructor Summary
private WindchillIntegrationManager()
           
 
Method Summary
private  void addECADContentItems(Boolean modState, Boolean defState, File projDir, File tempDir, ValueEPMDoc epmDoc, String fileGroupName, File fileParentDir, String filePattern, ValueEPMDoc epmDescribes, DesignAll design)
          Iterate thru the ECAD Content as configured resolving it to specific files
 void addFileGroupsToEcadDesign(DocCreationHelper dch, Element ecadDesign, File root, DesignAll design)
          add configurations/filegroup informatoin to xml.
 boolean cancelCheckout(String functionName, DesignAll design)
          cancel a checkout
private  URL checkForConnectionToServer(String wcURL)
           
 boolean checkin(String functionName, DesignAll dsn, boolean skipCheckinStep, boolean checkout, boolean newRev, boolean getCopy, boolean create)
          prepareFileSystemForCheckin must have already been called
private  Vector convertECADAttributesDef2AttributeStatus(ECADAttributes attrs, String epmDoc)
           
 boolean createnew(String functionName, DesignAll dsn)
          prepareFileSystemForCreateNew must have already been called
private  void createSubdir(File dir)
           
 boolean download(String functionName, DesignAll dsn, boolean checkout)
          This function covers all windchill operations that download files from the server.
private  void extractDesign(File archive, File dir, File[] excludeDirs, String progressCnt, String progressMsg)
           
 Vector generateBOM(DesignAll dsn, boolean variants)
           
static DesignAll[] getAllDesignsFromECADDocs(ECADDocument[] ecadDocArr)
           
 File getArgumentMapFile(String filePath, String fileName)
          loads a secondary argument file (usually WGMHookSettingsFileName = hook.ini)
 File getAttributeDefinitionFile()
           
 AttributeStatus[] getAttributeStatusForCheckin()
           
 String[] getAvailableCabinets(String solution, String context)
           
 String[] getAvailableProducts()
           
 String[] getAvailableProjects()
           
 String[] getAvailableTeams(String solution, String context)
           
private  File getBoardZipFile()
          checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.
 File getBomFile(String asmNum)
           
private  int getBOMOption(boolean isInitialization, boolean bomInclude, boolean genBOMForDoc)
           
 File getBrdAttributeFile()
           
 Properties getBrdECADAttributes()
           
 ClientInterface getClientInterface()
           
 File getCompFileName(DesignAll dsn)
           
private static String getContainerSubdirFromMentorZip(File pkgFile)
           
private  File getDefaultAttributeDefinitionFile()
           
 File getDesignAttributeFile()
           
 Properties getDesignECADAttributes()
           
private  File getDesignZipFile()
          checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.
static WindchillIntegrationManager getInstance()
           
private  File getLegacyCadenceZipFile()
           
private  File getLegacyMentorZipFile(DesignAll dsn)
           
static File getLocalResourceContext()
           
private  File getMainDesignZipFile(File tempDesignDir)
          checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.
 File getSchAttributeFile()
           
 Properties getSchECADAttributes()
           
private  File getSchematicZipFile()
          checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.
static String[] getStringArrayFromVector(Vector v)
          Converts the vector to a string array.
 int getTotalInitTime()
           
 int getTotalOperation()
           
 int getTotalPre()
           
 String getVersion(boolean server, boolean fromClassPath)
           
 String getVersionString()
           
 URL getWindchillURL()
           
 void initializeFileSystem()
          Initiaize the file system and for an upload operation.
 void initializeWCConnection()
          Initiaize the file system and for an upload operation.
 void initWindchillSubdirs(File designDir)
          setup the attribure def file , temp file and project directory, and make sure the client inteface is initialized.
static boolean isDesignTempZipFile(String filename)
          helper function to indicate whether the filename indicated is the one of the upload zip files (e.g.
 boolean isDocInWindchill(String number, String revision, String solution, String context)
           
 boolean isWindchillPDMInstalled()
           
static boolean isWindchillPDMLinkInstalled()
           
static boolean isWindchillProjectLinkInstalled()
           
 void loadFileGroups(DesignAll _design, boolean preLoad, String fromWhere)
          Call this to initalize FileGroups
 EPMDocument lookupDocument(String number, String revision, String solution, String context)
           
 boolean newRevision(String functionName, DesignAll design)
          cancel a checkout
private  void postCleanup(Vector filesToCleanup, File[] tempDirs, File[] protectedDirs, int action, int actionOption)
           
 void prepareFileSystemForCheckin(DesignAll design)
          Prepare the file system and for an upload operation.
 void prepareFileSystemForCheckout(DesignAll design)
          Prepare the file system and for an upload operation.
 void prepareFileSystemForCreateNew(DesignAll design)
          Prepare the file system and for an upload operation.
 void prepareGeneratedItems(DesignAll design)
           
private  void prepareGeneratedItems(DesignAll design, File dnZipFile, File schZipFile, File brdZipFile)
           
 boolean prepareVariantBOM(DesignAll design)
           
private  void processFileGroups(File projDir, File tempDir, DesignAll design, boolean preLoad)
           
private  void processHookFileGroups(File projDir, File tempDir, DesignAll design, boolean preLoad)
          process WGMHookSettingsFileName = hook.ini configurations
 boolean revise(String functionName, DesignAll dsn, boolean getCopy, boolean checkout)
          this is a simple revise operation without any checkin
static void setLocalResourceContext()
           
private  void updateAndSaveCurrentDesign(DesignAll dsn)
           
 Vector writeBrdCompAndAttributesFiles(DesignAll dsn, File tarFile, boolean isInitialization)
          returns a vector of the comp file lines
private  Vector writeCompAndAttributesFiles(DesignAll dsn, File tarFile, File attribute_file, int bomOption, boolean separatedDesign, boolean forSch)
          returns a vector of the comp file lines
 Vector writeDnCompAndAttributesFiles(DesignAll dsn, File tarFile, boolean isInitialization)
          returns a vector of the comp file lines
private  void writeNullCompFile(File compFile)
          returns a vector of the comp file lines
 Vector writeSchCompAndAttributesFiles(DesignAll dsn, File tarFile, boolean isInitialization)
          returns a vector of the comp file lines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processmanager

ProcessManager processmanager

DEBUG_USE_EXISTING_ZIPS

private static boolean DEBUG_USE_EXISTING_ZIPS

DEBUG_DONT_CREATE_CORE_ZIPS

private static boolean DEBUG_DONT_CREATE_CORE_ZIPS

defaultMainDesignTarFileName

public static final String defaultMainDesignTarFileName
See Also:
Constant Field Values

defaultSchematicTarFileName

public static final String defaultSchematicTarFileName
See Also:
Constant Field Values

defaultBoardTarFileName

public static final String defaultBoardTarFileName
See Also:
Constant Field Values

defaultDesignTarFileName

public static final String defaultDesignTarFileName
See Also:
Constant Field Values

tmpExtractToDir

public static final String tmpExtractToDir
See Also:
Constant Field Values

projConfigFileName

public static final String projConfigFileName

argMap

private static ArgumentMap argMap

argReg

private static ArgumentRegister argReg

sargMap

private static SecondaryArgumentMap sargMap

sargReg

private static SecondaryArgumentRegister sargReg

clientinterface

private ClientInterface clientinterface

attrdef_file

private File attrdef_file

windchillServerURL

private URL windchillServerURL

BOM_OPTION_NONE

private static final int BOM_OPTION_NONE
See Also:
Constant Field Values

BOM_OPTION_NULL

private static final int BOM_OPTION_NULL
See Also:
Constant Field Values

BOM_OPTION_BUILD

private static final int BOM_OPTION_BUILD
See Also:
Constant Field Values

logger

static org.apache.log4j.Logger logger

instance

private static WindchillIntegrationManager instance

brdDirLogCount

private static int brdDirLogCount
setup the attribure def file , temp file and project directory, and make sure the client inteface is initialized.


prepStart

public static final int prepStart
See Also:
Constant Field Values

prepInitFileNames

public static final int prepInitFileNames
See Also:
Constant Field Values

prepGetZipFile

public static final int prepGetZipFile
See Also:
Constant Field Values

prepGetCPMFile

public static final int prepGetCPMFile
See Also:
Constant Field Values

prepCreateBom

public static final int prepCreateBom
See Also:
Constant Field Values

prepAttr

public static final int prepAttr
See Also:
Constant Field Values

prepContentStructure

public static final int prepContentStructure
See Also:
Constant Field Values

prepZip

public static final int prepZip
See Also:
Constant Field Values

prepTotal

public static final int prepTotal
See Also:
Constant Field Values

totalOperation

public static final int totalOperation
See Also:
Constant Field Values
Constructor Detail

WindchillIntegrationManager

private WindchillIntegrationManager()
Method Detail

getClientInterface

public ClientInterface getClientInterface()
                                   throws WGMException,
                                          CancelledException
Throws:
WGMException
CancelledException

checkForConnectionToServer

private URL checkForConnectionToServer(String wcURL)

getInstance

public static WindchillIntegrationManager getInstance()

cancelCheckout

public boolean cancelCheckout(String functionName,
                              DesignAll design)
                       throws WGMException
cancel a checkout

Parameters:
design - - the design for which to cancel the checkout
Returns:
true on success
Throws:
WGMException

newRevision

public boolean newRevision(String functionName,
                           DesignAll design)
                    throws WGMException,
                           CancelledException,
                           WTException
cancel a checkout

Parameters:
design - - the design for which to cancel the checkout
Returns:
true on success
Throws:
WGMException
CancelledException
WTException

getContainerSubdirFromMentorZip

private static String getContainerSubdirFromMentorZip(File pkgFile)
                                               throws WGMException,
                                                      IOException
Throws:
WGMException
IOException

extractDesign

private void extractDesign(File archive,
                           File dir,
                           File[] excludeDirs,
                           String progressCnt,
                           String progressMsg)
                    throws IOException,
                           CancelledException
Throws:
IOException
CancelledException

download

public boolean download(String functionName,
                        DesignAll dsn,
                        boolean checkout)
                 throws WGMException,
                        CancelledException
This function covers all windchill operations that download files from the server. I.E. checkout and getCopy

Parameters:
functionName - they key for the function name in the CadenceWGM.properties file that is referenced by I18N.getStr() for the name of the function being executed.
Returns:
true on success
Throws:
WGMException
CancelledException

updateAndSaveCurrentDesign

private void updateAndSaveCurrentDesign(DesignAll dsn)

getAttributeDefinitionFile

public File getAttributeDefinitionFile()

getArgumentMapFile

public File getArgumentMapFile(String filePath,
                               String fileName)
loads a secondary argument file (usually WGMHookSettingsFileName = hook.ini)

Returns:

getDefaultAttributeDefinitionFile

private File getDefaultAttributeDefinitionFile()

getLocalResourceContext

public static File getLocalResourceContext()

setLocalResourceContext

public static void setLocalResourceContext()

createnew

public boolean createnew(String functionName,
                         DesignAll dsn)
                  throws WGMException,
                         MissingAttributeException,
                         DesignNotCheckedOutException,
                         DesignNotInWindchillException,
                         ECADPropertiesMissingException,
                         CancelledException
prepareFileSystemForCreateNew must have already been called

Parameters:
functionName -
Throws:
WindchillFunctionException
MissingAttributeException
DesignNotCheckedOutException
DesignNotInWindchillException
ECADPropertiesMissingException
WGMException
CancelledException

checkin

public boolean checkin(String functionName,
                       DesignAll dsn,
                       boolean skipCheckinStep,
                       boolean checkout,
                       boolean newRev,
                       boolean getCopy,
                       boolean create)
                throws WGMException,
                       MissingAttributeException,
                       DesignNotCheckedOutException,
                       DesignNotInWindchillException,
                       ECADPropertiesMissingException,
                       CancelledException
prepareFileSystemForCheckin must have already been called

Parameters:
functionName -
Throws:
WindchillFunctionException
MissingAttributeException
DesignNotCheckedOutException
DesignNotInWindchillException
ECADPropertiesMissingException
WGMException
CancelledException

postCleanup

private void postCleanup(Vector filesToCleanup,
                         File[] tempDirs,
                         File[] protectedDirs,
                         int action,
                         int actionOption)

createSubdir

private void createSubdir(File dir)
                   throws IOException
Throws:
IOException

initWindchillSubdirs

public void initWindchillSubdirs(File designDir)
                          throws IOException
setup the attribure def file , temp file and project directory, and make sure the client inteface is initialized.

Throws:
IOException

getWindchillURL

public URL getWindchillURL()

getDesignAttributeFile

public File getDesignAttributeFile()

getSchAttributeFile

public File getSchAttributeFile()

getBrdAttributeFile

public File getBrdAttributeFile()

prepareFileSystemForCreateNew

public void prepareFileSystemForCreateNew(DesignAll design)
                                   throws IOException,
                                          WGMException,
                                          CancelledException
Prepare the file system and for an upload operation. This includes the creation of directory structures creation of the tarBall and preparation of the attributes file. Also @see initFileSystemForCheckin

Parameters:
design - the current design
Throws:
IOException
WGMException
CancelledException

prepareVariantBOM

public boolean prepareVariantBOM(DesignAll design)
                          throws IOException,
                                 WGMException,
                                 CancelledException
Throws:
IOException
WGMException
CancelledException

prepareFileSystemForCheckin

public void prepareFileSystemForCheckin(DesignAll design)
                                 throws IOException,
                                        WGMException,
                                        CancelledException
Prepare the file system and for an upload operation. This includes the creation of directory structures creation of the tarBall and preparation of the attributes file. Also @see initFileSystemForCheckin

Parameters:
design - the current design
Throws:
IOException
WGMException
CancelledException

prepareGeneratedItems

public void prepareGeneratedItems(DesignAll design)
                           throws Main.ReturnNow
Throws:
Main.ReturnNow

prepareGeneratedItems

private void prepareGeneratedItems(DesignAll design,
                                   File dnZipFile,
                                   File schZipFile,
                                   File brdZipFile)
                            throws InvalidArgumentException,
                                   UnexpectedArgumentException
Throws:
InvalidArgumentException
UnexpectedArgumentException

prepareFileSystemForCheckout

public void prepareFileSystemForCheckout(DesignAll design)
                                  throws IOException,
                                         WGMException,
                                         CancelledException
Prepare the file system and for an upload operation. This includes the creation of directory structures creation of the tarBall and preparation of the attributes file. Also @see initFileSystemForCheckin

Parameters:
design - the current design
Throws:
IOException
WGMException
CancelledException

loadFileGroups

public void loadFileGroups(DesignAll _design,
                           boolean preLoad,
                           String fromWhere)
                    throws IOException,
                           WGMException,
                           CancelledException
Call this to initalize FileGroups

Throws:
IOException
WGMException
CancelledException

initializeWCConnection

public void initializeWCConnection()
                            throws IOException,
                                   WGMException,
                                   CancelledException
Initiaize the file system and for an upload operation. This includes the creation of directory structures and preparation of the attributes file

Throws:
IOException
WGMException
CancelledException

initializeFileSystem

public void initializeFileSystem()
                          throws IOException,
                                 WGMException,
                                 CancelledException
Initiaize the file system and for an upload operation. This includes the creation of directory structures and preparation of the attributes file

Throws:
IOException
WGMException
CancelledException

processFileGroups

private void processFileGroups(File projDir,
                               File tempDir,
                               DesignAll design,
                               boolean preLoad)

processHookFileGroups

private void processHookFileGroups(File projDir,
                                   File tempDir,
                                   DesignAll design,
                                   boolean preLoad)
process WGMHookSettingsFileName = hook.ini configurations

Parameters:
projDir -
tempDir -

addFileGroupsToEcadDesign

public void addFileGroupsToEcadDesign(DocCreationHelper dch,
                                      Element ecadDesign,
                                      File root,
                                      DesignAll design)
add configurations/filegroup informatoin to xml.

Parameters:
dch -
ecadDesign -
root -

addECADContentItems

private void addECADContentItems(Boolean modState,
                                 Boolean defState,
                                 File projDir,
                                 File tempDir,
                                 ValueEPMDoc epmDoc,
                                 String fileGroupName,
                                 File fileParentDir,
                                 String filePattern,
                                 ValueEPMDoc epmDescribes,
                                 DesignAll design)
                          throws ProjectDirectoryMacroInMidPathException
Iterate thru the ECAD Content as configured resolving it to specific files

Parameters:
projDir - root directory of the project
tempDir -
epmDoc -
fileGroupName -
fileParentDir -
filePattern -
Throws:
ProjectDirectoryMacroInMidPathException

getMainDesignZipFile

private File getMainDesignZipFile(File tempDesignDir)
                           throws IOException
checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.

Returns:
Throws:
IOException

getDesignZipFile

private File getDesignZipFile()
                       throws IOException
checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.

Returns:
Throws:
IOException

getSchematicZipFile

private File getSchematicZipFile()
                          throws IOException
checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.

Returns:
Throws:
IOException

getBoardZipFile

private File getBoardZipFile()
                      throws IOException
checks for the attributes file in the temp dir and uses it to generate the zip file name, otherwise specifies it.

Returns:
Throws:
IOException

getLegacyCadenceZipFile

private File getLegacyCadenceZipFile()
                              throws IOException
Throws:
IOException

getLegacyMentorZipFile

private File getLegacyMentorZipFile(DesignAll dsn)
                             throws MissingAttributeException
Throws:
MissingAttributeException

getBrdECADAttributes

public Properties getBrdECADAttributes()
                                throws IOException
Throws:
IOException

getSchECADAttributes

public Properties getSchECADAttributes()
                                throws IOException
Throws:
IOException

getDesignECADAttributes

public Properties getDesignECADAttributes()
                                   throws IOException
Throws:
IOException

writeCompAndAttributesFiles

private Vector writeCompAndAttributesFiles(DesignAll dsn,
                                           File tarFile,
                                           File attribute_file,
                                           int bomOption,
                                           boolean separatedDesign,
                                           boolean forSch)
                                    throws InternalBomFailedException,
                                           IOException,
                                           NoCPMFileFoundException,
                                           CancelledException,
                                           VariantFileBadFormatException
returns a vector of the comp file lines

Parameters:
dsn -
tarFile - used to wrtie name to ecad attribute file
Returns:
Throws:
InternalBomFailedException
IOException
NoCPMFileFoundException
CancelledException
VariantFileBadFormatException

getBOMOption

private int getBOMOption(boolean isInitialization,
                         boolean bomInclude,
                         boolean genBOMForDoc)

writeBrdCompAndAttributesFiles

public Vector writeBrdCompAndAttributesFiles(DesignAll dsn,
                                             File tarFile,
                                             boolean isInitialization)
                                      throws InternalBomFailedException,
                                             IOException,
                                             NoCPMFileFoundException,
                                             CancelledException,
                                             VariantFileBadFormatException
returns a vector of the comp file lines

Parameters:
dsn -
tarFile - used to wrtie name to ecad attribute file
Returns:
Throws:
InternalBomFailedException
IOException
NoCPMFileFoundException
CancelledException
VariantFileBadFormatException

writeSchCompAndAttributesFiles

public Vector writeSchCompAndAttributesFiles(DesignAll dsn,
                                             File tarFile,
                                             boolean isInitialization)
                                      throws InternalBomFailedException,
                                             IOException,
                                             NoCPMFileFoundException,
                                             CancelledException,
                                             VariantFileBadFormatException
returns a vector of the comp file lines

Parameters:
dsn -
tarFile - used to wrtie name to ecad attribute file
Returns:
Throws:
InternalBomFailedException
IOException
NoCPMFileFoundException
CancelledException
VariantFileBadFormatException

writeDnCompAndAttributesFiles

public Vector writeDnCompAndAttributesFiles(DesignAll dsn,
                                            File tarFile,
                                            boolean isInitialization)
                                     throws InternalBomFailedException,
                                            IOException,
                                            NoCPMFileFoundException,
                                            CancelledException,
                                            VariantFileBadFormatException
returns a vector of the comp file lines

Parameters:
dsn -
tarFile - used to wrtie name to ecad attribute file
Returns:
Throws:
InternalBomFailedException
IOException
NoCPMFileFoundException
CancelledException
VariantFileBadFormatException

generateBOM

public Vector generateBOM(DesignAll dsn,
                          boolean variants)
                   throws InternalBomFailedException,
                          IOException,
                          NoCPMFileFoundException,
                          CancelledException,
                          VariantFileBadFormatException,
                          UnexpectedFilesInVariantDir
Throws:
InternalBomFailedException
IOException
NoCPMFileFoundException
CancelledException
VariantFileBadFormatException
UnexpectedFilesInVariantDir

writeNullCompFile

private void writeNullCompFile(File compFile)
                        throws IOException
returns a vector of the comp file lines

Returns:
Throws:
InternalBomFailedException
IOException
NoCPMFileFoundException
CancelledException

getBomFile

public File getBomFile(String asmNum)
                throws VariantFileBadFormatException
Throws:
VariantFileBadFormatException

getCompFileName

public File getCompFileName(DesignAll dsn)

getStringArrayFromVector

public static String[] getStringArrayFromVector(Vector v)
                                         throws EmptyVectorException
Converts the vector to a string array.

Parameters:
v -
Returns:
Throws:
EmptyVectorException - if the vector has no elements

getAvailableCabinets

public String[] getAvailableCabinets(String solution,
                                     String context)
                              throws WGMException,
                                     CancelledException
Throws:
WGMException
CancelledException

getAvailableProjects

public String[] getAvailableProjects()
                              throws WGMException,
                                     CancelledException
Throws:
WGMException
CancelledException

getAvailableTeams

public String[] getAvailableTeams(String solution,
                                  String context)
                           throws WGMException,
                                  CancelledException
Throws:
WGMException
CancelledException

getAvailableProducts

public String[] getAvailableProducts()
                              throws WGMException,
                                     CancelledException
Throws:
WGMException
CancelledException

isWindchillPDMInstalled

public boolean isWindchillPDMInstalled()

isWindchillPDMLinkInstalled

public static boolean isWindchillPDMLinkInstalled()

isWindchillProjectLinkInstalled

public static boolean isWindchillProjectLinkInstalled()

lookupDocument

public EPMDocument lookupDocument(String number,
                                  String revision,
                                  String solution,
                                  String context)

isDocInWindchill

public boolean isDocInWindchill(String number,
                                String revision,
                                String solution,
                                String context)

revise

public boolean revise(String functionName,
                      DesignAll dsn,
                      boolean getCopy,
                      boolean checkout)
               throws WGMException,
                      CancelledException
this is a simple revise operation without any checkin

Parameters:
functionName -
Throws:
WGMException
CancelledException

getAllDesignsFromECADDocs

public static DesignAll[] getAllDesignsFromECADDocs(ECADDocument[] ecadDocArr)

getAttributeStatusForCheckin

public AttributeStatus[] getAttributeStatusForCheckin()
                                               throws WindchillFunctionException
Throws:
WindchillFunctionException

convertECADAttributesDef2AttributeStatus

private Vector convertECADAttributesDef2AttributeStatus(ECADAttributes attrs,
                                                        String epmDoc)
                                                 throws InvalidArgumentException
Throws:
InvalidArgumentException

getTotalPre

public int getTotalPre()
Specified by:
getTotalPre in interface IRegisterProgress

getTotalOperation

public int getTotalOperation()
Specified by:
getTotalOperation in interface IRegisterProgress

getTotalInitTime

public int getTotalInitTime()
Specified by:
getTotalInitTime in interface IRegisterProgress

isDesignTempZipFile

public static boolean isDesignTempZipFile(String filename)
helper function to indicate whether the filename indicated is the one of the upload zip files (e.g. board.zip or schematic.zip)

Parameters:
filename -
Returns:

getVersion

public String getVersion(boolean server,
                         boolean fromClassPath)
                  throws WindchillFunctionException
Throws:
WindchillFunctionException

getVersionString

public String getVersionString()