diff flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 1715:a70e0cbc5e02

Added support for removing themes from output. flys-artifacts/trunk@2989 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 17 Oct 2011 14:55:45 +0000
parents f643ea084213
children 755a890ecf0e
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java	Mon Oct 17 13:00:24 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java	Mon Oct 17 14:55:45 2011 +0000
@@ -800,8 +800,9 @@
                 String active = theme.getAttributeNS(uri, "active");
                 String idx    = theme.getAttributeNS(uri, "index");
                 String desc   = theme.getAttributeNS(uri, "description");
+                String visible = theme.getAttributeNS(uri, "visible");
 
-                addTheme(uuid, name, idx, pos, active, desc);
+                addTheme(uuid, name, idx, pos, active, desc, visible);
             }
         }
 
@@ -811,7 +812,8 @@
             String index,
             String position,
             String active,
-            String description)
+            String desc,
+            String visible)
         {
             if (logger.isDebugEnabled()) {
                 logger.debug("Add theme: ");
@@ -819,16 +821,18 @@
                 logger.debug(".. uuid: " + uuid);
                 logger.debug(".. position: " + position);
                 logger.debug(".. active: " + active);
+                logger.debug(".. visible: " + visible);
             }
 
             try {
                 int pos = Integer.parseInt(position);
                 int act = Integer.parseInt(active);
                 int idx = Integer.parseInt(index);
+                int vis = Integer.parseInt(visible);
 
                 themes.put(
                     new Integer(pos-1),
-                    new ManagedFacet(name, idx, description, uuid, pos, act));
+                    new ManagedFacet(name, idx, desc, uuid, pos, act, vis));
             }
             catch (NumberFormatException nfe) {
                 logger.warn(nfe, nfe);

http://dive4elements.wald.intevation.org