Revision 3317
Added by barteau over 17 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientView.java | ||
---|---|---|
1 |
/* |
|
2 |
* ClientView.java |
|
3 |
* |
|
4 |
* Created on June 25, 2007, 9:57 AM |
|
5 |
* |
|
6 |
*/ |
|
7 |
|
|
8 |
package edu.ucsb.nceas.metacat.clientview; |
|
9 |
|
|
10 |
import java.io.Serializable; |
|
11 |
|
|
12 |
/** |
|
13 |
* Description information for the ClientView bean. |
|
14 |
* @author Christopher Barteau |
|
15 |
*/ |
|
16 |
public class ClientView implements Serializable { |
|
17 |
|
|
18 |
public static final String CLIENT_VIEW_BEAN = "clientViewBean"; |
|
19 |
public static final int LOGIN_MESSAGE = 0; |
|
20 |
public static final int UPLOAD_MESSAGE = 1; |
|
21 |
public static final int DELETE_MESSAGE = 2; |
|
22 |
public static final int SELECT_MESSAGE = 3; |
|
23 |
public static final int ERROR_MESSAGE = 4; |
|
24 |
public static final int REPLACE_MESSAGE = 5; |
|
25 |
|
|
26 |
/** |
|
27 |
* Creates a new instance of ClientView |
|
28 |
*/ |
|
29 |
public ClientView() { |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
33 |
* Holds value of property action. |
|
34 |
*/ |
|
35 |
private String action; |
|
36 |
|
|
37 |
/** |
|
38 |
* Getter for property action. |
|
39 |
* @return Value of property action. |
|
40 |
*/ |
|
41 |
public String getAction() { |
|
42 |
return this.action; |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* Setter for property action. |
|
47 |
* @param action New value of property action. |
|
48 |
*/ |
|
49 |
public void setAction(String action) { |
|
50 |
this.action = action; |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* Holds value of property qFormat. |
|
55 |
*/ |
|
56 |
private String qformat; |
|
57 |
|
|
58 |
/** |
|
59 |
* Getter for property qformat. |
|
60 |
* @return Value of property qformat. |
|
61 |
*/ |
|
62 |
public String getQformat() { |
|
63 |
return this.qformat; |
|
64 |
} |
|
65 |
|
|
66 |
/** |
|
67 |
* Setter for property qformat. |
|
68 |
* @param qformat New value of property qformat. |
|
69 |
*/ |
|
70 |
public void setQformat(String qformat) { |
|
71 |
this.qformat = qformat; |
|
72 |
} |
|
73 |
|
|
74 |
/** |
|
75 |
* Holds value of property username. |
|
76 |
*/ |
|
77 |
private String username; |
|
78 |
|
|
79 |
/** |
|
80 |
* Getter for property userName. |
|
81 |
* @return Value of property userName. |
|
82 |
*/ |
|
83 |
public String getUsername() { |
|
84 |
return this.username; |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* Setter for property username. |
|
89 |
* @param username New value of property username. |
|
90 |
*/ |
|
91 |
public void setUsername(String username) { |
|
92 |
this.username = username; |
|
93 |
} |
|
94 |
|
|
95 |
/** |
|
96 |
* Holds value of property organization. |
|
97 |
*/ |
|
98 |
private String organization; |
|
99 |
|
|
100 |
/** |
|
101 |
* Getter for property organization. |
|
102 |
* @return Value of property organization. |
|
103 |
*/ |
|
104 |
public String getOrganization() { |
|
105 |
return this.organization; |
|
106 |
} |
|
107 |
|
|
108 |
/** |
|
109 |
* Setter for property organization. |
|
110 |
* @param organization New value of property organization. |
|
111 |
*/ |
|
112 |
public void setOrganization(String organization) { |
|
113 |
this.organization = organization; |
|
114 |
} |
|
115 |
|
|
116 |
/** |
|
117 |
* Holds value of property password. |
|
118 |
*/ |
|
119 |
private String password; |
|
120 |
|
|
121 |
/** |
|
122 |
* Getter for property password. |
|
123 |
* @return Value of property password. |
|
124 |
*/ |
|
125 |
public String getPassword() { |
|
126 |
return this.password; |
|
127 |
} |
|
128 |
|
|
129 |
/** |
|
130 |
* Setter for property password. |
|
131 |
* @param password New value of property password. |
|
132 |
*/ |
|
133 |
public void setPassword(String password) { |
|
134 |
this.password = password; |
|
135 |
} |
|
136 |
|
|
137 |
/** |
|
138 |
* Holds value of property sessionid. |
|
139 |
*/ |
|
140 |
private String sessionid; |
|
141 |
|
|
142 |
/** |
|
143 |
* Getter for property sessionId. |
|
144 |
* @return Value of property sessionId. |
|
145 |
*/ |
|
146 |
public String getSessionid() { |
|
147 |
return this.sessionid; |
|
148 |
} |
|
149 |
|
|
150 |
/** |
|
151 |
* Setter for property sessionid. |
|
152 |
* @param sessionid New value of property sessionid. |
|
153 |
*/ |
|
154 |
public void setSessionid(String sessionid) { |
|
155 |
this.sessionid = sessionid; |
|
156 |
} |
|
157 |
|
|
158 |
/** |
|
159 |
* Holds value of property anyfield. |
|
160 |
*/ |
|
161 |
private String anyfield; |
|
162 |
|
|
163 |
/** |
|
164 |
* Getter for property anyField. |
|
165 |
* @return Value of property anyField. |
|
166 |
*/ |
|
167 |
public String getAnyfield() { |
|
168 |
return this.anyfield; |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* Setter for property anyfield. |
|
173 |
* @param anyfield New value of property anyfield. |
|
174 |
*/ |
|
175 |
public void setAnyfield(String anyfield) { |
|
176 |
this.anyfield = anyfield; |
|
177 |
} |
|
178 |
|
|
179 |
/** |
|
180 |
* Holds value of property pathExpr. |
|
181 |
*/ |
|
182 |
private String pathExpr; |
|
183 |
|
|
184 |
/** |
|
185 |
* Getter for property pathExpr. |
|
186 |
* @return Value of property pathExpr. |
|
187 |
*/ |
|
188 |
public String getPathExpr() { |
|
189 |
return this.pathExpr; |
|
190 |
} |
|
191 |
|
|
192 |
/** |
|
193 |
* Setter for property pathExpr. |
|
194 |
* @param pathExpr New value of property pathExpr. |
|
195 |
*/ |
|
196 |
public void setPathExpr(String pathExpr) { |
|
197 |
this.pathExpr = pathExpr; |
|
198 |
} |
|
199 |
|
|
200 |
/** |
|
201 |
* Holds value of property pathValue. |
|
202 |
*/ |
|
203 |
private String pathValue; |
|
204 |
|
|
205 |
/** |
|
206 |
* Getter for property pathValue. |
|
207 |
* @return Value of property pathValue. |
|
208 |
*/ |
|
209 |
public String getPathValue() { |
|
210 |
return this.pathValue; |
|
211 |
} |
|
212 |
|
|
213 |
/** |
|
214 |
* Setter for property pathValue. |
|
215 |
* @param pathValue New value of property pathValue. |
|
216 |
*/ |
|
217 |
public void setPathValue(String pathValue) { |
|
218 |
this.pathValue = pathValue; |
|
219 |
} |
|
220 |
|
|
221 |
/** |
|
222 |
* Holds value of property returnfield. |
|
223 |
*/ |
|
224 |
private String returnfield; |
|
225 |
|
|
226 |
/** |
|
227 |
* Getter for property returnField. |
|
228 |
* @return Value of property returnField. |
|
229 |
*/ |
|
230 |
public String getReturnfield() { |
|
231 |
return this.returnfield; |
|
232 |
} |
|
233 |
|
|
234 |
/** |
|
235 |
* Setter for property returnfield. |
|
236 |
* @param returnfield New value of property returnField. |
|
237 |
*/ |
|
238 |
public void setReturnfield(String returnfield) { |
|
239 |
this.returnfield = returnfield; |
|
240 |
} |
|
241 |
|
|
242 |
/** |
|
243 |
* Holds value of property publicAccess. |
|
244 |
*/ |
|
245 |
private boolean publicAccess; |
|
246 |
|
|
247 |
/** |
|
248 |
* Getter for property publicAccess. |
|
249 |
* @return Value of property publicAccess. |
|
250 |
*/ |
|
251 |
public boolean isPublicAccess() { |
|
252 |
return this.publicAccess; |
|
253 |
} |
|
254 |
|
|
255 |
/** |
|
256 |
* Setter for property publicAccess. |
|
257 |
* @param publicAccess New value of property publicAccess. |
|
258 |
*/ |
|
259 |
public void setPublicAccess(boolean publicAccess) { |
|
260 |
this.publicAccess = publicAccess; |
|
261 |
} |
|
262 |
|
|
263 |
/** |
|
264 |
* Holds value of property metaFileName. |
|
265 |
*/ |
|
266 |
private String metaFileName; |
|
267 |
|
|
268 |
/** |
|
269 |
* Getter for property metaFileName. |
|
270 |
* @return Value of property metaFileName. |
|
271 |
*/ |
|
272 |
public String getMetaFileName() { |
|
273 |
return this.metaFileName; |
|
274 |
} |
|
275 |
|
|
276 |
/** |
|
277 |
* Setter for property metaFileName. |
|
278 |
* @param metaFileName New value of property metaFileName. |
|
279 |
*/ |
|
280 |
public void setMetaFileName(String metaFileName) { |
|
281 |
this.metaFileName = metaFileName; |
|
282 |
} |
|
283 |
|
|
284 |
/** |
|
285 |
* Holds value of property dataFileName. |
|
286 |
*/ |
|
287 |
private String[] dataFileName; |
|
288 |
|
|
289 |
/** |
|
290 |
* Indexed getter for property dataFileNames. |
|
291 |
* @param index Index of the property. |
|
292 |
* @return Value of the property at <CODE>index</CODE>. |
|
293 |
*/ |
|
294 |
public String getDataFileName(int index) { |
|
295 |
return this.dataFileName[index]; |
|
296 |
} |
|
297 |
|
|
298 |
/** |
|
299 |
* Getter for property dataFileNames. |
|
300 |
* @return Value of property dataFileNames. |
|
301 |
*/ |
|
302 |
public String[] getDataFileName() { |
|
303 |
return this.dataFileName; |
|
304 |
} |
|
305 |
|
|
306 |
/** |
|
307 |
* Indexed setter for property dataFileName. |
|
308 |
* @param index Index of the property. |
|
309 |
* @param dataFileName New value of the property at <CODE>index</CODE>. |
|
310 |
*/ |
|
311 |
public void setDataFileName(int index, String dataFileName) { |
|
312 |
this.dataFileName[index] = dataFileName; |
|
313 |
} |
|
314 |
|
|
315 |
/** |
|
316 |
* Setter for property dataFileName. |
|
317 |
* @param dataFileName New value of property dataFileName. |
|
318 |
*/ |
|
319 |
public void setDataFileName(String[] dataFileName) { |
|
320 |
this.dataFileName = dataFileName; |
|
321 |
} |
|
322 |
|
|
323 |
/** |
|
324 |
* Holds value of property docId. |
|
325 |
*/ |
|
326 |
private String docId; |
|
327 |
|
|
328 |
/** |
|
329 |
* Getter for property docId. |
|
330 |
* @return Value of property docId. |
|
331 |
*/ |
|
332 |
public String getDocId() { |
|
333 |
return this.docId; |
|
334 |
} |
|
335 |
|
|
336 |
/** |
|
337 |
* Setter for property docId. |
|
338 |
* @param docId New value of property docId. |
|
339 |
*/ |
|
340 |
public void setDocId(String docId) { |
|
341 |
this.docId = docId; |
|
342 |
} |
|
343 |
|
|
344 |
/** |
|
345 |
* Holds value of property message. |
|
346 |
*/ |
|
347 |
private String[] message = new String[10]; |
|
348 |
|
|
349 |
/** |
|
350 |
* Indexed getter for property message. |
|
351 |
* @param index Index of the property. |
|
352 |
* @return Value of the property at <CODE>index</CODE>. |
|
353 |
*/ |
|
354 |
public String getMessage(int index) { |
|
355 |
return this.message[index]; |
|
356 |
} |
|
357 |
|
|
358 |
/** |
|
359 |
* Getter for property message. |
|
360 |
* @return Value of property message. |
|
361 |
*/ |
|
362 |
public String[] getMessage() { |
|
363 |
return this.message; |
|
364 |
} |
|
365 |
|
|
366 |
/** |
|
367 |
* Indexed setter for property message. |
|
368 |
* @param index Index of the property. |
|
369 |
* @param message New value of the property at <CODE>index</CODE>. |
|
370 |
*/ |
|
371 |
public void setMessage(int index, String message) { |
|
372 |
this.message[index] = message; |
|
373 |
} |
|
374 |
|
|
375 |
/** |
|
376 |
* Setter for property message. |
|
377 |
* @param message New value of property message. |
|
378 |
*/ |
|
379 |
public void setMessage(String[] message) { |
|
380 |
this.message = message; |
|
381 |
} |
|
382 |
|
|
383 |
} |
|
0 | 384 |
Also available in: Unified diff
Initial checkin. The "Client View Bean", to provide the "model" in the MVC architecture. This JavaBean is used in client view JSP documents (the "Views")
and the ClientViewHelper class (the "Controller").