|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.transaction.AbstractTransactionEvent
public abstract class AbstractTransactionEvent
Abstract class for the TransactionEvents
Constructor Summary | |
---|---|
protected |
AbstractTransactionEvent()
|
protected |
AbstractTransactionEvent(java.util.List<org.codehaus.plexus.digest.Digester> digesters)
|
Method Summary | |
---|---|
protected void |
createBackup(java.io.File file)
|
protected void |
createChecksums(java.io.File file,
boolean force)
Create checksums of file using all digesters defined at construction time. |
protected java.lang.String |
getDigesterFileExtension(org.codehaus.plexus.digest.Digester digester)
File extension for checksums TODO should be moved to plexus-digester ? |
protected java.util.List<org.codehaus.plexus.digest.Digester> |
getDigesters()
|
protected void |
mkDirs(java.io.File dir)
Method that creates a directory as well as all the parent directories needed |
protected void |
restoreBackup(java.io.File file)
|
protected void |
restoreBackups()
|
protected void |
revertFilesCreated()
|
protected void |
revertMkDirs()
|
protected void |
writeStringToFile(java.io.File file,
java.lang.String content)
TODO: Remove in favor of using FileUtils directly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.archiva.transaction.TransactionEvent |
---|
commit, rollback |
Constructor Detail |
---|
protected AbstractTransactionEvent()
protected AbstractTransactionEvent(java.util.List<org.codehaus.plexus.digest.Digester> digesters)
Method Detail |
---|
protected java.util.List<org.codehaus.plexus.digest.Digester> getDigesters()
protected void mkDirs(java.io.File dir) throws java.io.IOException
dir
- The File directory to be created
java.io.IOException
- when an unrecoverable error occurredprotected void revertMkDirs() throws java.io.IOException
java.io.IOException
protected void revertFilesCreated() throws java.io.IOException
java.io.IOException
protected void createBackup(java.io.File file) throws java.io.IOException
java.io.IOException
protected void restoreBackups() throws java.io.IOException
java.io.IOException
protected void restoreBackup(java.io.File file) throws java.io.IOException
java.io.IOException
protected void createChecksums(java.io.File file, boolean force) throws java.io.IOException
file
- force
- whether existing checksums should be overwritten or not
java.io.IOException
protected void writeStringToFile(java.io.File file, java.lang.String content) throws java.io.IOException
java.io.IOException
protected java.lang.String getDigesterFileExtension(org.codehaus.plexus.digest.Digester digester)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |