diff 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
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Tue Mar 15 16:13:39 2011 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Mon Mar 12 08:31:46 2012 +0000
@@ -18,6 +18,7 @@
 import de.intevation.artifacts.ArtifactNamespaceContext;
 import de.intevation.artifacts.CallContext;
 import de.intevation.artifacts.CallMeta;
+import de.intevation.artifacts.GlobalContext;
 
 import de.intevation.gnv.artifacts.context.GNVArtifactContext;
 
@@ -225,7 +226,12 @@
                 GNVProductArtifactFactory fac = (GNVProductArtifactFactory)
                     db.getInternalArtifactFactory(fis);
 
-                Artifact select = fac.createArtifact(identifier, context, null);
+                Artifact select = fac.createArtifact(
+                    identifier,
+                    (GlobalContext) context.globalContext(),
+                    context.getMeta(),
+                    null);
+
                 context.putContextValue(ProxyArtifact.REPLACE_PROXY, select);
 
                 result = createReport(
@@ -486,10 +492,15 @@
      * contains necessary information for this artifact.
      */
     @Override
-    public void setup(String identifier, ArtifactFactory factory,
-                      Object context,Document data) {
+    public void setup(
+        String identifier,
+        ArtifactFactory factory,
+        Object context,
+        CallMeta meta,
+        Document data
+    ) {
         log.debug("GNVArtifactBase.setup");
-        super.setup(identifier, factory, context, data);
+        super.setup(identifier, factory, context, meta, data);
 
         Object localContext = context;
         if (context instanceof CallContext) {

http://dive4elements.wald.intevation.org