Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java @ 269:d9a99b28a847
Added support for the 'type' parameter of artifacts and collections out() call.
artifacts/trunk@2030 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 31 May 2011 14:53:36 +0000 |
parents | 7e20702a90ed |
children |
comparison
equal
deleted
inserted
replaced
268:4edaf3073109 | 269:d9a99b28a847 |
---|---|
44 | 44 |
45 return (String) request.getAttributes().get("uuid"); | 45 return (String) request.getAttributes().get("uuid"); |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 protected String getType() { | |
50 Request request = getRequest(); | |
51 | |
52 return (String) request.getAttributes().get("type"); | |
53 } | |
54 | |
55 | |
49 /** | 56 /** |
50 * Call the ArtifactDatabase.out method. | 57 * Call the ArtifactDatabase.out method. |
51 */ | 58 */ |
52 protected ArtifactDatabase.DeferredOutput doOut( | 59 protected ArtifactDatabase.DeferredOutput doOut( |
53 String identifier, | 60 String identifier, |
61 String type, | |
54 Document input, | 62 Document input, |
55 ArtifactDatabase db, | 63 ArtifactDatabase db, |
56 CallMeta meta) | 64 CallMeta meta) |
57 throws ArtifactDatabaseException | 65 throws ArtifactDatabaseException |
58 { | 66 { |
59 logger.debug("ArtifactOutResource.doOut"); | 67 logger.debug("ArtifactOutResource.doOut"); |
60 | 68 |
61 return db.out(identifier, input, meta); | 69 return db.out(identifier, type, input, meta); |
62 } | 70 } |
63 } | 71 } |
64 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 72 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |