1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class PluginSettingSoap implements java.io.Serializable {
11 private boolean active;
12
13 private long companyId;
14
15 private java.lang.String pluginId;
16
17 private long pluginSettingId;
18
19 private java.lang.String pluginType;
20
21 private long primaryKey;
22
23 private java.lang.String roles;
24
25 public PluginSettingSoap() {
26 }
27
28 public PluginSettingSoap(
29 boolean active,
30 long companyId,
31 java.lang.String pluginId,
32 long pluginSettingId,
33 java.lang.String pluginType,
34 long primaryKey,
35 java.lang.String roles) {
36 this.active = active;
37 this.companyId = companyId;
38 this.pluginId = pluginId;
39 this.pluginSettingId = pluginSettingId;
40 this.pluginType = pluginType;
41 this.primaryKey = primaryKey;
42 this.roles = roles;
43 }
44
45
46
51 public boolean isActive() {
52 return active;
53 }
54
55
56
61 public void setActive(boolean active) {
62 this.active = active;
63 }
64
65
66
71 public long getCompanyId() {
72 return companyId;
73 }
74
75
76
81 public void setCompanyId(long companyId) {
82 this.companyId = companyId;
83 }
84
85
86
91 public java.lang.String getPluginId() {
92 return pluginId;
93 }
94
95
96
101 public void setPluginId(java.lang.String pluginId) {
102 this.pluginId = pluginId;
103 }
104
105
106
111 public long getPluginSettingId() {
112 return pluginSettingId;
113 }
114
115
116
121 public void setPluginSettingId(long pluginSettingId) {
122 this.pluginSettingId = pluginSettingId;
123 }
124
125
126
131 public java.lang.String getPluginType() {
132 return pluginType;
133 }
134
135
136
141 public void setPluginType(java.lang.String pluginType) {
142 this.pluginType = pluginType;
143 }
144
145
146
151 public long getPrimaryKey() {
152 return primaryKey;
153 }
154
155
156
161 public void setPrimaryKey(long primaryKey) {
162 this.primaryKey = primaryKey;
163 }
164
165
166
171 public java.lang.String getRoles() {
172 return roles;
173 }
174
175
176
181 public void setRoles(java.lang.String roles) {
182 this.roles = roles;
183 }
184
185 private java.lang.Object __equalsCalc = null;
186 public synchronized boolean equals(java.lang.Object obj) {
187 if (!(obj instanceof PluginSettingSoap)) return false;
188 PluginSettingSoap other = (PluginSettingSoap) obj;
189 if (obj == null) return false;
190 if (this == obj) return true;
191 if (__equalsCalc != null) {
192 return (__equalsCalc == obj);
193 }
194 __equalsCalc = obj;
195 boolean _equals;
196 _equals = true &&
197 this.active == other.isActive() &&
198 this.companyId == other.getCompanyId() &&
199 ((this.pluginId==null && other.getPluginId()==null) ||
200 (this.pluginId!=null &&
201 this.pluginId.equals(other.getPluginId()))) &&
202 this.pluginSettingId == other.getPluginSettingId() &&
203 ((this.pluginType==null && other.getPluginType()==null) ||
204 (this.pluginType!=null &&
205 this.pluginType.equals(other.getPluginType()))) &&
206 this.primaryKey == other.getPrimaryKey() &&
207 ((this.roles==null && other.getRoles()==null) ||
208 (this.roles!=null &&
209 this.roles.equals(other.getRoles())));
210 __equalsCalc = null;
211 return _equals;
212 }
213
214 private boolean __hashCodeCalc = false;
215 public synchronized int hashCode() {
216 if (__hashCodeCalc) {
217 return 0;
218 }
219 __hashCodeCalc = true;
220 int _hashCode = 1;
221 _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
222 _hashCode += new Long(getCompanyId()).hashCode();
223 if (getPluginId() != null) {
224 _hashCode += getPluginId().hashCode();
225 }
226 _hashCode += new Long(getPluginSettingId()).hashCode();
227 if (getPluginType() != null) {
228 _hashCode += getPluginType().hashCode();
229 }
230 _hashCode += new Long(getPrimaryKey()).hashCode();
231 if (getRoles() != null) {
232 _hashCode += getRoles().hashCode();
233 }
234 __hashCodeCalc = false;
235 return _hashCode;
236 }
237
238 private static org.apache.axis.description.TypeDesc typeDesc =
240 new org.apache.axis.description.TypeDesc(PluginSettingSoap.class, true);
241
242 static {
243 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "PluginSettingSoap"));
244 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
245 elemField.setFieldName("active");
246 elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
247 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
248 elemField.setNillable(false);
249 typeDesc.addFieldDesc(elemField);
250 elemField = new org.apache.axis.description.ElementDesc();
251 elemField.setFieldName("companyId");
252 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
253 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
254 elemField.setNillable(false);
255 typeDesc.addFieldDesc(elemField);
256 elemField = new org.apache.axis.description.ElementDesc();
257 elemField.setFieldName("pluginId");
258 elemField.setXmlName(new javax.xml.namespace.QName("", "pluginId"));
259 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
260 elemField.setNillable(true);
261 typeDesc.addFieldDesc(elemField);
262 elemField = new org.apache.axis.description.ElementDesc();
263 elemField.setFieldName("pluginSettingId");
264 elemField.setXmlName(new javax.xml.namespace.QName("", "pluginSettingId"));
265 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
266 elemField.setNillable(false);
267 typeDesc.addFieldDesc(elemField);
268 elemField = new org.apache.axis.description.ElementDesc();
269 elemField.setFieldName("pluginType");
270 elemField.setXmlName(new javax.xml.namespace.QName("", "pluginType"));
271 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
272 elemField.setNillable(true);
273 typeDesc.addFieldDesc(elemField);
274 elemField = new org.apache.axis.description.ElementDesc();
275 elemField.setFieldName("primaryKey");
276 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
277 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
278 elemField.setNillable(false);
279 typeDesc.addFieldDesc(elemField);
280 elemField = new org.apache.axis.description.ElementDesc();
281 elemField.setFieldName("roles");
282 elemField.setXmlName(new javax.xml.namespace.QName("", "roles"));
283 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
284 elemField.setNillable(true);
285 typeDesc.addFieldDesc(elemField);
286 }
287
288
291 public static org.apache.axis.description.TypeDesc getTypeDesc() {
292 return typeDesc;
293 }
294
295
298 public static org.apache.axis.encoding.Serializer getSerializer(
299 java.lang.String mechType,
300 java.lang.Class _javaType,
301 javax.xml.namespace.QName _xmlType) {
302 return
303 new org.apache.axis.encoding.ser.BeanSerializer(
304 _javaType, _xmlType, typeDesc);
305 }
306
307
310 public static org.apache.axis.encoding.Deserializer getDeserializer(
311 java.lang.String mechType,
312 java.lang.Class _javaType,
313 javax.xml.namespace.QName _xmlType) {
314 return
315 new org.apache.axis.encoding.ser.BeanDeserializer(
316 _javaType, _xmlType, typeDesc);
317 }
318
319 }
320