com.ptc.windchill.cadx.checkout
Class CheckoutProxy

java.lang.Object
  extended bycom.ptc.windchill.cadx.checkout.CheckoutProxy

public class CheckoutProxy
extends Object


Field Summary
static int ASSOCIATED
           
private static String CLASSNAME
           
static int DRAWING
           
static Comparator EPMDOCUMENTINFO_COMPARATOR
           
static int GENERIC
           
static int INSTANCE
           
static int OPTIONAL
           
static int REQUIRED
           
private static String RESOURCE
           
static int SELECTED
           
private static boolean VERBOSE
           
 
Constructor Summary
CheckoutProxy()
           
 
Method Summary
static Object[] checkoutObjectswithoutdownload(Object[] inArrayOfObjects, EPMWorkspace workspace)
           
static Object[] downloadObjectsLinkOnly(Vector inVectorOfObjects, EPMWorkspace workspace)
           
private static void extractGenericAndInstancesWithAssociation(ArrayList inputList, ArrayList outputList, EPMWorkspace workspace, boolean includeInstances, ArrayList genericOfSelectedList, ArrayList instanceOfSelectedList, ConfigSpec wsDocConfigSpec, ConfigSpec wsPartConfigSpec, int includeAs)
           
static Object[] filterObjectsOnConfigSpecs(Object[] inputObjects, ConfigSpec partConfigSpec, ConfigSpec docConfigSpec, EPMWorkspace ws)
           
static List[] getAllInstances(List arrayObjects, boolean includeInstances, boolean checkoutMetadata, ConfigSpec docConfigSpec, EPMWorkspace workspace, ConfigSpec partConfigSpec, boolean isPartCentric)
           
static Object[] getDocObjectDependencies(EPMWorkspace workspace, Object[] selectedObjects, boolean includeInstances, EPMDocConfigSpec docConfigSpec, WTPartConfigSpec partConfigSpec)
           
static String getKey(Object obj)
           
static Object[] getObjectDependencies(EPMWorkspace workspace, Object[] selectedObjects, boolean includeInstances, EPMDocConfigSpec docConfigSpec, WTPartConfigSpec partConfigSpec)
           
static Object[] getObjects(Object[] info)
           
static String getObjId(Object obj)
           
static Object[] getPartObjectDependencies(EPMWorkspace workspace, Object[] selectedObjects, boolean includeInstances, EPMDocConfigSpec docConfigSpec, WTPartConfigSpec partConfigSpec)
           
static Object[] getRefreshNeededObjects(Object[] info)
           
static HashMap getWorkspaceObjects(EPMWorkspace ws)
           
static void printDebugMessage(String x, Object[] objects)
           
static ArrayList refreshObjectList(Object[] wsObjectInfo, EPMWorkspace ws, ConfigSpec docCs, ConfigSpec partCs, boolean isPartCentric)
           
static void updateOutOfDateInfoBasedOnWorkspaceConfig(Object[] inputObjects, EPMWorkspace ws, boolean isPartCentric)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

SELECTED

public static int SELECTED

REQUIRED

public static int REQUIRED

OPTIONAL

public static int OPTIONAL

DRAWING

public static int DRAWING

ASSOCIATED

public static int ASSOCIATED

INSTANCE

public static int INSTANCE

GENERIC

public static int GENERIC

VERBOSE

private static boolean VERBOSE

EPMDOCUMENTINFO_COMPARATOR

public static final Comparator EPMDOCUMENTINFO_COMPARATOR
Constructor Detail

CheckoutProxy

public CheckoutProxy()
Method Detail

getObjectDependencies

public static Object[] getObjectDependencies(EPMWorkspace workspace,
                                             Object[] selectedObjects,
                                             boolean includeInstances,
                                             EPMDocConfigSpec docConfigSpec,
                                             WTPartConfigSpec partConfigSpec)
                                      throws Exception
Throws:
Exception

extractGenericAndInstancesWithAssociation

private static void extractGenericAndInstancesWithAssociation(ArrayList inputList,
                                                              ArrayList outputList,
                                                              EPMWorkspace workspace,
                                                              boolean includeInstances,
                                                              ArrayList genericOfSelectedList,
                                                              ArrayList instanceOfSelectedList,
                                                              ConfigSpec wsDocConfigSpec,
                                                              ConfigSpec wsPartConfigSpec,
                                                              int includeAs)
                                                       throws WTException
Throws:
WTException

getDocObjectDependencies

public static Object[] getDocObjectDependencies(EPMWorkspace workspace,
                                                Object[] selectedObjects,
                                                boolean includeInstances,
                                                EPMDocConfigSpec docConfigSpec,
                                                WTPartConfigSpec partConfigSpec)
                                         throws Exception
Throws:
Exception

getPartObjectDependencies

public static Object[] getPartObjectDependencies(EPMWorkspace workspace,
                                                 Object[] selectedObjects,
                                                 boolean includeInstances,
                                                 EPMDocConfigSpec docConfigSpec,
                                                 WTPartConfigSpec partConfigSpec)
                                          throws Exception
Throws:
Exception

refreshObjectList

public static ArrayList refreshObjectList(Object[] wsObjectInfo,
                                          EPMWorkspace ws,
                                          ConfigSpec docCs,
                                          ConfigSpec partCs,
                                          boolean isPartCentric)
                                   throws WTException,
                                          WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

downloadObjectsLinkOnly

public static Object[] downloadObjectsLinkOnly(Vector inVectorOfObjects,
                                               EPMWorkspace workspace)
                                        throws Exception
Throws:
Exception

checkoutObjectswithoutdownload

public static Object[] checkoutObjectswithoutdownload(Object[] inArrayOfObjects,
                                                      EPMWorkspace workspace)
                                               throws Exception
Throws:
Exception

getAllInstances

public static List[] getAllInstances(List arrayObjects,
                                     boolean includeInstances,
                                     boolean checkoutMetadata,
                                     ConfigSpec docConfigSpec,
                                     EPMWorkspace workspace,
                                     ConfigSpec partConfigSpec,
                                     boolean isPartCentric)
                              throws WTException
Throws:
WTException

getKey

public static String getKey(Object obj)

getObjId

public static String getObjId(Object obj)

getObjects

public static Object[] getObjects(Object[] info)

getRefreshNeededObjects

public static Object[] getRefreshNeededObjects(Object[] info)

getWorkspaceObjects

public static HashMap getWorkspaceObjects(EPMWorkspace ws)
                                   throws WTException
Throws:
WTException

filterObjectsOnConfigSpecs

public static Object[] filterObjectsOnConfigSpecs(Object[] inputObjects,
                                                  ConfigSpec partConfigSpec,
                                                  ConfigSpec docConfigSpec,
                                                  EPMWorkspace ws)
                                           throws WTException
Throws:
WTException

updateOutOfDateInfoBasedOnWorkspaceConfig

public static void updateOutOfDateInfoBasedOnWorkspaceConfig(Object[] inputObjects,
                                                             EPMWorkspace ws,
                                                             boolean isPartCentric)
                                                      throws WTException
Throws:
WTException

printDebugMessage

public static void printDebugMessage(String x,
                                     Object[] objects)