Adapt to new build system
[gpl/argeo-slc.git] / org.argeo.slc.cms / src / org / argeo / slc / backup / vfs / BackupContext.java
diff --git a/org.argeo.slc.cms/src/org/argeo/slc/backup/vfs/BackupContext.java b/org.argeo.slc.cms/src/org/argeo/slc/backup/vfs/BackupContext.java
new file mode 100644 (file)
index 0000000..9c1140b
--- /dev/null
@@ -0,0 +1,25 @@
+package org.argeo.slc.backup.vfs;
+
+import java.text.DateFormat;
+import java.util.Date;
+
+/**
+ * Transient information of a given backup, centralizing common information such
+ * as timestamp and location.
+ */
+public interface BackupContext {
+       /** Backup date */
+       public Date getTimestamp();
+
+       /** Formatted backup date */
+       public String getTimestampAsString();
+
+       /** System name */
+       public String getSystemName();
+
+       /** Local base */
+       public String getRelativeFolder();
+
+       /** Date format */
+       public DateFormat getDateFormat();
+}