Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 1118:c01c220312d0
Made it compile again with an updated ArtifactDatabase.
gnv-artifacts/trunk@4137 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Mar 2012 08:31:46 +0000 |
parents | dec4257ad570 |
children |
comparison
equal
deleted
inserted
replaced
1117:dec4257ad570 | 1118:c01c220312d0 |
---|---|
16 import de.intevation.artifacts.ArtifactDatabase; | 16 import de.intevation.artifacts.ArtifactDatabase; |
17 import de.intevation.artifacts.ArtifactFactory; | 17 import de.intevation.artifacts.ArtifactFactory; |
18 import de.intevation.artifacts.ArtifactNamespaceContext; | 18 import de.intevation.artifacts.ArtifactNamespaceContext; |
19 import de.intevation.artifacts.CallContext; | 19 import de.intevation.artifacts.CallContext; |
20 import de.intevation.artifacts.CallMeta; | 20 import de.intevation.artifacts.CallMeta; |
21 import de.intevation.artifacts.GlobalContext; | |
21 | 22 |
22 import de.intevation.gnv.artifacts.context.GNVArtifactContext; | 23 import de.intevation.gnv.artifacts.context.GNVArtifactContext; |
23 | 24 |
24 import de.intevation.gnv.artifacts.fis.product.Product; | 25 import de.intevation.gnv.artifacts.fis.product.Product; |
25 | 26 |
223 String fis = product.getArtifactFactory(); | 224 String fis = product.getArtifactFactory(); |
224 ArtifactDatabase db = context.getDatabase(); | 225 ArtifactDatabase db = context.getDatabase(); |
225 GNVProductArtifactFactory fac = (GNVProductArtifactFactory) | 226 GNVProductArtifactFactory fac = (GNVProductArtifactFactory) |
226 db.getInternalArtifactFactory(fis); | 227 db.getInternalArtifactFactory(fis); |
227 | 228 |
228 Artifact select = fac.createArtifact(identifier, context, null); | 229 Artifact select = fac.createArtifact( |
230 identifier, | |
231 (GlobalContext) context.globalContext(), | |
232 context.getMeta(), | |
233 null); | |
234 | |
229 context.putContextValue(ProxyArtifact.REPLACE_PROXY, select); | 235 context.putContextValue(ProxyArtifact.REPLACE_PROXY, select); |
230 | 236 |
231 result = createReport( | 237 result = createReport( |
232 result, "result", "success", "Advance success" | 238 result, "result", "success", "Advance success" |
233 ); | 239 ); |
484 /** | 490 /** |
485 * Initialse this artifact and insert some data if <code>data</code> | 491 * Initialse this artifact and insert some data if <code>data</code> |
486 * contains necessary information for this artifact. | 492 * contains necessary information for this artifact. |
487 */ | 493 */ |
488 @Override | 494 @Override |
489 public void setup(String identifier, ArtifactFactory factory, | 495 public void setup( |
490 Object context,Document data) { | 496 String identifier, |
497 ArtifactFactory factory, | |
498 Object context, | |
499 CallMeta meta, | |
500 Document data | |
501 ) { | |
491 log.debug("GNVArtifactBase.setup"); | 502 log.debug("GNVArtifactBase.setup"); |
492 super.setup(identifier, factory, context, data); | 503 super.setup(identifier, factory, context, meta, data); |
493 | 504 |
494 Object localContext = context; | 505 Object localContext = context; |
495 if (context instanceof CallContext) { | 506 if (context instanceof CallContext) { |
496 localContext = ((CallContext) context).globalContext(); | 507 localContext = ((CallContext) context).globalContext(); |
497 | 508 |