com.ptc.epm.commands.util
Class CabinetHelper

java.lang.Object
  extended bycom.ptc.epm.commands.util.CabinetHelper

public class CabinetHelper
extends Object


Nested Class Summary
static class CabinetHelper.CabinetServer
           
 
Field Summary
static String ASSEMBLY_SUBFOLDER
           
static String BOARD_SUBFOLDER
           
static String COMP_DOCS_SUBFOLDER
           
static String COMP_PARTS_SUBFOLDER
           
static String DOCS_SUBFOLDER
           
private static String ECADRESOURCE
           
static String PARTS_SUBFOLDER
           
static String SCHEMATIC_SUBFOLDER
           
(package private) static boolean SERVER
           
private static String SERVER_CLASS
           
static String SOURCE_SUBFOLDER
           
 
Constructor Summary
CabinetHelper()
           
 
Method Summary
static Folder createFolder(String folderPath)
           
static Folder getCheckoutFolder()
           
static String getContainerName(WTContainerRef containerRef)
           
static String getContainerSolutionName(WTContainerRef containerRef)
           
static Folder getContentFolder(ECADDocument designDoc, WTContainerRef containerRef)
           
static String getParentPath(String folderPath)
           
static Cabinet getPersonalCabinet()
           
protected static Folder getSubFolder(String subFolderPath, Folder rootFolder)
           
static Folder getSubFolder(String subFolderPath, Folder rootFolder, WTContainerRef containerRef)
           
static WTContainerRef getTargetContainer(String solution, String context)
          Get the WTContainer to be used for this ECAD operation String solution CLASSIC, PDMLINK or PRJLINK String context Project or Product or unused, depending on solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECADRESOURCE

private static final String ECADRESOURCE
See Also:
Constant Field Values

SERVER_CLASS

private static final String SERVER_CLASS

SERVER

static final boolean SERVER

DOCS_SUBFOLDER

public static final String DOCS_SUBFOLDER
See Also:
Constant Field Values

ASSEMBLY_SUBFOLDER

public static final String ASSEMBLY_SUBFOLDER
See Also:
Constant Field Values

BOARD_SUBFOLDER

public static final String BOARD_SUBFOLDER
See Also:
Constant Field Values

SOURCE_SUBFOLDER

public static final String SOURCE_SUBFOLDER
See Also:
Constant Field Values

SCHEMATIC_SUBFOLDER

public static final String SCHEMATIC_SUBFOLDER
See Also:
Constant Field Values

COMP_DOCS_SUBFOLDER

public static final String COMP_DOCS_SUBFOLDER
See Also:
Constant Field Values

PARTS_SUBFOLDER

public static final String PARTS_SUBFOLDER
See Also:
Constant Field Values

COMP_PARTS_SUBFOLDER

public static final String COMP_PARTS_SUBFOLDER
See Also:
Constant Field Values
Constructor Detail

CabinetHelper

public CabinetHelper()
Method Detail

createFolder

public static Folder createFolder(String folderPath)
                           throws WTException
Throws:
WTException

getPersonalCabinet

public static Cabinet getPersonalCabinet()
                                  throws WTException
Throws:
WTException

getCheckoutFolder

public static Folder getCheckoutFolder()
                                throws WTException
Throws:
WTException

getContentFolder

public static Folder getContentFolder(ECADDocument designDoc,
                                      WTContainerRef containerRef)
                               throws WTException
Throws:
WTException

getParentPath

public static String getParentPath(String folderPath)

getTargetContainer

public static WTContainerRef getTargetContainer(String solution,
                                                String context)
                                         throws WTException
Get the WTContainer to be used for this ECAD operation String solution CLASSIC, PDMLINK or PRJLINK String context Project or Product or unused, depending on solution

Throws:
WTException

getContainerName

public static String getContainerName(WTContainerRef containerRef)

getContainerSolutionName

public static String getContainerSolutionName(WTContainerRef containerRef)

getSubFolder

public static Folder getSubFolder(String subFolderPath,
                                  Folder rootFolder,
                                  WTContainerRef containerRef)
                           throws WTException
Throws:
WTException

getSubFolder

protected static Folder getSubFolder(String subFolderPath,
                                     Folder rootFolder)
                              throws WTException
Throws:
WTException