com.ptc.epm.commands.transaction
Class AbstractContentOp

java.lang.Object
  extended bycom.ptc.epm.commands.transaction.AbstractContentOp
All Implemented Interfaces:
Serializable, TransactionOp
Direct Known Subclasses:
AddContentOp, AddContentOpSrv

public abstract class AbstractContentOp
extends Object
implements TransactionOp

See Also:
Serialized Form

Field Summary
protected  ApplicationData applData
           
protected  ContentHolder contentHolder
           
static String EDA_CATEGORY
           
protected  File file
           
static String NATIVE_CATEGORY
           
 
Constructor Summary
AbstractContentOp()
           
AbstractContentOp(ContentHolder holder, File file, ApplicationData applData)
           
 
Method Summary
 Object execute(DataExchange exchange)
           
protected static ApplicationData getApplData(ContentHolder holder, File file, String fileName, boolean asPrimary)
           
protected static boolean isEDAFile(String fileName)
           
protected static boolean isNativeFile(String fileName)
           
 void publishResults(Object none, ResultsMapping results)
           
 void updateInput(ObjectUpdateTable table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDA_CATEGORY

public static String EDA_CATEGORY

NATIVE_CATEGORY

public static String NATIVE_CATEGORY

contentHolder

protected ContentHolder contentHolder

applData

protected ApplicationData applData

file

protected transient File file
Constructor Detail

AbstractContentOp

public AbstractContentOp()

AbstractContentOp

public AbstractContentOp(ContentHolder holder,
                         File file,
                         ApplicationData applData)
                  throws WTException,
                         FileNotFoundException
Method Detail

getApplData

protected static ApplicationData getApplData(ContentHolder holder,
                                             File file,
                                             String fileName,
                                             boolean asPrimary)
                                      throws WTException,
                                             FileNotFoundException
Throws:
WTException
FileNotFoundException

execute

public Object execute(DataExchange exchange)
               throws WTException
Specified by:
execute in interface TransactionOp
Throws:
WTException

publishResults

public void publishResults(Object none,
                           ResultsMapping results)
Specified by:
publishResults in interface TransactionOp

updateInput

public void updateInput(ObjectUpdateTable table)
Specified by:
updateInput in interface TransactionOp

isEDAFile

protected static boolean isEDAFile(String fileName)

isNativeFile

protected static boolean isNativeFile(String fileName)