com.ptc.epm.commands.transaction
Class ECADTransaction

java.lang.Object
  extended bycom.ptc.epm.commands.transaction.ECADTransaction

public class ECADTransaction
extends Object


Field Summary
(package private)  ArrayList baselineOperations
           
(package private)  ConfigSpec configSpec
           
(package private)  ArrayList deleteOperations
           
(package private)  ArrayList describeOperations
           
(package private)  ArrayList finalOperations
           
(package private)  MoveOp moves
           
(package private)  HashSet objectsToSave
           
(package private)  ObjectUpdateTable objUpdateTable
           
(package private)  ArrayList operations
           
(package private)  ResultsMapping results
           
(package private) static boolean SERVER
           
 
Constructor Summary
ECADTransaction(ConfigSpec configSpec)
           
 
Method Summary
 CachedContentDescriptor[] addAsCachedContent(File file)
           
 void addAsContent(ContentHolder holder, File file, boolean asPrimary)
           
 void addAsContent(ContentHolder holder, File file, String fileName, boolean asPrimary)
           
 void addAsContentSrv(ContentHolder holder, File file, String fileName, boolean asPrimary)
           
 void addDescribeLink(EPMDocument epmDoc, ECADDescribeBy xLink)
           
 void addDescribeLinktoNewPart(EPMDocument epmDoc, ECADDescribeBy xLink)
           
 void addMember(Baselineable object, Baseline baseline)
           
 void addToBaseline(Baselineable object, Baseline baseline)
           
 void buildObject(BuildSource source)
           
 void buildObject(BuildTarget target)
           
 void checkin(Workable object, String note)
           
 void checkinLast(Workable object, String note)
           
 void checkout(Workable object, String note, Folder checkOutFolder)
           
 void commit()
           
 void deleteObject(Persistable object)
           
 void deleteObjectLast(Persistable object)
           
protected  BaselineOp getBaselineOp(Baseline baseline)
           
 QueryResult getBuildResults(BuildSource source)
           
 BuildTarget getBuildResults(BuildTarget target)
           
protected  TransactionOp getCurrentOp()
           
private static ObjectIdentifier getOID(Persistable object)
           
 void moveObject(Foldered object, Folder newFolder)
           
 Persistable refreshObject(Persistable original)
           
 void removeContent(ContentHolder holder, ArrayList filesToKeep)
           
 void removeContent(ContentHolder holder, ContentItem item)
           
 void removeFromBaseline(Baselineable object, Baseline baseline)
           
 void saveObject(EPMDocument object, String revision)
           
 void saveObject(Persistable object)
           
 void saveUsesOccurrence(UsesOccurrence occurrence, Vector occurrenceData)
           
 String toString()
           
 void undoCheckout(Workable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

operations

ArrayList operations

deleteOperations

ArrayList deleteOperations

baselineOperations

ArrayList baselineOperations

describeOperations

ArrayList describeOperations

moves

MoveOp moves

finalOperations

ArrayList finalOperations

results

ResultsMapping results

objectsToSave

HashSet objectsToSave

configSpec

ConfigSpec configSpec

objUpdateTable

ObjectUpdateTable objUpdateTable
Constructor Detail

ECADTransaction

public ECADTransaction(ConfigSpec configSpec)
Method Detail

saveObject

public void saveObject(Persistable object)
                throws WTException
Throws:
WTException

saveObject

public void saveObject(EPMDocument object,
                       String revision)
                throws WTException
Throws:
WTException

saveUsesOccurrence

public void saveUsesOccurrence(UsesOccurrence occurrence,
                               Vector occurrenceData)
                        throws WTException
Throws:
WTException

deleteObject

public void deleteObject(Persistable object)
                  throws WTException
Throws:
WTException

deleteObjectLast

public void deleteObjectLast(Persistable object)
                      throws WTException
Throws:
WTException

moveObject

public void moveObject(Foldered object,
                       Folder newFolder)
                throws WTException
Throws:
WTException

addDescribeLink

public void addDescribeLink(EPMDocument epmDoc,
                            ECADDescribeBy xLink)
                     throws WTException
Throws:
WTException

addDescribeLinktoNewPart

public void addDescribeLinktoNewPart(EPMDocument epmDoc,
                                     ECADDescribeBy xLink)
                              throws WTException
Throws:
WTException

buildObject

public void buildObject(BuildTarget target)
                 throws WTException
Throws:
WTException

buildObject

public void buildObject(BuildSource source)
                 throws WTException
Throws:
WTException

addAsContent

public void addAsContent(ContentHolder holder,
                         File file,
                         boolean asPrimary)
                  throws WTException,
                         FileNotFoundException
Throws:
WTException
FileNotFoundException

addAsContent

public void addAsContent(ContentHolder holder,
                         File file,
                         String fileName,
                         boolean asPrimary)
                  throws WTException,
                         FileNotFoundException
Throws:
WTException
FileNotFoundException

addAsContentSrv

public void addAsContentSrv(ContentHolder holder,
                            File file,
                            String fileName,
                            boolean asPrimary)
                     throws WTException,
                            FileNotFoundException
Throws:
WTException
FileNotFoundException

removeContent

public void removeContent(ContentHolder holder,
                          ContentItem item)
                   throws WTException
Throws:
WTException

removeContent

public void removeContent(ContentHolder holder,
                          ArrayList filesToKeep)
                   throws WTException
Throws:
WTException

addToBaseline

public void addToBaseline(Baselineable object,
                          Baseline baseline)

addMember

public void addMember(Baselineable object,
                      Baseline baseline)

removeFromBaseline

public void removeFromBaseline(Baselineable object,
                               Baseline baseline)

checkin

public void checkin(Workable object,
                    String note)

checkinLast

public void checkinLast(Workable object,
                        String note)

checkout

public void checkout(Workable object,
                     String note,
                     Folder checkOutFolder)

undoCheckout

public void undoCheckout(Workable object)
                  throws WTException
Throws:
WTException

refreshObject

public Persistable refreshObject(Persistable original)

getBuildResults

public BuildTarget getBuildResults(BuildTarget target)

getBuildResults

public QueryResult getBuildResults(BuildSource source)

commit

public void commit()
            throws WTException
Throws:
WTException

toString

public String toString()

getCurrentOp

protected TransactionOp getCurrentOp()

getBaselineOp

protected BaselineOp getBaselineOp(Baseline baseline)

addAsCachedContent

public CachedContentDescriptor[] addAsCachedContent(File file)
                                             throws WTException,
                                                    FileNotFoundException
Throws:
WTException
FileNotFoundException

getOID

private static ObjectIdentifier getOID(Persistable object)