diff artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java @ 7842:8d5ca5175038

Updated signature of artifacts setup method; Removed unnecessary setup overrides.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 30 Apr 2014 15:12:32 +0200
parents a9bd4a23a852
children e4606eae8ea5
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java	Wed Apr 30 14:12:59 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java	Wed Apr 30 15:12:32 2014 +0200
@@ -54,8 +54,9 @@
         ArtifactFactory factory,
         Object          context,
         CallMeta        callmeta,
-        Document        data
-    ) {
+        Document        data,
+        List<Class>     loadFacets)
+    {
         logger.debug("SQRelationArtifact.setup()");
 
         String code = getDatacageIDValue(data);
@@ -65,7 +66,7 @@
         if (code != null && !code.isEmpty()) {
             /* Case that we were instantiated from the datacage */
             addStringData("ids", code);
-            super.setup(identifier, factory, context, callmeta, data);
+            super.setup(identifier, factory, context, callmeta, data, loadFacets);
             return;
         }
 
@@ -92,7 +93,7 @@
                 Resources.getMsg(callmeta, "static.sq.station", "Station"),
                 "String",
                 station));
-        super.setup(identifier, factory, context, callmeta, data);
+        super.setup(identifier, factory, context, callmeta, data, loadFacets);
         // When we are in this case we did not come from the datacage
         // e.g. had an ID string set. So we also did not have a template
         // set and initialize is not called. So we have to do this ourself.

http://dive4elements.wald.intevation.org