1
2
3
4
5
6
7
8 package gov.bnl.gums.configuration;
9
10 public class Configuration implements java.io.Serializable {
11 private java.util.HashMap accountMappers;
12
13 private boolean allowGridmapFiles;
14
15 private java.lang.Object[] bannedUserGroupList;
16
17 private java.lang.String bannedUserGroups;
18
19 private java.util.Calendar created;
20
21 private java.util.HashMap groupToAccountMappings;
22
23 private java.lang.Object[] hostToGroupMappings;
24
25 private java.util.HashMap persistenceFactories;
26
27 private java.lang.Object[] readAllUserGroups;
28
29 private java.lang.Object[] readSelfUserGroups;
30
31 private java.util.HashMap userGroups;
32
33 private java.util.HashMap vomsServers;
34
35 private java.lang.Object[] writeUserGroups;
36
37 public Configuration() {
38 }
39
40 public Configuration(
41 java.util.HashMap accountMappers,
42 boolean allowGridmapFiles,
43 java.lang.Object[] bannedUserGroupList,
44 java.lang.String bannedUserGroups,
45 java.util.Calendar created,
46 java.util.HashMap groupToAccountMappings,
47 java.lang.Object[] hostToGroupMappings,
48 java.util.HashMap persistenceFactories,
49 java.lang.Object[] readAllUserGroups,
50 java.lang.Object[] readSelfUserGroups,
51 java.util.HashMap userGroups,
52 java.util.HashMap vomsServers,
53 java.lang.Object[] writeUserGroups) {
54 this.accountMappers = accountMappers;
55 this.allowGridmapFiles = allowGridmapFiles;
56 this.bannedUserGroupList = bannedUserGroupList;
57 this.bannedUserGroups = bannedUserGroups;
58 this.created = created;
59 this.groupToAccountMappings = groupToAccountMappings;
60 this.hostToGroupMappings = hostToGroupMappings;
61 this.persistenceFactories = persistenceFactories;
62 this.readAllUserGroups = readAllUserGroups;
63 this.readSelfUserGroups = readSelfUserGroups;
64 this.userGroups = userGroups;
65 this.vomsServers = vomsServers;
66 this.writeUserGroups = writeUserGroups;
67 }
68
69
70
71
72
73
74
75 public java.util.HashMap getAccountMappers() {
76 return accountMappers;
77 }
78
79
80
81
82
83
84
85 public void setAccountMappers(java.util.HashMap accountMappers) {
86 this.accountMappers = accountMappers;
87 }
88
89
90
91
92
93
94
95 public boolean isAllowGridmapFiles() {
96 return allowGridmapFiles;
97 }
98
99
100
101
102
103
104
105 public void setAllowGridmapFiles(boolean allowGridmapFiles) {
106 this.allowGridmapFiles = allowGridmapFiles;
107 }
108
109
110
111
112
113
114
115 public java.lang.Object[] getBannedUserGroupList() {
116 return bannedUserGroupList;
117 }
118
119
120
121
122
123
124
125 public void setBannedUserGroupList(java.lang.Object[] bannedUserGroupList) {
126 this.bannedUserGroupList = bannedUserGroupList;
127 }
128
129
130
131
132
133
134
135 public java.lang.String getBannedUserGroups() {
136 return bannedUserGroups;
137 }
138
139
140
141
142
143
144
145 public void setBannedUserGroups(java.lang.String bannedUserGroups) {
146 this.bannedUserGroups = bannedUserGroups;
147 }
148
149
150
151
152
153
154
155 public java.util.Calendar getCreated() {
156 return created;
157 }
158
159
160
161
162
163
164
165 public void setCreated(java.util.Calendar created) {
166 this.created = created;
167 }
168
169
170
171
172
173
174
175 public java.util.HashMap getGroupToAccountMappings() {
176 return groupToAccountMappings;
177 }
178
179
180
181
182
183
184
185 public void setGroupToAccountMappings(java.util.HashMap groupToAccountMappings) {
186 this.groupToAccountMappings = groupToAccountMappings;
187 }
188
189
190
191
192
193
194
195 public java.lang.Object[] getHostToGroupMappings() {
196 return hostToGroupMappings;
197 }
198
199
200
201
202
203
204
205 public void setHostToGroupMappings(java.lang.Object[] hostToGroupMappings) {
206 this.hostToGroupMappings = hostToGroupMappings;
207 }
208
209
210
211
212
213
214
215 public java.util.HashMap getPersistenceFactories() {
216 return persistenceFactories;
217 }
218
219
220
221
222
223
224
225 public void setPersistenceFactories(java.util.HashMap persistenceFactories) {
226 this.persistenceFactories = persistenceFactories;
227 }
228
229
230
231
232
233
234
235 public java.lang.Object[] getReadAllUserGroups() {
236 return readAllUserGroups;
237 }
238
239
240
241
242
243
244
245 public void setReadAllUserGroups(java.lang.Object[] readAllUserGroups) {
246 this.readAllUserGroups = readAllUserGroups;
247 }
248
249
250
251
252
253
254
255 public java.lang.Object[] getReadSelfUserGroups() {
256 return readSelfUserGroups;
257 }
258
259
260
261
262
263
264
265 public void setReadSelfUserGroups(java.lang.Object[] readSelfUserGroups) {
266 this.readSelfUserGroups = readSelfUserGroups;
267 }
268
269
270
271
272
273
274
275 public java.util.HashMap getUserGroups() {
276 return userGroups;
277 }
278
279
280
281
282
283
284
285 public void setUserGroups(java.util.HashMap userGroups) {
286 this.userGroups = userGroups;
287 }
288
289
290
291
292
293
294
295 public java.util.HashMap getVomsServers() {
296 return vomsServers;
297 }
298
299
300
301
302
303
304
305 public void setVomsServers(java.util.HashMap vomsServers) {
306 this.vomsServers = vomsServers;
307 }
308
309
310
311
312
313
314
315 public java.lang.Object[] getWriteUserGroups() {
316 return writeUserGroups;
317 }
318
319
320
321
322
323
324
325 public void setWriteUserGroups(java.lang.Object[] writeUserGroups) {
326 this.writeUserGroups = writeUserGroups;
327 }
328
329 private java.lang.Object __equalsCalc = null;
330 public synchronized boolean equals(java.lang.Object obj) {
331 if (!(obj instanceof Configuration)) return false;
332 Configuration other = (Configuration) obj;
333 if (obj == null) return false;
334 if (this == obj) return true;
335 if (__equalsCalc != null) {
336 return (__equalsCalc == obj);
337 }
338 __equalsCalc = obj;
339 boolean _equals;
340 _equals = true &&
341 ((this.accountMappers==null && other.getAccountMappers()==null) ||
342 (this.accountMappers!=null &&
343 this.accountMappers.equals(other.getAccountMappers()))) &&
344 this.allowGridmapFiles == other.isAllowGridmapFiles() &&
345 ((this.bannedUserGroupList==null && other.getBannedUserGroupList()==null) ||
346 (this.bannedUserGroupList!=null &&
347 java.util.Arrays.equals(this.bannedUserGroupList, other.getBannedUserGroupList()))) &&
348 ((this.bannedUserGroups==null && other.getBannedUserGroups()==null) ||
349 (this.bannedUserGroups!=null &&
350 this.bannedUserGroups.equals(other.getBannedUserGroups()))) &&
351 ((this.created==null && other.getCreated()==null) ||
352 (this.created!=null &&
353 this.created.equals(other.getCreated()))) &&
354 ((this.groupToAccountMappings==null && other.getGroupToAccountMappings()==null) ||
355 (this.groupToAccountMappings!=null &&
356 this.groupToAccountMappings.equals(other.getGroupToAccountMappings()))) &&
357 ((this.hostToGroupMappings==null && other.getHostToGroupMappings()==null) ||
358 (this.hostToGroupMappings!=null &&
359 java.util.Arrays.equals(this.hostToGroupMappings, other.getHostToGroupMappings()))) &&
360 ((this.persistenceFactories==null && other.getPersistenceFactories()==null) ||
361 (this.persistenceFactories!=null &&
362 this.persistenceFactories.equals(other.getPersistenceFactories()))) &&
363 ((this.readAllUserGroups==null && other.getReadAllUserGroups()==null) ||
364 (this.readAllUserGroups!=null &&
365 java.util.Arrays.equals(this.readAllUserGroups, other.getReadAllUserGroups()))) &&
366 ((this.readSelfUserGroups==null && other.getReadSelfUserGroups()==null) ||
367 (this.readSelfUserGroups!=null &&
368 java.util.Arrays.equals(this.readSelfUserGroups, other.getReadSelfUserGroups()))) &&
369 ((this.userGroups==null && other.getUserGroups()==null) ||
370 (this.userGroups!=null &&
371 this.userGroups.equals(other.getUserGroups()))) &&
372 ((this.vomsServers==null && other.getVomsServers()==null) ||
373 (this.vomsServers!=null &&
374 this.vomsServers.equals(other.getVomsServers()))) &&
375 ((this.writeUserGroups==null && other.getWriteUserGroups()==null) ||
376 (this.writeUserGroups!=null &&
377 java.util.Arrays.equals(this.writeUserGroups, other.getWriteUserGroups())));
378 __equalsCalc = null;
379 return _equals;
380 }
381
382 private boolean __hashCodeCalc = false;
383 public synchronized int hashCode() {
384 if (__hashCodeCalc) {
385 return 0;
386 }
387 __hashCodeCalc = true;
388 int _hashCode = 1;
389 if (getAccountMappers() != null) {
390 _hashCode += getAccountMappers().hashCode();
391 }
392 _hashCode += (isAllowGridmapFiles() ? Boolean.TRUE : Boolean.FALSE).hashCode();
393 if (getBannedUserGroupList() != null) {
394 for (int i=0;
395 i<java.lang.reflect.Array.getLength(getBannedUserGroupList());
396 i++) {
397 java.lang.Object obj = java.lang.reflect.Array.get(getBannedUserGroupList(), i);
398 if (obj != null &&
399 !obj.getClass().isArray()) {
400 _hashCode += obj.hashCode();
401 }
402 }
403 }
404 if (getBannedUserGroups() != null) {
405 _hashCode += getBannedUserGroups().hashCode();
406 }
407 if (getCreated() != null) {
408 _hashCode += getCreated().hashCode();
409 }
410 if (getGroupToAccountMappings() != null) {
411 _hashCode += getGroupToAccountMappings().hashCode();
412 }
413 if (getHostToGroupMappings() != null) {
414 for (int i=0;
415 i<java.lang.reflect.Array.getLength(getHostToGroupMappings());
416 i++) {
417 java.lang.Object obj = java.lang.reflect.Array.get(getHostToGroupMappings(), i);
418 if (obj != null &&
419 !obj.getClass().isArray()) {
420 _hashCode += obj.hashCode();
421 }
422 }
423 }
424 if (getPersistenceFactories() != null) {
425 _hashCode += getPersistenceFactories().hashCode();
426 }
427 if (getReadAllUserGroups() != null) {
428 for (int i=0;
429 i<java.lang.reflect.Array.getLength(getReadAllUserGroups());
430 i++) {
431 java.lang.Object obj = java.lang.reflect.Array.get(getReadAllUserGroups(), i);
432 if (obj != null &&
433 !obj.getClass().isArray()) {
434 _hashCode += obj.hashCode();
435 }
436 }
437 }
438 if (getReadSelfUserGroups() != null) {
439 for (int i=0;
440 i<java.lang.reflect.Array.getLength(getReadSelfUserGroups());
441 i++) {
442 java.lang.Object obj = java.lang.reflect.Array.get(getReadSelfUserGroups(), i);
443 if (obj != null &&
444 !obj.getClass().isArray()) {
445 _hashCode += obj.hashCode();
446 }
447 }
448 }
449 if (getUserGroups() != null) {
450 _hashCode += getUserGroups().hashCode();
451 }
452 if (getVomsServers() != null) {
453 _hashCode += getVomsServers().hashCode();
454 }
455 if (getWriteUserGroups() != null) {
456 for (int i=0;
457 i<java.lang.reflect.Array.getLength(getWriteUserGroups());
458 i++) {
459 java.lang.Object obj = java.lang.reflect.Array.get(getWriteUserGroups(), i);
460 if (obj != null &&
461 !obj.getClass().isArray()) {
462 _hashCode += obj.hashCode();
463 }
464 }
465 }
466 __hashCodeCalc = false;
467 return _hashCode;
468 }
469
470
471 private static org.apache.axis.description.TypeDesc typeDesc =
472 new org.apache.axis.description.TypeDesc(Configuration.class, true);
473
474 static {
475 typeDesc.setXmlType(new javax.xml.namespace.QName("http://configuration.gums.bnl.gov", "Configuration"));
476 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
477 elemField.setFieldName("accountMappers");
478 elemField.setXmlName(new javax.xml.namespace.QName("", "accountMappers"));
479 elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
480 elemField.setNillable(true);
481 typeDesc.addFieldDesc(elemField);
482 elemField = new org.apache.axis.description.ElementDesc();
483 elemField.setFieldName("allowGridmapFiles");
484 elemField.setXmlName(new javax.xml.namespace.QName("", "allowGridmapFiles"));
485 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
486 elemField.setNillable(false);
487 typeDesc.addFieldDesc(elemField);
488 elemField = new org.apache.axis.description.ElementDesc();
489 elemField.setFieldName("bannedUserGroupList");
490 elemField.setXmlName(new javax.xml.namespace.QName("", "bannedUserGroupList"));
491 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
492 elemField.setNillable(true);
493 typeDesc.addFieldDesc(elemField);
494 elemField = new org.apache.axis.description.ElementDesc();
495 elemField.setFieldName("bannedUserGroups");
496 elemField.setXmlName(new javax.xml.namespace.QName("", "bannedUserGroups"));
497 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
498 elemField.setNillable(true);
499 typeDesc.addFieldDesc(elemField);
500 elemField = new org.apache.axis.description.ElementDesc();
501 elemField.setFieldName("created");
502 elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
503 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
504 elemField.setNillable(true);
505 typeDesc.addFieldDesc(elemField);
506 elemField = new org.apache.axis.description.ElementDesc();
507 elemField.setFieldName("groupToAccountMappings");
508 elemField.setXmlName(new javax.xml.namespace.QName("", "groupToAccountMappings"));
509 elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
510 elemField.setNillable(true);
511 typeDesc.addFieldDesc(elemField);
512 elemField = new org.apache.axis.description.ElementDesc();
513 elemField.setFieldName("hostToGroupMappings");
514 elemField.setXmlName(new javax.xml.namespace.QName("", "hostToGroupMappings"));
515 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
516 elemField.setNillable(true);
517 typeDesc.addFieldDesc(elemField);
518 elemField = new org.apache.axis.description.ElementDesc();
519 elemField.setFieldName("persistenceFactories");
520 elemField.setXmlName(new javax.xml.namespace.QName("", "persistenceFactories"));
521 elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
522 elemField.setNillable(true);
523 typeDesc.addFieldDesc(elemField);
524 elemField = new org.apache.axis.description.ElementDesc();
525 elemField.setFieldName("readAllUserGroups");
526 elemField.setXmlName(new javax.xml.namespace.QName("", "readAllUserGroups"));
527 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
528 elemField.setNillable(true);
529 typeDesc.addFieldDesc(elemField);
530 elemField = new org.apache.axis.description.ElementDesc();
531 elemField.setFieldName("readSelfUserGroups");
532 elemField.setXmlName(new javax.xml.namespace.QName("", "readSelfUserGroups"));
533 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
534 elemField.setNillable(true);
535 typeDesc.addFieldDesc(elemField);
536 elemField = new org.apache.axis.description.ElementDesc();
537 elemField.setFieldName("userGroups");
538 elemField.setXmlName(new javax.xml.namespace.QName("", "userGroups"));
539 elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
540 elemField.setNillable(true);
541 typeDesc.addFieldDesc(elemField);
542 elemField = new org.apache.axis.description.ElementDesc();
543 elemField.setFieldName("vomsServers");
544 elemField.setXmlName(new javax.xml.namespace.QName("", "vomsServers"));
545 elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
546 elemField.setNillable(true);
547 typeDesc.addFieldDesc(elemField);
548 elemField = new org.apache.axis.description.ElementDesc();
549 elemField.setFieldName("writeUserGroups");
550 elemField.setXmlName(new javax.xml.namespace.QName("", "writeUserGroups"));
551 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
552 elemField.setNillable(true);
553 typeDesc.addFieldDesc(elemField);
554 }
555
556
557
558
559 public static org.apache.axis.description.TypeDesc getTypeDesc() {
560 return typeDesc;
561 }
562
563
564
565
566 public static org.apache.axis.encoding.Serializer getSerializer(
567 java.lang.String mechType,
568 java.lang.Class _javaType,
569 javax.xml.namespace.QName _xmlType) {
570 return
571 new org.apache.axis.encoding.ser.BeanSerializer(
572 _javaType, _xmlType, typeDesc);
573 }
574
575
576
577
578 public static org.apache.axis.encoding.Deserializer getDeserializer(
579 java.lang.String mechType,
580 java.lang.Class _javaType,
581 javax.xml.namespace.QName _xmlType) {
582 return
583 new org.apache.axis.encoding.ser.BeanDeserializer(
584 _javaType, _xmlType, typeDesc);
585 }
586
587 }