comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/Recommendation.java @ 6136:8d9859d776e5

Handle target_out in the Recommendation / Client datacage code.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 31 May 2013 15:20:55 +0200
parents ea9eef426962
children 9826b465b751
comparison
equal deleted inserted replaced
6135:804e50149d6a 6136:8d9859d776e5
115 protected String ids; 115 protected String ids;
116 /** Artifacts uuid that should serve as master artifact. */ 116 /** Artifacts uuid that should serve as master artifact. */
117 protected String masterArtifact; 117 protected String masterArtifact;
118 /** Optional facet filter. */ 118 /** Optional facet filter. */
119 protected Filter filter; 119 protected Filter filter;
120 /** The out this Artifact should be added to **/
121 protected String targetOut;
122
120 protected String displayName = null; 123 protected String displayName = null;
121 124
122 public Recommendation() { 125 public Recommendation() {
123 } 126 }
124 127
125 public Recommendation(String factory, String ids) { 128 public Recommendation(String factory, String ids) {
126 this(factory, ids, null, null); 129 this(factory, ids, null, null);
130 }
131
132 public Recommendation(String factory, String ids, String targetOut) {
133 this(factory, ids, null, null, targetOut);
127 } 134 }
128 135
129 public Recommendation( 136 public Recommendation(
130 String factory, 137 String factory,
131 String ids, 138 String ids,
132 String masterArtifact, 139 String masterArtifact,
133 Filter filter 140 Filter filter
134 ) { 141 ) {
142 this(factory, ids, masterArtifact, filter, null);
143 }
144
145 public Recommendation(
146 String factory,
147 String ids,
148 String masterArtifact,
149 Filter filter,
150 String targetOut
151 ) {
135 this.factory = factory; 152 this.factory = factory;
136 this.ids = ids; 153 this.ids = ids;
137 this.masterArtifact = masterArtifact; 154 this.masterArtifact = masterArtifact;
138 this.filter = filter; 155 this.filter = filter;
156 this.targetOut = targetOut;
157 }
158
159 public String getTargetOut() {
160 return targetOut;
161 }
162
163 public void setTargetOut(String value) {
164 targetOut = value;
139 } 165 }
140 166
141 public String getFactory() { 167 public String getFactory() {
142 return factory; 168 return factory;
143 } 169 }
187 hash += (getFilter() != null) 213 hash += (getFilter() != null)
188 ? getFilter().hashCode() 214 ? getFilter().hashCode()
189 : 0; 215 : 0;
190 hash += (getMasterArtifact() != null) 216 hash += (getMasterArtifact() != null)
191 ? getMasterArtifact().hashCode() 217 ? getMasterArtifact().hashCode()
218 : 0;
219 hash += (getTargetOut() != null)
220 ? getTargetOut().hashCode()
192 : 0; 221 : 0;
193 return hash; 222 return hash;
194 } 223 }
195 224
196 225
219 } 248 }
220 Recommendation rec = (Recommendation) other; 249 Recommendation rec = (Recommendation) other;
221 return (same(this.getFactory(), rec.getFactory())) 250 return (same(this.getFactory(), rec.getFactory()))
222 && (same(this.getIDs(), rec.getIDs())) 251 && (same(this.getIDs(), rec.getIDs()))
223 && (same(this.getFilter(), rec.getFilter())) 252 && (same(this.getFilter(), rec.getFilter()))
224 && (same(this.getMasterArtifact(), rec.getMasterArtifact())); 253 && (same(this.getMasterArtifact(), rec.getMasterArtifact()))
254 && (same(this.getTargetOut(), rec.getTargetOut()));
225 } 255 }
226 } 256 }
227 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 257 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org