com.ptc.epm.commands.util
Class WorkspaceHelper

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

public class WorkspaceHelper
extends Object


Constructor Summary
WorkspaceHelper()
           
 
Method Summary
private static boolean containsDoc(Vector vectorOfEPMDocuments, EPMDocument doc)
           
static EPMWorkspace createWorkspace(String name, WTPrincipal principal, Folder folder, WTContainerRef containerRef)
           
static void destroyWorkspace(String name, String owner)
           
static Vector filterOutComponenets(Collection objects)
           
static Baseline findLatestBaseline(List baselines)
           
static EPMAsStoredConfig findLatestEPMAsStoredConfig(EPMDocument doc)
           
static EPMCheckpoint findLatestEPMCheckpoint(EPMDocument doc)
           
static Vector getBaselineItems(Baseline baseline)
           
static HashMap getCheckedOutEPMDocs(Baseline baseline)
           
static QueryResult getMembers(EPMAsStoredConfig asStoredConfig)
           
static Vector getObjectsToAdd(Vector objectsToCheckout, Baseline baseline)
           
static QueryResult getOwners(EPMAsStoredConfig asStoredConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceHelper

public WorkspaceHelper()
Method Detail

destroyWorkspace

public static void destroyWorkspace(String name,
                                    String owner)
                             throws WTException
Throws:
WTException

createWorkspace

public static EPMWorkspace createWorkspace(String name,
                                           WTPrincipal principal,
                                           Folder folder,
                                           WTContainerRef containerRef)
                                    throws WTException,
                                           WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getBaselineItems

public static Vector getBaselineItems(Baseline baseline)
                               throws WTException
Throws:
WTException

filterOutComponenets

public static Vector filterOutComponenets(Collection objects)

getObjectsToAdd

public static Vector getObjectsToAdd(Vector objectsToCheckout,
                                     Baseline baseline)
                              throws WTException
Throws:
WTException

findLatestBaseline

public static Baseline findLatestBaseline(List baselines)

findLatestEPMAsStoredConfig

public static EPMAsStoredConfig findLatestEPMAsStoredConfig(EPMDocument doc)
                                                     throws WTException
Throws:
WTException

findLatestEPMCheckpoint

public static EPMCheckpoint findLatestEPMCheckpoint(EPMDocument doc)
                                             throws WTException
Throws:
WTException

getOwners

public static QueryResult getOwners(EPMAsStoredConfig asStoredConfig)
                             throws WTException
Throws:
WTException

getMembers

public static QueryResult getMembers(EPMAsStoredConfig asStoredConfig)
                              throws WTException
Throws:
WTException

getCheckedOutEPMDocs

public static HashMap getCheckedOutEPMDocs(Baseline baseline)
                                    throws WTException
Throws:
WTException

containsDoc

private static boolean containsDoc(Vector vectorOfEPMDocuments,
                                   EPMDocument doc)