comparison 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
comparison
equal deleted inserted replaced
844:74608c12b4fe 845:797a6264b89b
80 80
81 public static final String EXCEPTION_NO_INPUT = "no.input.data"; 81 public static final String EXCEPTION_NO_INPUT = "no.input.data";
82 82
83 public static final String EXCEPTION_INVALID_INPUT = 83 public static final String EXCEPTION_INVALID_INPUT =
84 "input.is.not.valid"; 84 "input.is.not.valid";
85
86 public final static String HASH_ID_SEPARATOR = "#";
85 87
86 /** input value names which should not be rendered from State itself */ 88 /** input value names which should not be rendered from State itself */
87 public final static String[] BLACKLIST = {"sourceid", "fisname"}; 89 public final static String[] BLACKLIST = {"sourceid", "fisname"};
88 90
89 private String id = null; 91 private String id = null;
933 node.appendChild(groupNode); 935 node.appendChild(groupNode);
934 } 936 }
935 937
936 938
937 protected void setHash(String uuid) { 939 protected void setHash(String uuid) {
938 this.hash = uuid + id + inputData.hashCode(); 940 this.hash = uuid +
941 HASH_ID_SEPARATOR +
942 id +
943 HASH_ID_SEPARATOR +
944 inputData.hashCode();
939 } 945 }
940 946
941 947
942 protected String getHash() { 948 protected String getHash() {
943 return this.hash; 949 return this.hash;

http://dive4elements.wald.intevation.org