Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CollectionOutResource.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 |
---|---|
43 | 43 |
44 return (String) request.getAttributes().get("uuid"); | 44 return (String) request.getAttributes().get("uuid"); |
45 } | 45 } |
46 | 46 |
47 | 47 |
48 protected String getType() { | |
49 Request request = getRequest(); | |
50 | |
51 return (String) request.getAttributes().get("type"); | |
52 } | |
53 | |
54 | |
48 /** | 55 /** |
49 * Call the ArtifactDatabase.outCollection method. | 56 * Call the ArtifactDatabase.outCollection method. |
50 */ | 57 */ |
51 protected ArtifactDatabase.DeferredOutput doOut( | 58 protected ArtifactDatabase.DeferredOutput doOut( |
52 String identifier, | 59 String identifier, |
60 String type, | |
53 Document input, | 61 Document input, |
54 ArtifactDatabase db, | 62 ArtifactDatabase db, |
55 CallMeta meta) | 63 CallMeta meta) |
56 throws ArtifactDatabaseException | 64 throws ArtifactDatabaseException |
57 { | 65 { |
58 logger.debug("CollectionOutResource.doOut"); | 66 logger.debug("CollectionOutResource.doOut"); |
59 | 67 |
60 return db.outCollection(identifier, input, meta); | 68 return db.outCollection(identifier, type, input, meta); |
61 } | 69 } |
62 } | 70 } |
63 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 71 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |