changeset 8274:b0d7b0d79d6e

Set facet activity for bed quality.
author "Tom Gottfried <tom@intevation.de>"
date Tue, 16 Sep 2014 12:12:06 +0200
parents 5c3b36b519d0
children 7e54b27f4780
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityState.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityState.java	Tue Sep 16 11:33:08 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityState.java	Tue Sep 16 12:12:06 2014 +0200
@@ -84,9 +84,14 @@
                         name.equals(BEDLOAD_DIAMETER_DATA)){
                         return Boolean.FALSE;
                     }
-                    else {
-                        return null;
+                    if (name.equals(BED_QUALITY_POROSITY_TOPLAYER) ||
+                        name.equals(BED_QUALITY_POROSITY_SUBLAYER) ||
+                        name.equals(BED_QUALITY_BED_DIAMETER_TOPLAYER) ||
+                        name.equals(BED_QUALITY_BED_DIAMETER_SUBLAYER) ||
+                        name.equals(BED_QUALITY_BEDLOAD_DIAMETER)) {
+                        return Boolean.TRUE;
                     }
+                    return null;
                 }
             });
     }

http://dive4elements.wald.intevation.org