Adapt to new build system
[gpl/argeo-slc.git] / org.argeo.slc.cms / src / org / argeo / slc / backup / vfs / BackupPurge.java
diff --git a/org.argeo.slc.cms/src/org/argeo/slc/backup/vfs/BackupPurge.java b/org.argeo.slc.cms/src/org/argeo/slc/backup/vfs/BackupPurge.java
new file mode 100644 (file)
index 0000000..1d07bbf
--- /dev/null
@@ -0,0 +1,18 @@
+package org.argeo.slc.backup.vfs;
+
+import java.text.DateFormat;
+
+import org.apache.commons.vfs2.FileSystemManager;
+import org.apache.commons.vfs2.FileSystemOptions;
+
+/** Purges previous backups */
+public interface BackupPurge {
+       /**
+        * Purge the backups identified by these arguments. Although these are the
+        * same fields as a {@link BackupContext} we don't pass it as argument since
+        * we want to use this interface to purge remote backups as well (that is,
+        * with a different base), or outside the scope of a running backup.
+        */
+       public void purge(FileSystemManager fileSystemManager, String base,
+                       String name, DateFormat dateFormat, FileSystemOptions opts);
+}