Mercurial > dive4elements > framework
comparison ChangeLog @ 79:f69e5b87f05f
Implementation to export artifacts as xml (applied patch from issue208 by SLT).
artifacts/trunk@792 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 16 Mar 2010 16:03:06 +0000 |
parents | 55eefe63a777 |
children | 8447467cef86 |
comparison
equal
deleted
inserted
replaced
78:55eefe63a777 | 79:f69e5b87f05f |
---|---|
1 2010-03-16 Ingo Weinzierl <ingo.weinzierl@intevation.de> | |
2 | |
3 Issue208 | |
4 | |
5 * artifact-database/doc/example-conf/conf.xml: Added a section to configure | |
6 a secret string used to identify artifact imports for security reason. | |
7 Incoming artifact imports need to be identified with this secret, otherwise | |
8 the import should be blocked. | |
9 Xpath for this secret: '/artifact-database/export-secret/text()' | |
10 | |
11 * artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java: | |
12 New attribute 'exportSecret' and some code to read the secret from | |
13 configuration while application startup. | |
14 | |
15 * artifact-database/pom.xml: Added Apache Commons Codec library used to | |
16 encode/decode artifact data. | |
17 | |
18 * artifact-database/src/main/java/de/intevation/artifactdatabase/StringUtils.java: | |
19 New utilities class for frequently used string operations. | |
20 | |
21 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: | |
22 Added some methods for exporting artifacts as xml documents. The data part | |
23 is base64 encoded. A secret key is used while encoding this data to verify | |
24 artifact imports, later. | |
25 | |
26 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: | |
27 Added an artifact loader interface used to deserialize artifacts. | |
28 getArtifact() implements such an ArtifactLoader to return | |
29 PersistentArtifacts. | |
30 | |
31 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ExportResource.java: | |
32 New. ServerResource to export artifacts (innerGet). This resource is | |
33 available under "/export/{uuid}" via HTTP-GET request and returns an | |
34 artifact specified by uuid as xml document. | |
35 | |
36 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java: | |
37 Register ExportResource to webserver. | |
38 | |
39 * artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java: | |
40 Added method to export artifacts. | |
41 | |
42 * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java: | |
43 Reset bootstrap after application startup. | |
44 | |
1 2010-03-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> | 45 2010-03-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
2 | 46 |
3 * artifacts/src/main/java/de/intevation/artifacts/ArtifactNamespaceContext.java, | 47 * artifacts/src/main/java/de/intevation/artifacts/ArtifactNamespaceContext.java, |
4 artifacts/src/main/java/de/intevation/artifacts/CallContext.java, | 48 artifacts/src/main/java/de/intevation/artifacts/CallContext.java, |
5 artifacts/src/main/java/de/intevation/artifacts/Service.java, | 49 artifacts/src/main/java/de/intevation/artifacts/Service.java, |