com.ptc.windchill.cadx.common.util
Class CheckoutMetadataHelper

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.util.CheckoutMetadataHelper

public class CheckoutMetadataHelper
extends Object


Field Summary
private static String CHECKOUT_METADATA_VECTOR
           
private static String CLASSNAME
           
static String DOWNLOAD_LINKONLY
           
private static String DOWNLOAD_LINKONLY_VECTOR
           
private static String EPM_APP_TYPE
           
private static String RESOURCE
           
static String WORKSPACE_CHECKOUTMETADATA
           
 
Constructor Summary
CheckoutMetadataHelper()
           
 
Method Summary
static void addObjectsToCheckoutMetaDataVector(EPMWorkspace workspace, Object[] arrayOfObjects, String metaDataType)
          This method adds objects to the CheckoutMetaData supporting data of a given workspace
static void addObjectsUsingOidsToCheckoutMetaDataVector(EPMWorkspace workspace, Object[] arrayOfOids, String metaDataType)
          This method adds objects using oids to the CheckoutMetaData supporting data of a given workspace Make sure the oids are Object Reference
static Vector getCheckoutMetadata(EPMWorkspace workspace, String metaDataType)
          Deprecated.  
static String getOid(Versioned obj)
           
static boolean isObjectCheckoutMetadataInWorkspace(EPMWorkspace workspace, EPMDocument doc)
          This method whether object is CheckoutMetaData in the given workspace
static boolean isObjectDownloadMetadataInWorkspace(EPMWorkspace workspace, EPMDocument doc)
          spatanka : Vide SPR 1047902 : Added this method to see that the object is DOWNLOAD_LINKONLY in the given workspace
static void removeObjectsFromCheckoutMetaData(EPMWorkspace workspace, Object[] arrayOfObjects, String metaDataType)
          This method removes objects from the CheckoutMetaData supporting data of a given workspace
static void removeObjectsUsingOidsFromCheckoutMetaData(EPMWorkspace workspace, Object[] arrayOfOids, String metaDataType)
          This method removes objects using oids from the CheckoutMetaData supporting data of a given workspace
static void saveCheckoutMetadata(EPMWorkspace workspace, Vector checkoutMetadata, String metaDataType)
          Deprecated.  
 
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

WORKSPACE_CHECKOUTMETADATA

public static final String WORKSPACE_CHECKOUTMETADATA
See Also:
Constant Field Values

DOWNLOAD_LINKONLY

public static final String DOWNLOAD_LINKONLY
See Also:
Constant Field Values

CHECKOUT_METADATA_VECTOR

private static final String CHECKOUT_METADATA_VECTOR
See Also:
Constant Field Values

DOWNLOAD_LINKONLY_VECTOR

private static final String DOWNLOAD_LINKONLY_VECTOR
See Also:
Constant Field Values

EPM_APP_TYPE

private static final String EPM_APP_TYPE
See Also:
Constant Field Values
Constructor Detail

CheckoutMetadataHelper

public CheckoutMetadataHelper()
Method Detail

addObjectsToCheckoutMetaDataVector

public static void addObjectsToCheckoutMetaDataVector(EPMWorkspace workspace,
                                                      Object[] arrayOfObjects,
                                                      String metaDataType)
                                               throws WTException,
                                                      WTPropertyVetoException
This method adds objects to the CheckoutMetaData supporting data of a given workspace

Throws:
WTException
WTPropertyVetoException

addObjectsUsingOidsToCheckoutMetaDataVector

public static void addObjectsUsingOidsToCheckoutMetaDataVector(EPMWorkspace workspace,
                                                               Object[] arrayOfOids,
                                                               String metaDataType)
                                                        throws WTException,
                                                               WTPropertyVetoException
This method adds objects using oids to the CheckoutMetaData supporting data of a given workspace Make sure the oids are Object Reference

Throws:
WTException
WTPropertyVetoException

saveCheckoutMetadata

public static void saveCheckoutMetadata(EPMWorkspace workspace,
                                        Vector checkoutMetadata,
                                        String metaDataType)
                                 throws WTPropertyVetoException,
                                        WTException
Deprecated.  

This method saves Checkout Metadata Vector for the workspace Make sure the oids are Object Reference

Throws:
WTPropertyVetoException
WTException

getCheckoutMetadata

public static Vector getCheckoutMetadata(EPMWorkspace workspace,
                                         String metaDataType)
                                  throws WTException,
                                         WTPropertyVetoException
Deprecated.  

This method gets Checkout Metadata Vector for the workspace Make sure the oids are Object Reference

Returns:
Vector
Throws:
WTException
WTPropertyVetoException

removeObjectsFromCheckoutMetaData

public static void removeObjectsFromCheckoutMetaData(EPMWorkspace workspace,
                                                     Object[] arrayOfObjects,
                                                     String metaDataType)
                                              throws WTException,
                                                     WTPropertyVetoException
This method removes objects from the CheckoutMetaData supporting data of a given workspace

Throws:
WTException
WTPropertyVetoException

removeObjectsUsingOidsFromCheckoutMetaData

public static void removeObjectsUsingOidsFromCheckoutMetaData(EPMWorkspace workspace,
                                                              Object[] arrayOfOids,
                                                              String metaDataType)
                                                       throws WTException,
                                                              WTPropertyVetoException
This method removes objects using oids from the CheckoutMetaData supporting data of a given workspace

Throws:
WTException
WTPropertyVetoException

isObjectCheckoutMetadataInWorkspace

public static boolean isObjectCheckoutMetadataInWorkspace(EPMWorkspace workspace,
                                                          EPMDocument doc)
                                                   throws WTException,
                                                          WTPropertyVetoException
This method whether object is CheckoutMetaData in the given workspace

Returns:
boolean
Throws:
WTException
WTPropertyVetoException

isObjectDownloadMetadataInWorkspace

public static boolean isObjectDownloadMetadataInWorkspace(EPMWorkspace workspace,
                                                          EPMDocument doc)
                                                   throws WTException,
                                                          WTPropertyVetoException
spatanka : Vide SPR 1047902 : Added this method to see that the object is DOWNLOAD_LINKONLY in the given workspace

Returns:
boolean
Throws:
WTException
WTPropertyVetoException

getOid

public static String getOid(Versioned obj)