Mercurial > lada > lada-server
changeset 607:9a4ec6fb53a7
Added interface and annotation for exporter.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 16 Apr 2015 15:46:51 +0200 |
parents | 432e253e4788 |
children | e35f047f019f |
files | src/main/java/de/intevation/lada/exporter/Creator.java src/main/java/de/intevation/lada/exporter/ExportConfig.java src/main/java/de/intevation/lada/exporter/ExportFormat.java src/main/java/de/intevation/lada/exporter/Exporter.java |
diffstat | 4 files changed, 46 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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@intevation.de">Raimund Renkert</a> + */ +public interface Creator +{ + public String create(String probeId); +}
--- /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; + +@Qualifier +@Retention(RetentionPolicy.RUNTIME) +@Target({ + ElementType.TYPE, + ElementType.FIELD, + ElementType.METHOD, + ElementType.PARAMETER}) +public @interface ExportConfig { + ExportFormat format() default ExportFormat.LAF; +}
--- /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 +}
--- /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); +}