diff gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 845:797a6264b89b

Integrated the CacheCleaner for the ThematicDataCache gnv-artifacts/trunk@961 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 20 Apr 2010 18:38:22 +0000
parents ac5988f27714
children dfd02f8d3602
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue Apr 20 12:53:00 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue Apr 20 18:38:22 2010 +0000
@@ -82,6 +82,8 @@
 
     public static final String EXCEPTION_INVALID_INPUT =
         "input.is.not.valid";
+    
+    public final static String HASH_ID_SEPARATOR = "#";
 
     /** input value names which should not be rendered from State itself */
     public final static String[] BLACKLIST = {"sourceid", "fisname"};
@@ -935,7 +937,11 @@
 
 
     protected void setHash(String uuid) {
-        this.hash = uuid + id + inputData.hashCode();
+        this.hash = uuid +
+                    HASH_ID_SEPARATOR +
+                    id +
+                    HASH_ID_SEPARATOR +
+                    inputData.hashCode();
     }
 
 

http://dive4elements.wald.intevation.org