Mercurial > lada > lada-server
changeset 309:ae4bf396bd3b
New interfaces for importer and object producer.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 20 Aug 2013 16:06:33 +0200 |
parents | 8983a0368bb1 |
children | 821557a17e5e |
files | src/main/java/de/intevation/lada/data/importer/Importer.java src/main/java/de/intevation/lada/data/importer/Producer.java |
diffstat | 2 files changed, 35 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/data/importer/Importer.java Tue Aug 20 16:06:33 2013 +0200 @@ -0,0 +1,10 @@ +package de.intevation.lada.data.importer; + +import de.intevation.lada.auth.AuthenticationResponse; +import de.intevation.lada.rest.Response; + + +public interface Importer +{ + public Response importData(String content, AuthenticationResponse auth); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/intevation/lada/data/importer/Producer.java Tue Aug 20 16:06:33 2013 +0200 @@ -0,0 +1,25 @@ +package de.intevation.lada.data.importer; + +import java.util.List; + +import de.intevation.lada.model.LKommentarM; +import de.intevation.lada.model.LKommentarP; +import de.intevation.lada.model.LMessung; +import de.intevation.lada.model.LMesswert; +import de.intevation.lada.model.LOrt; +import de.intevation.lada.model.LProbe; + + +public interface Producer +{ + public void addData(String key, Object values); + public LProbe getProbe(); + public List<LMessung> getMessungen(); + public List<LOrt> getOrte(); + public List<LKommentarP> getProbenKommentare(); + public List<LKommentarM> getMessungsKommentare(); + public List<LMesswert> getMesswerte(); + public void reset(); + public void newMessung(); + public void newOrt(); +}