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