org.apache.archiva.transaction
Class FileTransaction
java.lang.Object
org.apache.archiva.transaction.FileTransaction
public class FileTransaction
- extends Object
Implement commit/rollback semantics for a set of files.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
events
private List<AbstractTransactionEvent> events
FileTransaction
public FileTransaction()
commit
public void commit()
throws TransactionException
- Throws:
TransactionException
rollback
private void rollback(List<TransactionEvent> toRollback)
throws IOException
- Throws:
IOException
copyFile
public void copyFile(File source,
File destination,
List<? extends org.codehaus.plexus.digest.Digester> digesters)
- Parameters:
source
- destination
- digesters
- List
<Digester
> digesters to use for checksumming
createFile
public void createFile(String content,
File destination,
List<? extends org.codehaus.plexus.digest.Digester> digesters)
- Parameters:
content
- destination
- digesters
- List
<Digester
> digesters to use for checksumming
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.