org.apache.continuum.purge.executor
Class AbstractContinuumPurgeExecutor

java.lang.Object
  extended by org.apache.continuum.purge.executor.AbstractContinuumPurgeExecutor
All Implemented Interfaces:
ContinuumPurgeExecutor
Direct Known Subclasses:
CleanAllPurgeExecutor, DaysOldDirectoryPurgeExecutor, DaysOldRepositoryPurgeExecutor, ReleasedSnapshotsRepositoryPurgeExecutor, RetentionCountDirectoryPurgeExecutor, RetentionCountRepositoryPurgeExecutor

public abstract class AbstractContinuumPurgeExecutor
extends Object
implements ContinuumPurgeExecutor

Some codes were taken from Archiva.

Author:
Maria Catherine Tan

Field Summary
 
Fields inherited from interface org.apache.continuum.purge.executor.ContinuumPurgeExecutor
ROLE
 
Constructor Summary
AbstractContinuumPurgeExecutor()
           
 
Method Summary
 void purge(Set<org.apache.maven.archiva.model.ArtifactReference> references, RepositoryManagedContent repository)
           
protected  void purgeSupportFiles(File artifactFile, String filename)
           This find support files for the artifactFile and deletes them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.continuum.purge.executor.ContinuumPurgeExecutor
purge
 

Constructor Detail

AbstractContinuumPurgeExecutor

public AbstractContinuumPurgeExecutor()
Method Detail

purge

public void purge(Set<org.apache.maven.archiva.model.ArtifactReference> references,
                  RepositoryManagedContent repository)

purgeSupportFiles

protected void purgeSupportFiles(File artifactFile,
                                 String filename)

This find support files for the artifactFile and deletes them.

Support Files are things like ".sha1", ".md5", ".asc", etc.

Parameters:
artifactFile - the file to base off of.


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