com.ptc.epm.commands.transaction
Class AddContentOp
java.lang.Object
com.ptc.epm.commands.transaction.AbstractContentOp
com.ptc.epm.commands.transaction.AddContentOp
- All Implemented Interfaces:
- Serializable, TransactionOp
- public class AddContentOp
- extends AbstractContentOp
- See Also:
- Serialized Form
BUFSIZ
private static final int BUFSIZ
- See Also:
- Constant Field Values
consumed
private transient boolean consumed
upload
private transient boolean upload
AddContentOp
public AddContentOp()
AddContentOp
public AddContentOp(ContentHolder holder,
File file,
ApplicationData applData)
throws WTException,
FileNotFoundException
getApplData
protected static ApplicationData getApplData(ContentHolder holder,
File file,
boolean asPrimary)
throws WTException,
FileNotFoundException
- Throws:
WTException
FileNotFoundException
execute
public Object execute(DataExchange exchange)
throws WTException
- Specified by:
execute
in interface TransactionOp
- Overrides:
execute
in class AbstractContentOp
- Throws:
WTException
readObject
private void readObject(ObjectInputStream inputStream)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
updateContent
private ApplicationData updateContent(ContentHolder contentHolder,
ApplicationData applData,
InputStream inputStream)
throws WTException,
PropertyVetoException,
IOException
- Throws:
WTException
PropertyVetoException
IOException
writeObject
private void writeObject(ObjectOutputStream outputStream)
throws IOException
- Throws:
IOException
toString
public String toString()