View Javadoc

1   /**
2    * Configuration.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6    */
7   
8   package gov.bnl.gums.configuration;
9   
10  public class Configuration  implements java.io.Serializable {
11      private java.util.HashMap accountMappers;
12      private boolean errorOnMissedMapping;
13      private java.util.HashMap groupToAccountMappings;
14      private java.lang.Object[] hostToGroupMappings;
15      private java.util.HashMap persistenceFactories;
16      private java.lang.Object[] readAllUserGroups;
17      private java.lang.Object[] readSelfUserGroups;
18      private java.util.HashMap userGroups;
19      private java.util.HashMap vomsServers;
20      private java.lang.Object[] writeUserGroups;
21  
22      public Configuration() {
23      }
24  
25      public Configuration(
26             java.util.HashMap accountMappers,
27             boolean errorOnMissedMapping,
28             java.util.HashMap groupToAccountMappings,
29             java.lang.Object[] hostToGroupMappings,
30             java.util.HashMap persistenceFactories,
31             java.lang.Object[] readAllUserGroups,
32             java.lang.Object[] readSelfUserGroups,
33             java.util.HashMap userGroups,
34             java.util.HashMap vomsServers,
35             java.lang.Object[] writeUserGroups) {
36             this.accountMappers = accountMappers;
37             this.errorOnMissedMapping = errorOnMissedMapping;
38             this.groupToAccountMappings = groupToAccountMappings;
39             this.hostToGroupMappings = hostToGroupMappings;
40             this.persistenceFactories = persistenceFactories;
41             this.readAllUserGroups = readAllUserGroups;
42             this.readSelfUserGroups = readSelfUserGroups;
43             this.userGroups = userGroups;
44             this.vomsServers = vomsServers;
45             this.writeUserGroups = writeUserGroups;
46      }
47  
48  
49      /**
50       * Gets the accountMappers value for this Configuration.
51       * 
52       * @return accountMappers
53       */
54      public java.util.HashMap getAccountMappers() {
55          return accountMappers;
56      }
57  
58  
59      /**
60       * Sets the accountMappers value for this Configuration.
61       * 
62       * @param accountMappers
63       */
64      public void setAccountMappers(java.util.HashMap accountMappers) {
65          this.accountMappers = accountMappers;
66      }
67  
68  
69      /**
70       * Gets the errorOnMissedMapping value for this Configuration.
71       * 
72       * @return errorOnMissedMapping
73       */
74      public boolean isErrorOnMissedMapping() {
75          return errorOnMissedMapping;
76      }
77  
78  
79      /**
80       * Sets the errorOnMissedMapping value for this Configuration.
81       * 
82       * @param errorOnMissedMapping
83       */
84      public void setErrorOnMissedMapping(boolean errorOnMissedMapping) {
85          this.errorOnMissedMapping = errorOnMissedMapping;
86      }
87  
88  
89      /**
90       * Gets the groupToAccountMappings value for this Configuration.
91       * 
92       * @return groupToAccountMappings
93       */
94      public java.util.HashMap getGroupToAccountMappings() {
95          return groupToAccountMappings;
96      }
97  
98  
99      /**
100      * Sets the groupToAccountMappings value for this Configuration.
101      * 
102      * @param groupToAccountMappings
103      */
104     public void setGroupToAccountMappings(java.util.HashMap groupToAccountMappings) {
105         this.groupToAccountMappings = groupToAccountMappings;
106     }
107 
108 
109     /**
110      * Gets the hostToGroupMappings value for this Configuration.
111      * 
112      * @return hostToGroupMappings
113      */
114     public java.lang.Object[] getHostToGroupMappings() {
115         return hostToGroupMappings;
116     }
117 
118 
119     /**
120      * Sets the hostToGroupMappings value for this Configuration.
121      * 
122      * @param hostToGroupMappings
123      */
124     public void setHostToGroupMappings(java.lang.Object[] hostToGroupMappings) {
125         this.hostToGroupMappings = hostToGroupMappings;
126     }
127 
128 
129     /**
130      * Gets the persistenceFactories value for this Configuration.
131      * 
132      * @return persistenceFactories
133      */
134     public java.util.HashMap getPersistenceFactories() {
135         return persistenceFactories;
136     }
137 
138 
139     /**
140      * Sets the persistenceFactories value for this Configuration.
141      * 
142      * @param persistenceFactories
143      */
144     public void setPersistenceFactories(java.util.HashMap persistenceFactories) {
145         this.persistenceFactories = persistenceFactories;
146     }
147 
148 
149     /**
150      * Gets the readAllUserGroups value for this Configuration.
151      * 
152      * @return readAllUserGroups
153      */
154     public java.lang.Object[] getReadAllUserGroups() {
155         return readAllUserGroups;
156     }
157 
158 
159     /**
160      * Sets the readAllUserGroups value for this Configuration.
161      * 
162      * @param readAllUserGroups
163      */
164     public void setReadAllUserGroups(java.lang.Object[] readAllUserGroups) {
165         this.readAllUserGroups = readAllUserGroups;
166     }
167 
168 
169     /**
170      * Gets the readSelfUserGroups value for this Configuration.
171      * 
172      * @return readSelfUserGroups
173      */
174     public java.lang.Object[] getReadSelfUserGroups() {
175         return readSelfUserGroups;
176     }
177 
178 
179     /**
180      * Sets the readSelfUserGroups value for this Configuration.
181      * 
182      * @param readSelfUserGroups
183      */
184     public void setReadSelfUserGroups(java.lang.Object[] readSelfUserGroups) {
185         this.readSelfUserGroups = readSelfUserGroups;
186     }
187 
188 
189     /**
190      * Gets the userGroups value for this Configuration.
191      * 
192      * @return userGroups
193      */
194     public java.util.HashMap getUserGroups() {
195         return userGroups;
196     }
197 
198 
199     /**
200      * Sets the userGroups value for this Configuration.
201      * 
202      * @param userGroups
203      */
204     public void setUserGroups(java.util.HashMap userGroups) {
205         this.userGroups = userGroups;
206     }
207 
208 
209     /**
210      * Gets the vomsServers value for this Configuration.
211      * 
212      * @return vomsServers
213      */
214     public java.util.HashMap getVomsServers() {
215         return vomsServers;
216     }
217 
218 
219     /**
220      * Sets the vomsServers value for this Configuration.
221      * 
222      * @param vomsServers
223      */
224     public void setVomsServers(java.util.HashMap vomsServers) {
225         this.vomsServers = vomsServers;
226     }
227 
228 
229     /**
230      * Gets the writeUserGroups value for this Configuration.
231      * 
232      * @return writeUserGroups
233      */
234     public java.lang.Object[] getWriteUserGroups() {
235         return writeUserGroups;
236     }
237 
238 
239     /**
240      * Sets the writeUserGroups value for this Configuration.
241      * 
242      * @param writeUserGroups
243      */
244     public void setWriteUserGroups(java.lang.Object[] writeUserGroups) {
245         this.writeUserGroups = writeUserGroups;
246     }
247 
248     private java.lang.Object __equalsCalc = null;
249     public synchronized boolean equals(java.lang.Object obj) {
250         if (!(obj instanceof Configuration)) return false;
251         Configuration other = (Configuration) obj;
252         if (obj == null) return false;
253         if (this == obj) return true;
254         if (__equalsCalc != null) {
255             return (__equalsCalc == obj);
256         }
257         __equalsCalc = obj;
258         boolean _equals;
259         _equals = true && 
260             ((this.accountMappers==null && other.getAccountMappers()==null) || 
261              (this.accountMappers!=null &&
262               this.accountMappers.equals(other.getAccountMappers()))) &&
263             this.errorOnMissedMapping == other.isErrorOnMissedMapping() &&
264             ((this.groupToAccountMappings==null && other.getGroupToAccountMappings()==null) || 
265              (this.groupToAccountMappings!=null &&
266               this.groupToAccountMappings.equals(other.getGroupToAccountMappings()))) &&
267             ((this.hostToGroupMappings==null && other.getHostToGroupMappings()==null) || 
268              (this.hostToGroupMappings!=null &&
269               java.util.Arrays.equals(this.hostToGroupMappings, other.getHostToGroupMappings()))) &&
270             ((this.persistenceFactories==null && other.getPersistenceFactories()==null) || 
271              (this.persistenceFactories!=null &&
272               this.persistenceFactories.equals(other.getPersistenceFactories()))) &&
273             ((this.readAllUserGroups==null && other.getReadAllUserGroups()==null) || 
274              (this.readAllUserGroups!=null &&
275               java.util.Arrays.equals(this.readAllUserGroups, other.getReadAllUserGroups()))) &&
276             ((this.readSelfUserGroups==null && other.getReadSelfUserGroups()==null) || 
277              (this.readSelfUserGroups!=null &&
278               java.util.Arrays.equals(this.readSelfUserGroups, other.getReadSelfUserGroups()))) &&
279             ((this.userGroups==null && other.getUserGroups()==null) || 
280              (this.userGroups!=null &&
281               this.userGroups.equals(other.getUserGroups()))) &&
282             ((this.vomsServers==null && other.getVomsServers()==null) || 
283              (this.vomsServers!=null &&
284               this.vomsServers.equals(other.getVomsServers()))) &&
285             ((this.writeUserGroups==null && other.getWriteUserGroups()==null) || 
286              (this.writeUserGroups!=null &&
287               java.util.Arrays.equals(this.writeUserGroups, other.getWriteUserGroups())));
288         __equalsCalc = null;
289         return _equals;
290     }
291 
292     private boolean __hashCodeCalc = false;
293     public synchronized int hashCode() {
294         if (__hashCodeCalc) {
295             return 0;
296         }
297         __hashCodeCalc = true;
298         int _hashCode = 1;
299         if (getAccountMappers() != null) {
300             _hashCode += getAccountMappers().hashCode();
301         }
302         _hashCode += (isErrorOnMissedMapping() ? Boolean.TRUE : Boolean.FALSE).hashCode();
303         if (getGroupToAccountMappings() != null) {
304             _hashCode += getGroupToAccountMappings().hashCode();
305         }
306         if (getHostToGroupMappings() != null) {
307             for (int i=0;
308                  i<java.lang.reflect.Array.getLength(getHostToGroupMappings());
309                  i++) {
310                 java.lang.Object obj = java.lang.reflect.Array.get(getHostToGroupMappings(), i);
311                 if (obj != null &&
312                     !obj.getClass().isArray()) {
313                     _hashCode += obj.hashCode();
314                 }
315             }
316         }
317         if (getPersistenceFactories() != null) {
318             _hashCode += getPersistenceFactories().hashCode();
319         }
320         if (getReadAllUserGroups() != null) {
321             for (int i=0;
322                  i<java.lang.reflect.Array.getLength(getReadAllUserGroups());
323                  i++) {
324                 java.lang.Object obj = java.lang.reflect.Array.get(getReadAllUserGroups(), i);
325                 if (obj != null &&
326                     !obj.getClass().isArray()) {
327                     _hashCode += obj.hashCode();
328                 }
329             }
330         }
331         if (getReadSelfUserGroups() != null) {
332             for (int i=0;
333                  i<java.lang.reflect.Array.getLength(getReadSelfUserGroups());
334                  i++) {
335                 java.lang.Object obj = java.lang.reflect.Array.get(getReadSelfUserGroups(), i);
336                 if (obj != null &&
337                     !obj.getClass().isArray()) {
338                     _hashCode += obj.hashCode();
339                 }
340             }
341         }
342         if (getUserGroups() != null) {
343             _hashCode += getUserGroups().hashCode();
344         }
345         if (getVomsServers() != null) {
346             _hashCode += getVomsServers().hashCode();
347         }
348         if (getWriteUserGroups() != null) {
349             for (int i=0;
350                  i<java.lang.reflect.Array.getLength(getWriteUserGroups());
351                  i++) {
352                 java.lang.Object obj = java.lang.reflect.Array.get(getWriteUserGroups(), i);
353                 if (obj != null &&
354                     !obj.getClass().isArray()) {
355                     _hashCode += obj.hashCode();
356                 }
357             }
358         }
359         __hashCodeCalc = false;
360         return _hashCode;
361     }
362 
363     // Type metadata
364     private static org.apache.axis.description.TypeDesc typeDesc =
365         new org.apache.axis.description.TypeDesc(Configuration.class, true);
366 
367     static {
368         typeDesc.setXmlType(new javax.xml.namespace.QName("http://configuration.gums.bnl.gov", "Configuration"));
369         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
370         elemField.setFieldName("accountMappers");
371         elemField.setXmlName(new javax.xml.namespace.QName("", "accountMappers"));
372         elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
373         typeDesc.addFieldDesc(elemField);
374         elemField = new org.apache.axis.description.ElementDesc();
375         elemField.setFieldName("errorOnMissedMapping");
376         elemField.setXmlName(new javax.xml.namespace.QName("", "errorOnMissedMapping"));
377         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
378         typeDesc.addFieldDesc(elemField);
379         elemField = new org.apache.axis.description.ElementDesc();
380         elemField.setFieldName("groupToAccountMappings");
381         elemField.setXmlName(new javax.xml.namespace.QName("", "groupToAccountMappings"));
382         elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
383         typeDesc.addFieldDesc(elemField);
384         elemField = new org.apache.axis.description.ElementDesc();
385         elemField.setFieldName("hostToGroupMappings");
386         elemField.setXmlName(new javax.xml.namespace.QName("", "hostToGroupMappings"));
387         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
388         typeDesc.addFieldDesc(elemField);
389         elemField = new org.apache.axis.description.ElementDesc();
390         elemField.setFieldName("persistenceFactories");
391         elemField.setXmlName(new javax.xml.namespace.QName("", "persistenceFactories"));
392         elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
393         typeDesc.addFieldDesc(elemField);
394         elemField = new org.apache.axis.description.ElementDesc();
395         elemField.setFieldName("readAllUserGroups");
396         elemField.setXmlName(new javax.xml.namespace.QName("", "readAllUserGroups"));
397         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
398         typeDesc.addFieldDesc(elemField);
399         elemField = new org.apache.axis.description.ElementDesc();
400         elemField.setFieldName("readSelfUserGroups");
401         elemField.setXmlName(new javax.xml.namespace.QName("", "readSelfUserGroups"));
402         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
403         typeDesc.addFieldDesc(elemField);
404         elemField = new org.apache.axis.description.ElementDesc();
405         elemField.setFieldName("userGroups");
406         elemField.setXmlName(new javax.xml.namespace.QName("", "userGroups"));
407         elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
408         typeDesc.addFieldDesc(elemField);
409         elemField = new org.apache.axis.description.ElementDesc();
410         elemField.setFieldName("vomsServers");
411         elemField.setXmlName(new javax.xml.namespace.QName("", "vomsServers"));
412         elemField.setXmlType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
413         typeDesc.addFieldDesc(elemField);
414         elemField = new org.apache.axis.description.ElementDesc();
415         elemField.setFieldName("writeUserGroups");
416         elemField.setXmlName(new javax.xml.namespace.QName("", "writeUserGroups"));
417         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
418         typeDesc.addFieldDesc(elemField);
419     }
420 
421     /**
422      * Return type metadata object
423      */
424     public static org.apache.axis.description.TypeDesc getTypeDesc() {
425         return typeDesc;
426     }
427 
428     /**
429      * Get Custom Serializer
430      */
431     public static org.apache.axis.encoding.Serializer getSerializer(
432            java.lang.String mechType, 
433            java.lang.Class _javaType,  
434            javax.xml.namespace.QName _xmlType) {
435         return 
436           new  org.apache.axis.encoding.ser.BeanSerializer(
437             _javaType, _xmlType, typeDesc);
438     }
439 
440     /**
441      * Get Custom Deserializer
442      */
443     public static org.apache.axis.encoding.Deserializer getDeserializer(
444            java.lang.String mechType, 
445            java.lang.Class _javaType,  
446            javax.xml.namespace.QName _xmlType) {
447         return 
448           new  org.apache.axis.encoding.ser.BeanDeserializer(
449             _javaType, _xmlType, typeDesc);
450     }
451 
452 }