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 String ECOLOGICAL_METADATA_LANGUAGE = "EML";
|
20
|
public static final String FEDERAL_GEOGRAPHIC_DATA_COMMITTEE = "FGDC";
|
21
|
|
22
|
public static final int LOGIN_MESSAGE = 0;
|
23
|
public static final int UPLOAD_MESSAGE = 1;
|
24
|
public static final int DELETE_MESSAGE = 2;
|
25
|
public static final int SELECT_MESSAGE = 3;
|
26
|
public static final int ERROR_MESSAGE = 4;
|
27
|
public static final int REPLACE_MESSAGE = 5;
|
28
|
public static final int UPDATE_MESSAGE = 6;
|
29
|
public static final int FORMAT_TYPE = 0;
|
30
|
public static final int FILE_NAME = 1;
|
31
|
|
32
|
|
33
|
/**
|
34
|
* Creates a new instance of ClientView
|
35
|
*/
|
36
|
public ClientView() {
|
37
|
}
|
38
|
|
39
|
/**
|
40
|
* Holds value of property action.
|
41
|
*/
|
42
|
private String action;
|
43
|
|
44
|
/**
|
45
|
* Getter for property action.
|
46
|
* @return Value of property action.
|
47
|
*/
|
48
|
public String getAction() {
|
49
|
return this.action;
|
50
|
}
|
51
|
|
52
|
/**
|
53
|
* Setter for property action.
|
54
|
* @param action New value of property action.
|
55
|
*/
|
56
|
public void setAction(String action) {
|
57
|
this.action = action;
|
58
|
}
|
59
|
|
60
|
/**
|
61
|
* Holds value of property qFormat.
|
62
|
*/
|
63
|
private String qformat;
|
64
|
|
65
|
/**
|
66
|
* Getter for property qformat.
|
67
|
* @return Value of property qformat.
|
68
|
*/
|
69
|
public String getQformat() {
|
70
|
return this.qformat;
|
71
|
}
|
72
|
|
73
|
/**
|
74
|
* Setter for property qformat.
|
75
|
* @param qformat New value of property qformat.
|
76
|
*/
|
77
|
public void setQformat(String qformat) {
|
78
|
this.qformat = qformat;
|
79
|
}
|
80
|
|
81
|
/**
|
82
|
* Holds value of property username.
|
83
|
*/
|
84
|
private String username;
|
85
|
|
86
|
/**
|
87
|
* Getter for property userName.
|
88
|
* @return Value of property userName.
|
89
|
*/
|
90
|
public String getUsername() {
|
91
|
return this.username;
|
92
|
}
|
93
|
|
94
|
/**
|
95
|
* Setter for property username.
|
96
|
* @param username New value of property username.
|
97
|
*/
|
98
|
public void setUsername(String username) {
|
99
|
this.username = username;
|
100
|
}
|
101
|
|
102
|
/**
|
103
|
* Holds value of property organization.
|
104
|
*/
|
105
|
private String organization;
|
106
|
|
107
|
/**
|
108
|
* Getter for property organization.
|
109
|
* @return Value of property organization.
|
110
|
*/
|
111
|
public String getOrganization() {
|
112
|
return this.organization;
|
113
|
}
|
114
|
|
115
|
/**
|
116
|
* Setter for property organization.
|
117
|
* @param organization New value of property organization.
|
118
|
*/
|
119
|
public void setOrganization(String organization) {
|
120
|
this.organization = organization;
|
121
|
}
|
122
|
|
123
|
/**
|
124
|
* Holds value of property password.
|
125
|
*/
|
126
|
private String password;
|
127
|
|
128
|
/**
|
129
|
* Getter for property password.
|
130
|
* @return Value of property password.
|
131
|
*/
|
132
|
public String getPassword() {
|
133
|
return this.password;
|
134
|
}
|
135
|
|
136
|
/**
|
137
|
* Setter for property password.
|
138
|
* @param password New value of property password.
|
139
|
*/
|
140
|
public void setPassword(String password) {
|
141
|
this.password = password;
|
142
|
}
|
143
|
|
144
|
/**
|
145
|
* Holds value of property sessionid.
|
146
|
*/
|
147
|
private String sessionid;
|
148
|
|
149
|
/**
|
150
|
* Getter for property sessionId.
|
151
|
* @return Value of property sessionId.
|
152
|
*/
|
153
|
public String getSessionid() {
|
154
|
return this.sessionid;
|
155
|
}
|
156
|
|
157
|
/**
|
158
|
* Setter for property sessionid.
|
159
|
* @param sessionid New value of property sessionid.
|
160
|
*/
|
161
|
public void setSessionid(String sessionid) {
|
162
|
this.sessionid = sessionid;
|
163
|
}
|
164
|
|
165
|
/**
|
166
|
* Holds value of property anyfield.
|
167
|
*/
|
168
|
private String anyfield;
|
169
|
|
170
|
/**
|
171
|
* Getter for property anyField.
|
172
|
* @return Value of property anyField.
|
173
|
*/
|
174
|
public String getAnyfield() {
|
175
|
return this.anyfield;
|
176
|
}
|
177
|
|
178
|
/**
|
179
|
* Setter for property anyfield.
|
180
|
* @param anyfield New value of property anyfield.
|
181
|
*/
|
182
|
public void setAnyfield(String anyfield) {
|
183
|
this.anyfield = anyfield;
|
184
|
}
|
185
|
|
186
|
/**
|
187
|
* Holds value of property pathExpr.
|
188
|
*/
|
189
|
private String pathExpr;
|
190
|
|
191
|
/**
|
192
|
* Getter for property pathExpr.
|
193
|
* @return Value of property pathExpr.
|
194
|
*/
|
195
|
public String getPathExpr() {
|
196
|
return this.pathExpr;
|
197
|
}
|
198
|
|
199
|
/**
|
200
|
* Setter for property pathExpr.
|
201
|
* @param pathExpr New value of property pathExpr.
|
202
|
*/
|
203
|
public void setPathExpr(String pathExpr) {
|
204
|
this.pathExpr = pathExpr;
|
205
|
}
|
206
|
|
207
|
/**
|
208
|
* Holds value of property pathValue.
|
209
|
*/
|
210
|
private String pathValue;
|
211
|
|
212
|
/**
|
213
|
* Getter for property pathValue.
|
214
|
* @return Value of property pathValue.
|
215
|
*/
|
216
|
public String getPathValue() {
|
217
|
return this.pathValue;
|
218
|
}
|
219
|
|
220
|
/**
|
221
|
* Setter for property pathValue.
|
222
|
* @param pathValue New value of property pathValue.
|
223
|
*/
|
224
|
public void setPathValue(String pathValue) {
|
225
|
this.pathValue = pathValue;
|
226
|
}
|
227
|
|
228
|
/**
|
229
|
* Holds value of property returnfield.
|
230
|
*/
|
231
|
private String returnfield;
|
232
|
|
233
|
/**
|
234
|
* Getter for property returnField.
|
235
|
* @return Value of property returnField.
|
236
|
*/
|
237
|
public String getReturnfield() {
|
238
|
return this.returnfield;
|
239
|
}
|
240
|
|
241
|
/**
|
242
|
* Setter for property returnfield.
|
243
|
* @param returnfield New value of property returnField.
|
244
|
*/
|
245
|
public void setReturnfield(String returnfield) {
|
246
|
this.returnfield = returnfield;
|
247
|
}
|
248
|
|
249
|
/**
|
250
|
* Holds value of property publicAccess.
|
251
|
*/
|
252
|
private boolean publicAccess;
|
253
|
|
254
|
/**
|
255
|
* Getter for property publicAccess.
|
256
|
* @return Value of property publicAccess.
|
257
|
*/
|
258
|
public boolean isPublicAccess() {
|
259
|
return this.publicAccess;
|
260
|
}
|
261
|
|
262
|
/**
|
263
|
* Setter for property publicAccess.
|
264
|
* @param publicAccess New value of property publicAccess.
|
265
|
*/
|
266
|
public void setPublicAccess(boolean publicAccess) {
|
267
|
this.publicAccess = publicAccess;
|
268
|
}
|
269
|
|
270
|
/**
|
271
|
* Holds value of property metaFileName.
|
272
|
*/
|
273
|
private String metaFileName;
|
274
|
|
275
|
/**
|
276
|
* Getter for property metaFileName.
|
277
|
* @return Value of property metaFileName.
|
278
|
*/
|
279
|
public String getMetaFileName() {
|
280
|
return this.metaFileName;
|
281
|
}
|
282
|
|
283
|
/**
|
284
|
* Setter for property metaFileName.
|
285
|
* @param metaFileName New value of property metaFileName.
|
286
|
*/
|
287
|
public void setMetaFileName(String metaFileName) {
|
288
|
this.metaFileName = metaFileName;
|
289
|
}
|
290
|
|
291
|
/**
|
292
|
* Holds value of property dataFileName.
|
293
|
*/
|
294
|
private String[] dataFileName;
|
295
|
|
296
|
/**
|
297
|
* Indexed getter for property dataFileNames.
|
298
|
* @param index Index of the property.
|
299
|
* @return Value of the property at <CODE>index</CODE>.
|
300
|
*/
|
301
|
public String getDataFileName(int index) {
|
302
|
return this.dataFileName[index];
|
303
|
}
|
304
|
|
305
|
/**
|
306
|
* Getter for property dataFileNames.
|
307
|
* @return Value of property dataFileNames.
|
308
|
*/
|
309
|
public String[] getDataFileName() {
|
310
|
return this.dataFileName;
|
311
|
}
|
312
|
|
313
|
/**
|
314
|
* Indexed setter for property dataFileName.
|
315
|
* @param index Index of the property.
|
316
|
* @param dataFileName New value of the property at <CODE>index</CODE>.
|
317
|
*/
|
318
|
public void setDataFileName(int index, String dataFileName) {
|
319
|
this.dataFileName[index] = dataFileName;
|
320
|
}
|
321
|
|
322
|
/**
|
323
|
* Setter for property dataFileName.
|
324
|
* @param dataFileName New value of property dataFileName.
|
325
|
*/
|
326
|
public void setDataFileName(String[] dataFileName) {
|
327
|
this.dataFileName = dataFileName;
|
328
|
}
|
329
|
|
330
|
/**
|
331
|
* Holds value of property docId.
|
332
|
*/
|
333
|
private String docId;
|
334
|
|
335
|
/**
|
336
|
* Getter for property docId.
|
337
|
* @return Value of property docId.
|
338
|
*/
|
339
|
public String getDocId() {
|
340
|
return this.docId;
|
341
|
}
|
342
|
|
343
|
/**
|
344
|
* Setter for property docId.
|
345
|
* @param docId New value of property docId.
|
346
|
*/
|
347
|
public void setDocId(String docId) {
|
348
|
this.docId = docId;
|
349
|
}
|
350
|
|
351
|
/**
|
352
|
* Holds value of property message.
|
353
|
*/
|
354
|
private String[] message = new String[10];
|
355
|
|
356
|
/**
|
357
|
* Indexed getter for property message.
|
358
|
* @param index Index of the property.
|
359
|
* @return Value of the property at <CODE>index</CODE>.
|
360
|
*/
|
361
|
public String getMessage(int index) {
|
362
|
return this.message[index];
|
363
|
}
|
364
|
|
365
|
/**
|
366
|
* Getter for property message.
|
367
|
* @return Value of property message.
|
368
|
*/
|
369
|
public String[] getMessage() {
|
370
|
return this.message;
|
371
|
}
|
372
|
|
373
|
/**
|
374
|
* Indexed setter for property message.
|
375
|
* @param index Index of the property.
|
376
|
* @param message New value of the property at <CODE>index</CODE>.
|
377
|
*/
|
378
|
public void setMessage(int index, String message) {
|
379
|
this.message[index] = message;
|
380
|
}
|
381
|
|
382
|
/**
|
383
|
* Setter for property message.
|
384
|
* @param message New value of property message.
|
385
|
*/
|
386
|
public void setMessage(String[] message) {
|
387
|
this.message = message;
|
388
|
}
|
389
|
|
390
|
/**
|
391
|
* Holds value of property contentStandard.
|
392
|
*/
|
393
|
private String contentStandard;
|
394
|
|
395
|
/**
|
396
|
* Getter for property contentStandard.
|
397
|
* @return Value of property contentStandard.
|
398
|
*/
|
399
|
public String getContentStandard() {
|
400
|
return this.contentStandard;
|
401
|
}
|
402
|
|
403
|
/**
|
404
|
* Setter for property contentStandard.
|
405
|
* @param contentStandard New value of property contentStandard.
|
406
|
*/
|
407
|
public void setContentStandard(String contentStandard) {
|
408
|
this.contentStandard = contentStandard;
|
409
|
}
|
410
|
|
411
|
/**
|
412
|
* Holds value of property isMetaFileDocId.
|
413
|
*/
|
414
|
private String metaFileDocId;
|
415
|
|
416
|
/**
|
417
|
* Getter for property isMetaFileDocId.
|
418
|
* @return Value of property isMetaFileDocId.
|
419
|
*/
|
420
|
public String getMetaFileDocId() {
|
421
|
return this.metaFileDocId;
|
422
|
}
|
423
|
|
424
|
/**
|
425
|
* Setter for property isMetaFileDocId.
|
426
|
* @param isMetaFileDocId New value of property isMetaFileDocId.
|
427
|
*/
|
428
|
public void setMetaFileDocId(String metaFileDocId) {
|
429
|
this.metaFileDocId = metaFileDocId;
|
430
|
}
|
431
|
|
432
|
}
|