[Dive4elements-commits] [PATCH 1 of 4] issue949: staticwqkms/W facets are active

Wald Commits scm-commit at wald.intevation.org
Mon May 13 11:13:56 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1368436453 -7200
# Node ID 2e57fb04aa6f0d7370422b3812220e66aa7a0d32
# Parent  492a172321544e1f8bc69608551a07540f1013d4
issue949: staticwqkms/W facets are active.

diff -r 492a17232154 -r 2e57fb04aa6f artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java	Mon May 13 10:10:09 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java	Mon May 13 11:14:13 2013 +0200
@@ -61,8 +61,18 @@
 
     static {
         // TODO: Move to configuration.
-        FacetActivity.Registry.getInstance()
-            .register(NAME, FacetActivity.INACTIVE);
+        FacetActivity.Registry.getInstance().register(
+            NAME,
+            new FacetActivity() {
+                @Override
+                public Boolean isInitialActive(
+                    Artifact artifact,
+                    Facet    facet,
+                    String   outputName
+                ) {
+                    String fname = facet.getName();
+                    return (fname.equals(STATIC_WQKMS) || fname.equals(STATIC_WQKMS_W));
+                }});
     }
 
     /**


More information about the Dive4elements-commits mailing list