[Lada-commits] [PATCH 05 of 10] Added interface and annotation for exporter
Wald Commits
scm-commit at wald.intevation.org
Thu Apr 16 15:49:20 CEST 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1429192011 -7200
# Node ID 9a4ec6fb53a7f34a191fd0e86a7fa80d9689b0bc
# Parent 432e253e47884ca3a29fdb23efe58cc21d7e2ed7
Added interface and annotation for exporter.
diff -r 432e253e4788 -r 9a4ec6fb53a7 src/main/java/de/intevation/lada/exporter/Creator.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/exporter/Creator.java Thu Apr 16 15:46:51 2015 +0200
@@ -0,0 +1,11 @@
+package de.intevation.lada.exporter;
+
+
+/**
+ *
+ * @author <a href="mailto:rrenkert at intevation.de">Raimund Renkert</a>
+ */
+public interface Creator
+{
+ public String create(String probeId);
+}
diff -r 432e253e4788 -r 9a4ec6fb53a7 src/main/java/de/intevation/lada/exporter/ExportConfig.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/exporter/ExportConfig.java Thu Apr 16 15:46:51 2015 +0200
@@ -0,0 +1,19 @@
+package de.intevation.lada.exporter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+ at Qualifier
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target({
+ ElementType.TYPE,
+ ElementType.FIELD,
+ ElementType.METHOD,
+ ElementType.PARAMETER})
+public @interface ExportConfig {
+ ExportFormat format() default ExportFormat.LAF;
+}
diff -r 432e253e4788 -r 9a4ec6fb53a7 src/main/java/de/intevation/lada/exporter/ExportFormat.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/exporter/ExportFormat.java Thu Apr 16 15:46:51 2015 +0200
@@ -0,0 +1,5 @@
+package de.intevation.lada.exporter;
+
+public enum ExportFormat {
+ LAF
+}
diff -r 432e253e4788 -r 9a4ec6fb53a7 src/main/java/de/intevation/lada/exporter/Exporter.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/exporter/Exporter.java Thu Apr 16 15:46:51 2015 +0200
@@ -0,0 +1,11 @@
+package de.intevation.lada.exporter;
+
+import java.io.InputStream;
+import java.util.List;
+
+import de.intevation.lada.util.auth.UserInfo;
+
+public interface Exporter
+{
+ public InputStream export(List<Integer> proben, UserInfo userInfo);
+}
More information about the Lada-commits
mailing list