diff src/main/java/de/intevation/lada/data/importer/LAFImporter.java @ 310:821557a17e5e

First version of the LAF importer. The importer module currently only runs with the test application (comming in the next commit)! * LAF Parser: - Uses a small implementation of a state machine. - Extracts the keys with its value or multi value. - Uses the producer interface to generate objects. * Attribute mapper: - Maps the attributes defined in the configuration file to object attributes. - Generates objects from multi value attributes. * LAF format: - Reads the config file * LAF importer: - Implemetation of the importer interface for LAF format.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 20 Aug 2013 16:13:17 +0200
parents
children 5844d7457dde
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/intevation/lada/data/importer/LAFImporter.java	Tue Aug 20 16:13:17 2013 +0200
@@ -0,0 +1,16 @@
+package de.intevation.lada.data.importer;
+
+import javax.inject.Named;
+
+import de.intevation.lada.auth.AuthenticationResponse;
+import de.intevation.lada.rest.Response;
+
+@Named("lafimporter")
+public class LAFImporter
+implements Importer
+{
+    @Override
+    public Response importData(String content, AuthenticationResponse auth) {
+        return new Response(true, 200, null);
+    }
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)