1   /**
2    * GroupSoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portal.model;
9   
10  public class GroupSoap  implements java.io.Serializable {
11      private boolean active;
12  
13      private long classNameId;
14  
15      private long classPK;
16  
17      private long companyId;
18  
19      private long creatorUserId;
20  
21      private java.lang.String description;
22  
23      private java.lang.String friendlyURL;
24  
25      private long groupId;
26  
27      private long liveGroupId;
28  
29      private java.lang.String name;
30  
31      private long parentGroupId;
32  
33      private long primaryKey;
34  
35      private int type;
36  
37      private java.lang.String typeSettings;
38  
39      public GroupSoap() {
40      }
41  
42      public GroupSoap(
43             boolean active,
44             long classNameId,
45             long classPK,
46             long companyId,
47             long creatorUserId,
48             java.lang.String description,
49             java.lang.String friendlyURL,
50             long groupId,
51             long liveGroupId,
52             java.lang.String name,
53             long parentGroupId,
54             long primaryKey,
55             int type,
56             java.lang.String typeSettings) {
57             this.active = active;
58             this.classNameId = classNameId;
59             this.classPK = classPK;
60             this.companyId = companyId;
61             this.creatorUserId = creatorUserId;
62             this.description = description;
63             this.friendlyURL = friendlyURL;
64             this.groupId = groupId;
65             this.liveGroupId = liveGroupId;
66             this.name = name;
67             this.parentGroupId = parentGroupId;
68             this.primaryKey = primaryKey;
69             this.type = type;
70             this.typeSettings = typeSettings;
71      }
72  
73  
74      /**
75       * Gets the active value for this GroupSoap.
76       * 
77       * @return active
78       */
79      public boolean isActive() {
80          return active;
81      }
82  
83  
84      /**
85       * Sets the active value for this GroupSoap.
86       * 
87       * @param active
88       */
89      public void setActive(boolean active) {
90          this.active = active;
91      }
92  
93  
94      /**
95       * Gets the classNameId value for this GroupSoap.
96       * 
97       * @return classNameId
98       */
99      public long getClassNameId() {
100         return classNameId;
101     }
102 
103 
104     /**
105      * Sets the classNameId value for this GroupSoap.
106      * 
107      * @param classNameId
108      */
109     public void setClassNameId(long classNameId) {
110         this.classNameId = classNameId;
111     }
112 
113 
114     /**
115      * Gets the classPK value for this GroupSoap.
116      * 
117      * @return classPK
118      */
119     public long getClassPK() {
120         return classPK;
121     }
122 
123 
124     /**
125      * Sets the classPK value for this GroupSoap.
126      * 
127      * @param classPK
128      */
129     public void setClassPK(long classPK) {
130         this.classPK = classPK;
131     }
132 
133 
134     /**
135      * Gets the companyId value for this GroupSoap.
136      * 
137      * @return companyId
138      */
139     public long getCompanyId() {
140         return companyId;
141     }
142 
143 
144     /**
145      * Sets the companyId value for this GroupSoap.
146      * 
147      * @param companyId
148      */
149     public void setCompanyId(long companyId) {
150         this.companyId = companyId;
151     }
152 
153 
154     /**
155      * Gets the creatorUserId value for this GroupSoap.
156      * 
157      * @return creatorUserId
158      */
159     public long getCreatorUserId() {
160         return creatorUserId;
161     }
162 
163 
164     /**
165      * Sets the creatorUserId value for this GroupSoap.
166      * 
167      * @param creatorUserId
168      */
169     public void setCreatorUserId(long creatorUserId) {
170         this.creatorUserId = creatorUserId;
171     }
172 
173 
174     /**
175      * Gets the description value for this GroupSoap.
176      * 
177      * @return description
178      */
179     public java.lang.String getDescription() {
180         return description;
181     }
182 
183 
184     /**
185      * Sets the description value for this GroupSoap.
186      * 
187      * @param description
188      */
189     public void setDescription(java.lang.String description) {
190         this.description = description;
191     }
192 
193 
194     /**
195      * Gets the friendlyURL value for this GroupSoap.
196      * 
197      * @return friendlyURL
198      */
199     public java.lang.String getFriendlyURL() {
200         return friendlyURL;
201     }
202 
203 
204     /**
205      * Sets the friendlyURL value for this GroupSoap.
206      * 
207      * @param friendlyURL
208      */
209     public void setFriendlyURL(java.lang.String friendlyURL) {
210         this.friendlyURL = friendlyURL;
211     }
212 
213 
214     /**
215      * Gets the groupId value for this GroupSoap.
216      * 
217      * @return groupId
218      */
219     public long getGroupId() {
220         return groupId;
221     }
222 
223 
224     /**
225      * Sets the groupId value for this GroupSoap.
226      * 
227      * @param groupId
228      */
229     public void setGroupId(long groupId) {
230         this.groupId = groupId;
231     }
232 
233 
234     /**
235      * Gets the liveGroupId value for this GroupSoap.
236      * 
237      * @return liveGroupId
238      */
239     public long getLiveGroupId() {
240         return liveGroupId;
241     }
242 
243 
244     /**
245      * Sets the liveGroupId value for this GroupSoap.
246      * 
247      * @param liveGroupId
248      */
249     public void setLiveGroupId(long liveGroupId) {
250         this.liveGroupId = liveGroupId;
251     }
252 
253 
254     /**
255      * Gets the name value for this GroupSoap.
256      * 
257      * @return name
258      */
259     public java.lang.String getName() {
260         return name;
261     }
262 
263 
264     /**
265      * Sets the name value for this GroupSoap.
266      * 
267      * @param name
268      */
269     public void setName(java.lang.String name) {
270         this.name = name;
271     }
272 
273 
274     /**
275      * Gets the parentGroupId value for this GroupSoap.
276      * 
277      * @return parentGroupId
278      */
279     public long getParentGroupId() {
280         return parentGroupId;
281     }
282 
283 
284     /**
285      * Sets the parentGroupId value for this GroupSoap.
286      * 
287      * @param parentGroupId
288      */
289     public void setParentGroupId(long parentGroupId) {
290         this.parentGroupId = parentGroupId;
291     }
292 
293 
294     /**
295      * Gets the primaryKey value for this GroupSoap.
296      * 
297      * @return primaryKey
298      */
299     public long getPrimaryKey() {
300         return primaryKey;
301     }
302 
303 
304     /**
305      * Sets the primaryKey value for this GroupSoap.
306      * 
307      * @param primaryKey
308      */
309     public void setPrimaryKey(long primaryKey) {
310         this.primaryKey = primaryKey;
311     }
312 
313 
314     /**
315      * Gets the type value for this GroupSoap.
316      * 
317      * @return type
318      */
319     public int getType() {
320         return type;
321     }
322 
323 
324     /**
325      * Sets the type value for this GroupSoap.
326      * 
327      * @param type
328      */
329     public void setType(int type) {
330         this.type = type;
331     }
332 
333 
334     /**
335      * Gets the typeSettings value for this GroupSoap.
336      * 
337      * @return typeSettings
338      */
339     public java.lang.String getTypeSettings() {
340         return typeSettings;
341     }
342 
343 
344     /**
345      * Sets the typeSettings value for this GroupSoap.
346      * 
347      * @param typeSettings
348      */
349     public void setTypeSettings(java.lang.String typeSettings) {
350         this.typeSettings = typeSettings;
351     }
352 
353     private java.lang.Object __equalsCalc = null;
354     public synchronized boolean equals(java.lang.Object obj) {
355         if (!(obj instanceof GroupSoap)) return false;
356         GroupSoap other = (GroupSoap) obj;
357         if (obj == null) return false;
358         if (this == obj) return true;
359         if (__equalsCalc != null) {
360             return (__equalsCalc == obj);
361         }
362         __equalsCalc = obj;
363         boolean _equals;
364         _equals = true && 
365             this.active == other.isActive() &&
366             this.classNameId == other.getClassNameId() &&
367             this.classPK == other.getClassPK() &&
368             this.companyId == other.getCompanyId() &&
369             this.creatorUserId == other.getCreatorUserId() &&
370             ((this.description==null && other.getDescription()==null) || 
371              (this.description!=null &&
372               this.description.equals(other.getDescription()))) &&
373             ((this.friendlyURL==null && other.getFriendlyURL()==null) || 
374              (this.friendlyURL!=null &&
375               this.friendlyURL.equals(other.getFriendlyURL()))) &&
376             this.groupId == other.getGroupId() &&
377             this.liveGroupId == other.getLiveGroupId() &&
378             ((this.name==null && other.getName()==null) || 
379              (this.name!=null &&
380               this.name.equals(other.getName()))) &&
381             this.parentGroupId == other.getParentGroupId() &&
382             this.primaryKey == other.getPrimaryKey() &&
383             this.type == other.getType() &&
384             ((this.typeSettings==null && other.getTypeSettings()==null) || 
385              (this.typeSettings!=null &&
386               this.typeSettings.equals(other.getTypeSettings())));
387         __equalsCalc = null;
388         return _equals;
389     }
390 
391     private boolean __hashCodeCalc = false;
392     public synchronized int hashCode() {
393         if (__hashCodeCalc) {
394             return 0;
395         }
396         __hashCodeCalc = true;
397         int _hashCode = 1;
398         _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
399         _hashCode += new Long(getClassNameId()).hashCode();
400         _hashCode += new Long(getClassPK()).hashCode();
401         _hashCode += new Long(getCompanyId()).hashCode();
402         _hashCode += new Long(getCreatorUserId()).hashCode();
403         if (getDescription() != null) {
404             _hashCode += getDescription().hashCode();
405         }
406         if (getFriendlyURL() != null) {
407             _hashCode += getFriendlyURL().hashCode();
408         }
409         _hashCode += new Long(getGroupId()).hashCode();
410         _hashCode += new Long(getLiveGroupId()).hashCode();
411         if (getName() != null) {
412             _hashCode += getName().hashCode();
413         }
414         _hashCode += new Long(getParentGroupId()).hashCode();
415         _hashCode += new Long(getPrimaryKey()).hashCode();
416         _hashCode += getType();
417         if (getTypeSettings() != null) {
418             _hashCode += getTypeSettings().hashCode();
419         }
420         __hashCodeCalc = false;
421         return _hashCode;
422     }
423 
424     // Type metadata
425     private static org.apache.axis.description.TypeDesc typeDesc =
426         new org.apache.axis.description.TypeDesc(GroupSoap.class, true);
427 
428     static {
429         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "GroupSoap"));
430         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
431         elemField.setFieldName("active");
432         elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
433         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
434         elemField.setNillable(false);
435         typeDesc.addFieldDesc(elemField);
436         elemField = new org.apache.axis.description.ElementDesc();
437         elemField.setFieldName("classNameId");
438         elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
439         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
440         elemField.setNillable(false);
441         typeDesc.addFieldDesc(elemField);
442         elemField = new org.apache.axis.description.ElementDesc();
443         elemField.setFieldName("classPK");
444         elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
445         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
446         elemField.setNillable(false);
447         typeDesc.addFieldDesc(elemField);
448         elemField = new org.apache.axis.description.ElementDesc();
449         elemField.setFieldName("companyId");
450         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
451         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
452         elemField.setNillable(false);
453         typeDesc.addFieldDesc(elemField);
454         elemField = new org.apache.axis.description.ElementDesc();
455         elemField.setFieldName("creatorUserId");
456         elemField.setXmlName(new javax.xml.namespace.QName("", "creatorUserId"));
457         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
458         elemField.setNillable(false);
459         typeDesc.addFieldDesc(elemField);
460         elemField = new org.apache.axis.description.ElementDesc();
461         elemField.setFieldName("description");
462         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
463         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
464         elemField.setNillable(true);
465         typeDesc.addFieldDesc(elemField);
466         elemField = new org.apache.axis.description.ElementDesc();
467         elemField.setFieldName("friendlyURL");
468         elemField.setXmlName(new javax.xml.namespace.QName("", "friendlyURL"));
469         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
470         elemField.setNillable(true);
471         typeDesc.addFieldDesc(elemField);
472         elemField = new org.apache.axis.description.ElementDesc();
473         elemField.setFieldName("groupId");
474         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
475         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
476         elemField.setNillable(false);
477         typeDesc.addFieldDesc(elemField);
478         elemField = new org.apache.axis.description.ElementDesc();
479         elemField.setFieldName("liveGroupId");
480         elemField.setXmlName(new javax.xml.namespace.QName("", "liveGroupId"));
481         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
482         elemField.setNillable(false);
483         typeDesc.addFieldDesc(elemField);
484         elemField = new org.apache.axis.description.ElementDesc();
485         elemField.setFieldName("name");
486         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
487         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
488         elemField.setNillable(true);
489         typeDesc.addFieldDesc(elemField);
490         elemField = new org.apache.axis.description.ElementDesc();
491         elemField.setFieldName("parentGroupId");
492         elemField.setXmlName(new javax.xml.namespace.QName("", "parentGroupId"));
493         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
494         elemField.setNillable(false);
495         typeDesc.addFieldDesc(elemField);
496         elemField = new org.apache.axis.description.ElementDesc();
497         elemField.setFieldName("primaryKey");
498         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
499         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
500         elemField.setNillable(false);
501         typeDesc.addFieldDesc(elemField);
502         elemField = new org.apache.axis.description.ElementDesc();
503         elemField.setFieldName("type");
504         elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
505         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
506         elemField.setNillable(false);
507         typeDesc.addFieldDesc(elemField);
508         elemField = new org.apache.axis.description.ElementDesc();
509         elemField.setFieldName("typeSettings");
510         elemField.setXmlName(new javax.xml.namespace.QName("", "typeSettings"));
511         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
512         elemField.setNillable(true);
513         typeDesc.addFieldDesc(elemField);
514     }
515 
516     /**
517      * Return type metadata object
518      */
519     public static org.apache.axis.description.TypeDesc getTypeDesc() {
520         return typeDesc;
521     }
522 
523     /**
524      * Get Custom Serializer
525      */
526     public static org.apache.axis.encoding.Serializer getSerializer(
527            java.lang.String mechType, 
528            java.lang.Class _javaType,  
529            javax.xml.namespace.QName _xmlType) {
530         return 
531           new  org.apache.axis.encoding.ser.BeanSerializer(
532             _javaType, _xmlType, typeDesc);
533     }
534 
535     /**
536      * Get Custom Deserializer
537      */
538     public static org.apache.axis.encoding.Deserializer getDeserializer(
539            java.lang.String mechType, 
540            java.lang.Class _javaType,  
541            javax.xml.namespace.QName _xmlType) {
542         return 
543           new  org.apache.axis.encoding.ser.BeanDeserializer(
544             _javaType, _xmlType, typeDesc);
545     }
546 
547 }
548