Author: ssanbern
Date: 2007-09-24 16:43:33 +0200 (Mon, 24 Sep 2007)
New Revision: 5793

Modified:
   
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
Log:
new view.xml attribute: always-visible

Modified: 
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
===================================================================
--- 
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
      2007-09-24 13:21:39 UTC (rev 5792)
+++ 
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
      2007-09-24 14:43:33 UTC (rev 5793)
@@ -409,13 +409,15 @@
                 final int baseScore,
                 final int threshold,
                 final float weight,
-                final String command){
+                final String command,
+                final boolean alwaysvisible){
 
             this.rule = rule;
             this.baseScore = baseScore;
             this.threshold = threshold;
             this .weight = weight;
             this.command = command;
+            this.alwaysvisible=alwaysvisible;
         }
 
 
@@ -424,6 +426,7 @@
         private final int threshold;
         private final String command;
         private final float weight;
+        private final boolean alwaysvisible; 
 
         /**
          * Getter for property rule.
@@ -472,6 +475,16 @@
         public String toString() {
             return rule + '[' + command + ']';
         }
+        
+        /**
+         * Getter for property alwaysvisible.
+         *  alwaysvisible = means that there is no "firstPage" limitation if 
the
+         *  enrichments should be visible or not. 
+         * @return Value of property alwaysvisible.
+         */
+        public boolean isAlwaysvisible(){
+               return this.alwaysvisible;
+        }
 
     }
     

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to