comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/services/requestobjects/DefaultFIS.java @ 606:9efc1c256dbb

Added the support of the usecase that one FIS can be identified by different MapServices. In that case the parameters will be merged into the existing FIS. gnv-artifacts/trunk@672 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 09 Feb 2010 15:23:07 +0000
parents cf38b983d1f3
children 9a828e5a2390
comparison
equal deleted inserted replaced
605:e8ebdbc7f1e3 606:9efc1c256dbb
2 * 2 *
3 */ 3 */
4 package de.intevation.gnv.artifacts.services.requestobjects; 4 package de.intevation.gnv.artifacts.services.requestobjects;
5 5
6 import java.util.Collection; 6 import java.util.Collection;
7 import java.util.Iterator;
7 8
8 /** 9 /**
9 * @author Tim Englich <tim.englich@intevation.de> 10 * @author Tim Englich <tim.englich@intevation.de>
10 * 11 *
11 */ 12 */
50 if (arg0 instanceof FIS){ 51 if (arg0 instanceof FIS){
51 returnValue = this.id.equals(((FIS)arg0).getID()); 52 returnValue = this.id.equals(((FIS)arg0).getID());
52 } 53 }
53 return returnValue; 54 return returnValue;
54 } 55 }
56 /**
57 * @see de.intevation.gnv.artifacts.services.requestobjects.FIS#addParameter(java.util.Collection)
58 */
59 public void addParameter(Collection<Parameter> parameter) {
60 if (this.parameter != null){
61 Iterator<Parameter> it = parameter.iterator();
62 while (it.hasNext()){
63 Parameter tmpParameter = it.next();
64 if (!this.parameter.contains(tmpParameter)){
65 this.parameter.add(tmpParameter);
66 }
67 }
68 }else{
69 this.parameter = parameter;
70 }
71 }
72
73
55 74
56 } 75 }

http://dive4elements.wald.intevation.org