|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.util.EPMContainerHelper
The EPMContainerHelper class provides set of static methods to help
working with WTContainers
Supported API: false
Extendable: false
Field Summary | |
private static Class[] |
PDMLinkContainerClasses
List of WTContainer classes that could be in a PDMLink Solution |
private static String[] |
projectSubclasses
|
Constructor Summary | |
EPMContainerHelper()
|
Method Summary | |
static boolean |
canCreateLink(WTContainerRef fromContainerRef,
WTContainerRef toContainerRef)
Given two containers, tells if is valid to create link from fromContainer to toContainer Supported API: false |
private static Collection |
findInPackage(String pckgName,
Class superClass)
Find all the classes inheriting or implementing a given class in a given package. |
static WTContainerRef |
getCADNamespaceReference(EPMDocumentMaster master)
Returns the WTContainerRef to be used for CADNamespace |
static Folder |
getContainerDefaultCabinet(Workable workable)
Returns default cabinet of the container to which the workable belongs to |
static String[] |
getProjectClasses()
Returns all class names of all classes implementing the project functionality |
static QueryResult |
getSBWorkspaceCheckpoints(WTContainerRef sandbox)
Returns all the epmcheckpoints associated to workspaces in sandbox. |
private static String[] |
getSubclasses(Class superClass)
Get all the sub classes for a given class |
static boolean |
inPDMLinkContainer(WTContained contained)
Returns true if the given contained object is in a PDM Link container |
static boolean |
inProject(WTContained contained)
Returns true if the given container is a Project container |
static boolean |
inSameContainer(WTContained containedOne,
WTContained containedTwo)
Returns true if both contained objects are in the same container. |
private static boolean |
isAssignableFromPDMLinkContainerClasses(Class aClass)
Returns true if the given class is assignable from one of the classes in PDMLinkContainerClasses. |
static boolean |
isCreatedInSandbox(WTContained contained)
Returns true if Object was created in Sandbox |
static boolean |
isPDMLinkContainer(WTContainerRef containerRef)
Returns true if the given container is PDMLink container. |
static boolean |
isProject(WTContainerRef containerRef)
Returns true if the given container is a Project container |
static boolean |
isSameSolution(WTContainerRef firstRef,
WTContainerRef secondRef)
Returns true if given containers are part of same solution |
static boolean |
isSandboxWorkingCopy(Versioned sandboxObject)
Returns true if the given object is sandbox checked out copy or sandbox wip checked out copy. |
private static boolean |
isSharingAllowed(WTContainerRef roleAContainerRef,
WTContainerRef roleBContainerRef)
Returns true if given container can refer/use objects in other container |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Class[] PDMLinkContainerClasses
private static String[] projectSubclasses
Constructor Detail |
public EPMContainerHelper()
Method Detail |
public static boolean canCreateLink(WTContainerRef fromContainerRef, WTContainerRef toContainerRef) throws WTException
WTException
public static WTContainerRef getCADNamespaceReference(EPMDocumentMaster master) throws WTException
master
- EPMDocumentMaster
WTException
public static boolean isSameSolution(WTContainerRef firstRef, WTContainerRef secondRef)
public static boolean inSameContainer(WTContained containedOne, WTContained containedTwo) throws WTException
WTException
public static boolean isCreatedInSandbox(WTContained contained) throws WTException
ClassCastException
- if WTContained object is Iterated but it's master is not WTContained
WTException
private static boolean isSharingAllowed(WTContainerRef roleAContainerRef, WTContainerRef roleBContainerRef) throws WTException
WTException
private static boolean isAssignableFromPDMLinkContainerClasses(Class aClass)
public static boolean isPDMLinkContainer(WTContainerRef containerRef)
public static boolean inPDMLinkContainer(WTContained contained) throws WTException
WTException
public static boolean isProject(WTContainerRef containerRef)
public static boolean inProject(WTContained contained) throws WTException
WTException
public static QueryResult getSBWorkspaceCheckpoints(WTContainerRef sandbox) throws WTException, WTPropertyVetoException
sandbox
- containerRef
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public static Folder getContainerDefaultCabinet(Workable workable) throws WTException
WTException
public static boolean isSandboxWorkingCopy(Versioned sandboxObject) throws WTException
sandboxObject
- sandbox version to make determination for
WTException
private static Collection findInPackage(String pckgName, Class superClass)
pckgName
- the full package namesuperClass
- the super Class the descendants of which we are looking
for
private static String[] getSubclasses(Class superClass)
superClass
- the super Class the descendants of which we are looking
forpublic static String[] getProjectClasses()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |