1   /**
2    * UserGroupSoap.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 UserGroupSoap  implements java.io.Serializable {
11      private long companyId;
12  
13      private java.lang.String description;
14  
15      private java.lang.String name;
16  
17      private long parentUserGroupId;
18  
19      private long primaryKey;
20  
21      private long userGroupId;
22  
23      public UserGroupSoap() {
24      }
25  
26      public UserGroupSoap(
27             long companyId,
28             java.lang.String description,
29             java.lang.String name,
30             long parentUserGroupId,
31             long primaryKey,
32             long userGroupId) {
33             this.companyId = companyId;
34             this.description = description;
35             this.name = name;
36             this.parentUserGroupId = parentUserGroupId;
37             this.primaryKey = primaryKey;
38             this.userGroupId = userGroupId;
39      }
40  
41  
42      /**
43       * Gets the companyId value for this UserGroupSoap.
44       * 
45       * @return companyId
46       */
47      public long getCompanyId() {
48          return companyId;
49      }
50  
51  
52      /**
53       * Sets the companyId value for this UserGroupSoap.
54       * 
55       * @param companyId
56       */
57      public void setCompanyId(long companyId) {
58          this.companyId = companyId;
59      }
60  
61  
62      /**
63       * Gets the description value for this UserGroupSoap.
64       * 
65       * @return description
66       */
67      public java.lang.String getDescription() {
68          return description;
69      }
70  
71  
72      /**
73       * Sets the description value for this UserGroupSoap.
74       * 
75       * @param description
76       */
77      public void setDescription(java.lang.String description) {
78          this.description = description;
79      }
80  
81  
82      /**
83       * Gets the name value for this UserGroupSoap.
84       * 
85       * @return name
86       */
87      public java.lang.String getName() {
88          return name;
89      }
90  
91  
92      /**
93       * Sets the name value for this UserGroupSoap.
94       * 
95       * @param name
96       */
97      public void setName(java.lang.String name) {
98          this.name = name;
99      }
100 
101 
102     /**
103      * Gets the parentUserGroupId value for this UserGroupSoap.
104      * 
105      * @return parentUserGroupId
106      */
107     public long getParentUserGroupId() {
108         return parentUserGroupId;
109     }
110 
111 
112     /**
113      * Sets the parentUserGroupId value for this UserGroupSoap.
114      * 
115      * @param parentUserGroupId
116      */
117     public void setParentUserGroupId(long parentUserGroupId) {
118         this.parentUserGroupId = parentUserGroupId;
119     }
120 
121 
122     /**
123      * Gets the primaryKey value for this UserGroupSoap.
124      * 
125      * @return primaryKey
126      */
127     public long getPrimaryKey() {
128         return primaryKey;
129     }
130 
131 
132     /**
133      * Sets the primaryKey value for this UserGroupSoap.
134      * 
135      * @param primaryKey
136      */
137     public void setPrimaryKey(long primaryKey) {
138         this.primaryKey = primaryKey;
139     }
140 
141 
142     /**
143      * Gets the userGroupId value for this UserGroupSoap.
144      * 
145      * @return userGroupId
146      */
147     public long getUserGroupId() {
148         return userGroupId;
149     }
150 
151 
152     /**
153      * Sets the userGroupId value for this UserGroupSoap.
154      * 
155      * @param userGroupId
156      */
157     public void setUserGroupId(long userGroupId) {
158         this.userGroupId = userGroupId;
159     }
160 
161     private java.lang.Object __equalsCalc = null;
162     public synchronized boolean equals(java.lang.Object obj) {
163         if (!(obj instanceof UserGroupSoap)) return false;
164         UserGroupSoap other = (UserGroupSoap) obj;
165         if (obj == null) return false;
166         if (this == obj) return true;
167         if (__equalsCalc != null) {
168             return (__equalsCalc == obj);
169         }
170         __equalsCalc = obj;
171         boolean _equals;
172         _equals = true && 
173             this.companyId == other.getCompanyId() &&
174             ((this.description==null && other.getDescription()==null) || 
175              (this.description!=null &&
176               this.description.equals(other.getDescription()))) &&
177             ((this.name==null && other.getName()==null) || 
178              (this.name!=null &&
179               this.name.equals(other.getName()))) &&
180             this.parentUserGroupId == other.getParentUserGroupId() &&
181             this.primaryKey == other.getPrimaryKey() &&
182             this.userGroupId == other.getUserGroupId();
183         __equalsCalc = null;
184         return _equals;
185     }
186 
187     private boolean __hashCodeCalc = false;
188     public synchronized int hashCode() {
189         if (__hashCodeCalc) {
190             return 0;
191         }
192         __hashCodeCalc = true;
193         int _hashCode = 1;
194         _hashCode += new Long(getCompanyId()).hashCode();
195         if (getDescription() != null) {
196             _hashCode += getDescription().hashCode();
197         }
198         if (getName() != null) {
199             _hashCode += getName().hashCode();
200         }
201         _hashCode += new Long(getParentUserGroupId()).hashCode();
202         _hashCode += new Long(getPrimaryKey()).hashCode();
203         _hashCode += new Long(getUserGroupId()).hashCode();
204         __hashCodeCalc = false;
205         return _hashCode;
206     }
207 
208     // Type metadata
209     private static org.apache.axis.description.TypeDesc typeDesc =
210         new org.apache.axis.description.TypeDesc(UserGroupSoap.class, true);
211 
212     static {
213         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "UserGroupSoap"));
214         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
215         elemField.setFieldName("companyId");
216         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
217         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
218         elemField.setNillable(false);
219         typeDesc.addFieldDesc(elemField);
220         elemField = new org.apache.axis.description.ElementDesc();
221         elemField.setFieldName("description");
222         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
223         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
224         elemField.setNillable(true);
225         typeDesc.addFieldDesc(elemField);
226         elemField = new org.apache.axis.description.ElementDesc();
227         elemField.setFieldName("name");
228         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
229         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
230         elemField.setNillable(true);
231         typeDesc.addFieldDesc(elemField);
232         elemField = new org.apache.axis.description.ElementDesc();
233         elemField.setFieldName("parentUserGroupId");
234         elemField.setXmlName(new javax.xml.namespace.QName("", "parentUserGroupId"));
235         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
236         elemField.setNillable(false);
237         typeDesc.addFieldDesc(elemField);
238         elemField = new org.apache.axis.description.ElementDesc();
239         elemField.setFieldName("primaryKey");
240         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
241         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
242         elemField.setNillable(false);
243         typeDesc.addFieldDesc(elemField);
244         elemField = new org.apache.axis.description.ElementDesc();
245         elemField.setFieldName("userGroupId");
246         elemField.setXmlName(new javax.xml.namespace.QName("", "userGroupId"));
247         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
248         elemField.setNillable(false);
249         typeDesc.addFieldDesc(elemField);
250     }
251 
252     /**
253      * Return type metadata object
254      */
255     public static org.apache.axis.description.TypeDesc getTypeDesc() {
256         return typeDesc;
257     }
258 
259     /**
260      * Get Custom Serializer
261      */
262     public static org.apache.axis.encoding.Serializer getSerializer(
263            java.lang.String mechType, 
264            java.lang.Class _javaType,  
265            javax.xml.namespace.QName _xmlType) {
266         return 
267           new  org.apache.axis.encoding.ser.BeanSerializer(
268             _javaType, _xmlType, typeDesc);
269     }
270 
271     /**
272      * Get Custom Deserializer
273      */
274     public static org.apache.axis.encoding.Deserializer getDeserializer(
275            java.lang.String mechType, 
276            java.lang.Class _javaType,  
277            javax.xml.namespace.QName _xmlType) {
278         return 
279           new  org.apache.axis.encoding.ser.BeanDeserializer(
280             _javaType, _xmlType, typeDesc);
281     }
282 
283 }
284