org.apache.maven.archiva.transaction
Class CopyFileEvent

java.lang.Object
  extended by org.apache.maven.archiva.transaction.AbstractTransactionEvent
      extended by org.apache.maven.archiva.transaction.CopyFileEvent
All Implemented Interfaces:
TransactionEvent

public class CopyFileEvent
extends AbstractTransactionEvent

Event to copy a file.

Version:
$Id: CopyFileEvent.java 755305 2009-03-17 16:24:16Z brett $

Constructor Summary
CopyFileEvent(java.io.File source, java.io.File destination, java.util.List<org.codehaus.plexus.digest.Digester> digesters)
           
 
Method Summary
 void commit()
          Commit this event.
 void rollback()
          Rollback the even already committed.
 
Methods inherited from class org.apache.maven.archiva.transaction.AbstractTransactionEvent
createBackup, createChecksums, getDigesterFileExtension, getDigesters, mkDirs, restoreBackup, restoreBackups, revertFilesCreated, revertMkDirs, writeStringToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyFileEvent

public CopyFileEvent(java.io.File source,
                     java.io.File destination,
                     java.util.List<org.codehaus.plexus.digest.Digester> digesters)
Parameters:
source -
destination -
digesters - List<Digester> digesters to use for checksumming
Method Detail

commit

public void commit()
            throws java.io.IOException
Description copied from interface: TransactionEvent
Commit this event.

Throws:
java.io.IOException - if an error occurred committing the change

rollback

public void rollback()
              throws java.io.IOException
Description copied from interface: TransactionEvent
Rollback the even already committed.

Throws:
java.io.IOException - if an error occurred reverting the change


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.