Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 55:9a29899b31e5
describe() in REST interface is also handled as POST to pass
optional parameters.
artifacts/trunk@283 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 04 Nov 2009 14:38:37 +0000 |
parents | 41c225c8bd41 |
children | 39fec7d714dc |
comparison
equal
deleted
inserted
replaced
54:c2fc85e55f9f | 55:9a29899b31e5 |
---|---|
276 | 276 |
277 CallContextImpl cc = new CallContextImpl( | 277 CallContextImpl cc = new CallContextImpl( |
278 persistentArtifact, CallContext.NOTHING, callMeta); | 278 persistentArtifact, CallContext.NOTHING, callMeta); |
279 | 279 |
280 try { | 280 try { |
281 return artifact.describe(cc); | 281 return artifact.describe(null, cc); |
282 } | 282 } |
283 finally { | 283 finally { |
284 cc.postCall(); | 284 cc.postCall(); |
285 } | 285 } |
286 } | 286 } |
287 | 287 |
288 public Document describe(String identifier, CallMeta callMeta) | 288 public Document describe(String identifier, Document data, CallMeta callMeta) |
289 throws ArtifactDatabaseException | 289 throws ArtifactDatabaseException |
290 { | 290 { |
291 // TODO: Handle background tasks | 291 // TODO: Handle background tasks |
292 PersistentArtifact artifact = backend.getArtifact(identifier); | 292 PersistentArtifact artifact = backend.getArtifact(identifier); |
293 | 293 |
297 | 297 |
298 CallContextImpl cc = new CallContextImpl( | 298 CallContextImpl cc = new CallContextImpl( |
299 artifact, CallContext.TOUCH, callMeta); | 299 artifact, CallContext.TOUCH, callMeta); |
300 | 300 |
301 try { | 301 try { |
302 return artifact.getArtifact().describe(cc); | 302 return artifact.getArtifact().describe(data, cc); |
303 } | 303 } |
304 finally { | 304 finally { |
305 cc.postCall(); | 305 cc.postCall(); |
306 } | 306 } |
307 } | 307 } |