Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 176:a0eff2227588
Added code to add artifacts to collections.
artifacts/trunk@1402 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 04 Mar 2011 17:51:15 +0000 |
parents | 2f575d594fdb |
children | 9b8923043a38 |
comparison
equal
deleted
inserted
replaced
175:16e6e661e6bf | 176:a0eff2227588 |
---|---|
1247 { | 1247 { |
1248 logger.debug( | 1248 logger.debug( |
1249 "Add artifact '" + artifactId + "' collection '" +collectionId+"'"); | 1249 "Add artifact '" + artifactId + "' collection '" +collectionId+"'"); |
1250 | 1250 |
1251 boolean success = backend.addCollectionArtifact( | 1251 boolean success = backend.addCollectionArtifact( |
1252 collectionId, artifactId); | 1252 collectionId, |
1253 artifactId, | |
1254 null); // XXX: Needed to be extracted from input | |
1253 | 1255 |
1254 Document result = XMLUtils.newDocument(); | 1256 Document result = XMLUtils.newDocument(); |
1255 | 1257 |
1256 XMLUtils.ElementCreator ec = new XMLUtils.ElementCreator( | 1258 XMLUtils.ElementCreator ec = new XMLUtils.ElementCreator( |
1257 result, | 1259 result, |