org.apache.archiva.transaction
Class CreateFileEvent

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

public class CreateFileEvent
extends AbstractTransactionEvent

Event for creating a file from a string content.

Version:
$Id: CreateFileEvent.java 1164829 2011-09-03 08:27:41Z olamy $

Constructor Summary
CreateFileEvent(String content, File destination, List<? extends 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.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

CreateFileEvent

public CreateFileEvent(String content,
                       File destination,
                       List<? extends org.codehaus.plexus.digest.Digester> digesters)
Parameters:
content -
destination -
digesters - List<Digester> digesters to use for checksumming
Method Detail

commit

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

Throws:
IOException - if an error occurred committing the change

rollback

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

Throws:
IOException - if an error occurred reverting the change


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