View Javadoc

1   /**
2    * Copyright (C) 2008 Atlassian
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /**
18   * RemoteConfiguration.java
19   *
20   * This file was auto-generated from WSDL
21   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
22   */
23  
24  package com.atlassian.theplugin.jira.api.soap.axis;
25  
26  public class RemoteConfiguration  implements java.io.Serializable {
27      private boolean allowAttachments;
28  
29      private boolean allowExternalUserManagment;
30  
31      private boolean allowIssueLinking;
32  
33      private boolean allowSubTasks;
34  
35      private boolean allowTimeTracking;
36  
37      private boolean allowUnassignedIssues;
38  
39      private boolean allowVoting;
40  
41      private boolean allowWatching;
42  
43      private int timeTrackingDaysPerWeek;
44  
45      private int timeTrackingHoursPerDay;
46  
47      public RemoteConfiguration() {
48      }
49  
50      public RemoteConfiguration(
51             boolean allowAttachments,
52             boolean allowExternalUserManagment,
53             boolean allowIssueLinking,
54             boolean allowSubTasks,
55             boolean allowTimeTracking,
56             boolean allowUnassignedIssues,
57             boolean allowVoting,
58             boolean allowWatching,
59             int timeTrackingDaysPerWeek,
60             int timeTrackingHoursPerDay) {
61             this.allowAttachments = allowAttachments;
62             this.allowExternalUserManagment = allowExternalUserManagment;
63             this.allowIssueLinking = allowIssueLinking;
64             this.allowSubTasks = allowSubTasks;
65             this.allowTimeTracking = allowTimeTracking;
66             this.allowUnassignedIssues = allowUnassignedIssues;
67             this.allowVoting = allowVoting;
68             this.allowWatching = allowWatching;
69             this.timeTrackingDaysPerWeek = timeTrackingDaysPerWeek;
70             this.timeTrackingHoursPerDay = timeTrackingHoursPerDay;
71      }
72  
73  
74      /**
75       * Gets the allowAttachments value for this RemoteConfiguration.
76       * 
77       * @return allowAttachments
78       */
79      public boolean isAllowAttachments() {
80          return allowAttachments;
81      }
82  
83  
84      /**
85       * Sets the allowAttachments value for this RemoteConfiguration.
86       * 
87       * @param allowAttachments
88       */
89      public void setAllowAttachments(boolean allowAttachments) {
90          this.allowAttachments = allowAttachments;
91      }
92  
93  
94      /**
95       * Gets the allowExternalUserManagment value for this RemoteConfiguration.
96       * 
97       * @return allowExternalUserManagment
98       */
99      public boolean isAllowExternalUserManagment() {
100         return allowExternalUserManagment;
101     }
102 
103 
104     /**
105      * Sets the allowExternalUserManagment value for this RemoteConfiguration.
106      * 
107      * @param allowExternalUserManagment
108      */
109     public void setAllowExternalUserManagment(boolean allowExternalUserManagment) {
110         this.allowExternalUserManagment = allowExternalUserManagment;
111     }
112 
113 
114     /**
115      * Gets the allowIssueLinking value for this RemoteConfiguration.
116      * 
117      * @return allowIssueLinking
118      */
119     public boolean isAllowIssueLinking() {
120         return allowIssueLinking;
121     }
122 
123 
124     /**
125      * Sets the allowIssueLinking value for this RemoteConfiguration.
126      * 
127      * @param allowIssueLinking
128      */
129     public void setAllowIssueLinking(boolean allowIssueLinking) {
130         this.allowIssueLinking = allowIssueLinking;
131     }
132 
133 
134     /**
135      * Gets the allowSubTasks value for this RemoteConfiguration.
136      * 
137      * @return allowSubTasks
138      */
139     public boolean isAllowSubTasks() {
140         return allowSubTasks;
141     }
142 
143 
144     /**
145      * Sets the allowSubTasks value for this RemoteConfiguration.
146      * 
147      * @param allowSubTasks
148      */
149     public void setAllowSubTasks(boolean allowSubTasks) {
150         this.allowSubTasks = allowSubTasks;
151     }
152 
153 
154     /**
155      * Gets the allowTimeTracking value for this RemoteConfiguration.
156      * 
157      * @return allowTimeTracking
158      */
159     public boolean isAllowTimeTracking() {
160         return allowTimeTracking;
161     }
162 
163 
164     /**
165      * Sets the allowTimeTracking value for this RemoteConfiguration.
166      * 
167      * @param allowTimeTracking
168      */
169     public void setAllowTimeTracking(boolean allowTimeTracking) {
170         this.allowTimeTracking = allowTimeTracking;
171     }
172 
173 
174     /**
175      * Gets the allowUnassignedIssues value for this RemoteConfiguration.
176      * 
177      * @return allowUnassignedIssues
178      */
179     public boolean isAllowUnassignedIssues() {
180         return allowUnassignedIssues;
181     }
182 
183 
184     /**
185      * Sets the allowUnassignedIssues value for this RemoteConfiguration.
186      * 
187      * @param allowUnassignedIssues
188      */
189     public void setAllowUnassignedIssues(boolean allowUnassignedIssues) {
190         this.allowUnassignedIssues = allowUnassignedIssues;
191     }
192 
193 
194     /**
195      * Gets the allowVoting value for this RemoteConfiguration.
196      * 
197      * @return allowVoting
198      */
199     public boolean isAllowVoting() {
200         return allowVoting;
201     }
202 
203 
204     /**
205      * Sets the allowVoting value for this RemoteConfiguration.
206      * 
207      * @param allowVoting
208      */
209     public void setAllowVoting(boolean allowVoting) {
210         this.allowVoting = allowVoting;
211     }
212 
213 
214     /**
215      * Gets the allowWatching value for this RemoteConfiguration.
216      * 
217      * @return allowWatching
218      */
219     public boolean isAllowWatching() {
220         return allowWatching;
221     }
222 
223 
224     /**
225      * Sets the allowWatching value for this RemoteConfiguration.
226      * 
227      * @param allowWatching
228      */
229     public void setAllowWatching(boolean allowWatching) {
230         this.allowWatching = allowWatching;
231     }
232 
233 
234     /**
235      * Gets the timeTrackingDaysPerWeek value for this RemoteConfiguration.
236      * 
237      * @return timeTrackingDaysPerWeek
238      */
239     public int getTimeTrackingDaysPerWeek() {
240         return timeTrackingDaysPerWeek;
241     }
242 
243 
244     /**
245      * Sets the timeTrackingDaysPerWeek value for this RemoteConfiguration.
246      * 
247      * @param timeTrackingDaysPerWeek
248      */
249     public void setTimeTrackingDaysPerWeek(int timeTrackingDaysPerWeek) {
250         this.timeTrackingDaysPerWeek = timeTrackingDaysPerWeek;
251     }
252 
253 
254     /**
255      * Gets the timeTrackingHoursPerDay value for this RemoteConfiguration.
256      * 
257      * @return timeTrackingHoursPerDay
258      */
259     public int getTimeTrackingHoursPerDay() {
260         return timeTrackingHoursPerDay;
261     }
262 
263 
264     /**
265      * Sets the timeTrackingHoursPerDay value for this RemoteConfiguration.
266      * 
267      * @param timeTrackingHoursPerDay
268      */
269     public void setTimeTrackingHoursPerDay(int timeTrackingHoursPerDay) {
270         this.timeTrackingHoursPerDay = timeTrackingHoursPerDay;
271     }
272 
273     private java.lang.Object __equalsCalc = null;
274     public synchronized boolean equals(java.lang.Object obj) {
275         if (!(obj instanceof RemoteConfiguration)) return false;
276         RemoteConfiguration other = (RemoteConfiguration) obj;
277         if (obj == null) return false;
278         if (this == obj) return true;
279         if (__equalsCalc != null) {
280             return (__equalsCalc == obj);
281         }
282         __equalsCalc = obj;
283         boolean _equals;
284         _equals = true && 
285             this.allowAttachments == other.isAllowAttachments() &&
286             this.allowExternalUserManagment == other.isAllowExternalUserManagment() &&
287             this.allowIssueLinking == other.isAllowIssueLinking() &&
288             this.allowSubTasks == other.isAllowSubTasks() &&
289             this.allowTimeTracking == other.isAllowTimeTracking() &&
290             this.allowUnassignedIssues == other.isAllowUnassignedIssues() &&
291             this.allowVoting == other.isAllowVoting() &&
292             this.allowWatching == other.isAllowWatching() &&
293             this.timeTrackingDaysPerWeek == other.getTimeTrackingDaysPerWeek() &&
294             this.timeTrackingHoursPerDay == other.getTimeTrackingHoursPerDay();
295         __equalsCalc = null;
296         return _equals;
297     }
298 
299     private boolean __hashCodeCalc = false;
300     public synchronized int hashCode() {
301         if (__hashCodeCalc) {
302             return 0;
303         }
304         __hashCodeCalc = true;
305         int _hashCode = 1;
306         _hashCode += (isAllowAttachments() ? Boolean.TRUE : Boolean.FALSE).hashCode();
307         _hashCode += (isAllowExternalUserManagment() ? Boolean.TRUE : Boolean.FALSE).hashCode();
308         _hashCode += (isAllowIssueLinking() ? Boolean.TRUE : Boolean.FALSE).hashCode();
309         _hashCode += (isAllowSubTasks() ? Boolean.TRUE : Boolean.FALSE).hashCode();
310         _hashCode += (isAllowTimeTracking() ? Boolean.TRUE : Boolean.FALSE).hashCode();
311         _hashCode += (isAllowUnassignedIssues() ? Boolean.TRUE : Boolean.FALSE).hashCode();
312         _hashCode += (isAllowVoting() ? Boolean.TRUE : Boolean.FALSE).hashCode();
313         _hashCode += (isAllowWatching() ? Boolean.TRUE : Boolean.FALSE).hashCode();
314         _hashCode += getTimeTrackingDaysPerWeek();
315         _hashCode += getTimeTrackingHoursPerDay();
316         __hashCodeCalc = false;
317         return _hashCode;
318     }
319 
320     // Type metadata
321     private static org.apache.axis.description.TypeDesc typeDesc =
322         new org.apache.axis.description.TypeDesc(RemoteConfiguration.class, true);
323 
324     static {
325         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteConfiguration"));
326         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
327         elemField.setFieldName("allowAttachments");
328         elemField.setXmlName(new javax.xml.namespace.QName("", "allowAttachments"));
329         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
330         elemField.setNillable(false);
331         typeDesc.addFieldDesc(elemField);
332         elemField = new org.apache.axis.description.ElementDesc();
333         elemField.setFieldName("allowExternalUserManagment");
334         elemField.setXmlName(new javax.xml.namespace.QName("", "allowExternalUserManagment"));
335         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
336         elemField.setNillable(false);
337         typeDesc.addFieldDesc(elemField);
338         elemField = new org.apache.axis.description.ElementDesc();
339         elemField.setFieldName("allowIssueLinking");
340         elemField.setXmlName(new javax.xml.namespace.QName("", "allowIssueLinking"));
341         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
342         elemField.setNillable(false);
343         typeDesc.addFieldDesc(elemField);
344         elemField = new org.apache.axis.description.ElementDesc();
345         elemField.setFieldName("allowSubTasks");
346         elemField.setXmlName(new javax.xml.namespace.QName("", "allowSubTasks"));
347         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
348         elemField.setNillable(false);
349         typeDesc.addFieldDesc(elemField);
350         elemField = new org.apache.axis.description.ElementDesc();
351         elemField.setFieldName("allowTimeTracking");
352         elemField.setXmlName(new javax.xml.namespace.QName("", "allowTimeTracking"));
353         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
354         elemField.setNillable(false);
355         typeDesc.addFieldDesc(elemField);
356         elemField = new org.apache.axis.description.ElementDesc();
357         elemField.setFieldName("allowUnassignedIssues");
358         elemField.setXmlName(new javax.xml.namespace.QName("", "allowUnassignedIssues"));
359         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
360         elemField.setNillable(false);
361         typeDesc.addFieldDesc(elemField);
362         elemField = new org.apache.axis.description.ElementDesc();
363         elemField.setFieldName("allowVoting");
364         elemField.setXmlName(new javax.xml.namespace.QName("", "allowVoting"));
365         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
366         elemField.setNillable(false);
367         typeDesc.addFieldDesc(elemField);
368         elemField = new org.apache.axis.description.ElementDesc();
369         elemField.setFieldName("allowWatching");
370         elemField.setXmlName(new javax.xml.namespace.QName("", "allowWatching"));
371         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
372         elemField.setNillable(false);
373         typeDesc.addFieldDesc(elemField);
374         elemField = new org.apache.axis.description.ElementDesc();
375         elemField.setFieldName("timeTrackingDaysPerWeek");
376         elemField.setXmlName(new javax.xml.namespace.QName("", "timeTrackingDaysPerWeek"));
377         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
378         elemField.setNillable(false);
379         typeDesc.addFieldDesc(elemField);
380         elemField = new org.apache.axis.description.ElementDesc();
381         elemField.setFieldName("timeTrackingHoursPerDay");
382         elemField.setXmlName(new javax.xml.namespace.QName("", "timeTrackingHoursPerDay"));
383         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
384         elemField.setNillable(false);
385         typeDesc.addFieldDesc(elemField);
386     }
387 
388     /**
389      * Return type metadata object
390      */
391     public static org.apache.axis.description.TypeDesc getTypeDesc() {
392         return typeDesc;
393     }
394 
395     /**
396      * Get Custom Serializer
397      */
398     public static org.apache.axis.encoding.Serializer getSerializer(
399            java.lang.String mechType, 
400            java.lang.Class _javaType,  
401            javax.xml.namespace.QName _xmlType) {
402         return 
403           new  org.apache.axis.encoding.ser.BeanSerializer(
404             _javaType, _xmlType, typeDesc);
405     }
406 
407     /**
408      * Get Custom Deserializer
409      */
410     public static org.apache.axis.encoding.Deserializer getDeserializer(
411            java.lang.String mechType, 
412            java.lang.Class _javaType,  
413            javax.xml.namespace.QName _xmlType) {
414         return 
415           new  org.apache.axis.encoding.ser.BeanDeserializer(
416             _javaType, _xmlType, typeDesc);
417     }
418 
419 }