|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.FolderUtilities
Field Summary | |
static int |
LIBRARY
|
static String |
PDMLINK_BUSINESS_DOMAIN_ROOT
|
static String |
PDMLINK_PRODUCTS_ALIAS_VALUE
|
static String |
PDMLINK_REPOSITORIES_ALIAS_VALUE
|
static int |
PRODUCT
|
static int |
PRODUCT_AND_LIBRARY
|
private static boolean |
VERBOSE
|
Constructor Summary | |
FolderUtilities()
|
Method Summary | |
static Folder |
createWorkspaceFolder(WTPrincipal principal,
String name)
Create a sub-folder with the specified name underneath the personal cabinet of the specified principal. |
static boolean |
doesCabinetExist(String cabinetName)
Deprecated. Use doesCabinetExist(String cabinetName, WTContainer container) otherwise cabinet will be checked in the default (ClassicContainer) context only. |
static boolean |
doesCabinetExist(String cabinetName,
WTContainer container)
This method checks whether the a Cabinet exists for the specified cabinet name & specified container. |
static boolean |
doesFolderExist(String folderPath)
For the specified folder path, check if the folder exists. |
static boolean |
doesFolderExist(String folderPath,
WTContainer container)
This method checks whether the Folder of the specified folder path exists in the specified container. |
static Cabinet |
getCabinet(String cabinetName)
Deprecated. Use getCabinet(String cabinetName, WTContainer container) instead |
static Cabinet |
getCabinet(String cabinetName,
WTContainer container)
For the specified cabinet name & specified container, return back the Cabinet object. |
static QueryResult |
getCabinetsForChildDomains(String domainRoot)
Deprecated. No more applicable with containerization of PDMLink |
static QueryResult |
getEligibleCabinetsByType(int typeToReturn)
For the specified domain root and principle user return the QueryResult of the Cabinet objects for the domains of the specified typeToReturn. |
static QueryResult |
getEligibleProductCabinets()
For the principle user return the QueryResult of the Cabinet objects for the PDMLink Products. |
static QueryResult |
getEligibleProductOrRepositoryCabinets()
For the principle user return the QueryResult of the default (for business objects) Cabinet objects for PDMLink products and libraries. |
static QueryResult |
getEligibleRepositoryCabinets()
For the principle user return the QueryResult of the Cabinet objects for the PDMLink libraries. |
static Folder |
getFolder(String folderPath,
WTContainer container)
Return back the Folder for the specified folder path in the specified container. |
static PDMLinkHelperIfc |
getPDMLinkHelper()
Deprecated. PDMLinkHelperIfc is no more applicable after containerization of PDMLink. The class which implements this interface has been deleted in the PDMLink solution. |
static boolean |
isEligibleCabinet(Cabinet cabinet,
int typeToReturn)
Returns true if the cabinet is a default PDMLink cabinet of the specified value for PDMLink typeToReturn. |
static boolean |
isEligibleCabinet(String cabinetName,
int typeToReturn)
Deprecated. Use isEligibleCabinet(Cabinet cabinet, int typeToReturn)instead. It is not possible to find a cabinet for the given cabinet name as cabinet name is no more unique. |
static boolean |
isEligibleProductCabinet(Cabinet cabinet)
Returns true if the cabinet is a PDMLink Product's default cabinet. |
static boolean |
isEligibleProductCabinet(String cabinetName)
Deprecated. Use isEligibleProductCabinet(Cabinet cabinet) instead. It is not possible to find a cabinet for the given cabinet name as cabinet name is no more unique. |
static boolean |
isEligibleProductOrRepositoryCabinet(Cabinet cabinet)
Returns true if the cabinet is a PDMLink Product or Library's default cabinet. |
static boolean |
isEligibleProductOrRepositoryCabinet(String cabinetName)
Deprecated. Use isEligibleProductOrRepositoryCabinet(Cabinet cabinet) instead. It is not possible to find a cabinet for the given cabinet name as cabinet name is no more unique. |
static boolean |
isEligibleRepositoryCabinet(Cabinet cabinet)
Returns true if the cabinet is a PDMLink Library's default cabinet. |
static boolean |
isEligibleRepositoryCabinet(String cabinetName)
Deprecated. Use isEligibleRepositoryCabinet(Cabinet cabinet) instead. It is not possible to find a cabinet for the given cabinet name as cabinet name is no more unique. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PDMLINK_BUSINESS_DOMAIN_ROOT
public static final String PDMLINK_PRODUCTS_ALIAS_VALUE
public static final String PDMLINK_REPOSITORIES_ALIAS_VALUE
public static final int PRODUCT
public static final int LIBRARY
public static final int PRODUCT_AND_LIBRARY
private static boolean VERBOSE
Constructor Detail |
public FolderUtilities()
Method Detail |
public static boolean doesFolderExist(String folderPath) throws WTException
WTException
public static boolean doesFolderExist(String folderPath, WTContainer container) throws WTException
folderPath
- The folder path of the folder that is to be checked for existencecontainer
- The container object
WTException
public static boolean doesCabinetExist(String cabinetName) throws WTException
cabinetName
- The cabinet name of the Cabinet that is to be checked for existence
WTException
public static boolean doesCabinetExist(String cabinetName, WTContainer container) throws WTException
cabinetName
- The cabinet name of the Cabinet that is to be checked for existencecontainer
- The WTContainer object where this cabinet's existence is to be checked
WTException
public static QueryResult getCabinetsForChildDomains(String domainRoot) throws WTException
WTException
public static QueryResult getEligibleProductCabinets() throws WTException
WTException
public static QueryResult getEligibleRepositoryCabinets() throws WTException
WTException
public static QueryResult getEligibleProductOrRepositoryCabinets() throws WTException
WTException
public static QueryResult getEligibleCabinetsByType(int typeToReturn) throws WTException
WTException
public static boolean isEligibleProductCabinet(Cabinet cabinet) throws WTException
WTException
public static boolean isEligibleProductCabinet(String cabinetName) throws WTException
WTException
public static boolean isEligibleRepositoryCabinet(Cabinet cabinet) throws WTException
WTException
public static boolean isEligibleRepositoryCabinet(String cabinetName) throws WTException
WTException
public static boolean isEligibleProductOrRepositoryCabinet(Cabinet cabinet) throws WTException
WTException
public static boolean isEligibleProductOrRepositoryCabinet(String cabinetName) throws WTException
WTException
public static boolean isEligibleCabinet(Cabinet cabinet, int typeToReturn) throws WTException
WTException
public static boolean isEligibleCabinet(String cabinetName, int typeToReturn) throws WTException
WTException
public static PDMLinkHelperIfc getPDMLinkHelper() throws WTException
WTException
public static Folder getFolder(String folderPath, WTContainer container) throws WTException
WTException
public static Folder createWorkspaceFolder(WTPrincipal principal, String name) throws WTException
WTException
public static Cabinet getCabinet(String cabinetName) throws WTException
WTException
public static Cabinet getCabinet(String cabinetName, WTContainer container) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |