comparison ChangeLog @ 80:8447467cef86

Implementation to import artifacts from incoming xml documents (applied patch from issue208 by SLT). artifacts/trunk@799 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 19 Mar 2010 09:34:40 +0000
parents f69e5b87f05f
children e9c80fdfee13
comparison
equal deleted inserted replaced
79:f69e5b87f05f 80:8447467cef86
1 2010-03-19 Ingo Weinzierl <ingo.weinzierl@intevation.de>
2
3 Issue208 (Artifact import)
4
5 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ImportResource.java:
6 New server resource to import an artifact from an incoming xml document.
7 The resource is available as /import and accepts xml documents send via
8 HTTP POST.
9
10 * artifact-database/src/main/resources/sql/org-postgresql-driver.properties,
11 artifact-database/src/main/resources/sql/org-h2-driver.properties: New sql
12 statements to update an existing artifact.
13
14 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
15 New method to import an artifact from an incoming xml document. The data
16 contained in this document is decoded using the secret.
17
18 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
19 New method to store an artifact into database or replace it if an artifact
20 with the given id is already existing.
21
22 * artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java:
23 Removed method to convert a byte array into a string (this is done by
24 Apache's Hex class in commons codec) and added a new method to convert a
25 string into a byte array using Apache commons codec as well.
26
27 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java:
28 Register ImportResource to webserver.
29
30
31 * artifact-database/src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java,
32 artifact-database/src/main/java/de/intevation/artifactdatabase/SQL.java,
33 artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java,
34 artifact-database/src/main/java/de/intevation/artifactdatabase/Id.java:
35 Converted the author javadocs.
36
1 2010-03-16 Ingo Weinzierl <ingo.weinzierl@intevation.de> 37 2010-03-16 Ingo Weinzierl <ingo.weinzierl@intevation.de>
2 38
3 Issue208 39 Issue208 (Artifact export)
4 40
5 * artifact-database/doc/example-conf/conf.xml: Added a section to configure 41 * artifact-database/doc/example-conf/conf.xml: Added a section to configure
6 a secret string used to identify artifact imports for security reason. 42 a secret string used to identify artifact imports for security reason.
7 Incoming artifact imports need to be identified with this secret, otherwise 43 Incoming artifact imports need to be identified with this secret, otherwise
8 the import should be blocked. 44 the import should be blocked.

http://dive4elements.wald.intevation.org