1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class PortletSoap implements java.io.Serializable {
11 private boolean active;
12
13 private long companyId;
14
15 private long id;
16
17 private java.lang.String portletId;
18
19 private long primaryKey;
20
21 private java.lang.String roles;
22
23 public PortletSoap() {
24 }
25
26 public PortletSoap(
27 boolean active,
28 long companyId,
29 long id,
30 java.lang.String portletId,
31 long primaryKey,
32 java.lang.String roles) {
33 this.active = active;
34 this.companyId = companyId;
35 this.id = id;
36 this.portletId = portletId;
37 this.primaryKey = primaryKey;
38 this.roles = roles;
39 }
40
41
42
47 public boolean isActive() {
48 return active;
49 }
50
51
52
57 public void setActive(boolean active) {
58 this.active = active;
59 }
60
61
62
67 public long getCompanyId() {
68 return companyId;
69 }
70
71
72
77 public void setCompanyId(long companyId) {
78 this.companyId = companyId;
79 }
80
81
82
87 public long getId() {
88 return id;
89 }
90
91
92
97 public void setId(long id) {
98 this.id = id;
99 }
100
101
102
107 public java.lang.String getPortletId() {
108 return portletId;
109 }
110
111
112
117 public void setPortletId(java.lang.String portletId) {
118 this.portletId = portletId;
119 }
120
121
122
127 public long getPrimaryKey() {
128 return primaryKey;
129 }
130
131
132
137 public void setPrimaryKey(long primaryKey) {
138 this.primaryKey = primaryKey;
139 }
140
141
142
147 public java.lang.String getRoles() {
148 return roles;
149 }
150
151
152
157 public void setRoles(java.lang.String roles) {
158 this.roles = roles;
159 }
160
161 private java.lang.Object __equalsCalc = null;
162 public synchronized boolean equals(java.lang.Object obj) {
163 if (!(obj instanceof PortletSoap)) return false;
164 PortletSoap other = (PortletSoap) 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.active == other.isActive() &&
174 this.companyId == other.getCompanyId() &&
175 this.id == other.getId() &&
176 ((this.portletId==null && other.getPortletId()==null) ||
177 (this.portletId!=null &&
178 this.portletId.equals(other.getPortletId()))) &&
179 this.primaryKey == other.getPrimaryKey() &&
180 ((this.roles==null && other.getRoles()==null) ||
181 (this.roles!=null &&
182 this.roles.equals(other.getRoles())));
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 += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
195 _hashCode += new Long(getCompanyId()).hashCode();
196 _hashCode += new Long(getId()).hashCode();
197 if (getPortletId() != null) {
198 _hashCode += getPortletId().hashCode();
199 }
200 _hashCode += new Long(getPrimaryKey()).hashCode();
201 if (getRoles() != null) {
202 _hashCode += getRoles().hashCode();
203 }
204 __hashCodeCalc = false;
205 return _hashCode;
206 }
207
208 private static org.apache.axis.description.TypeDesc typeDesc =
210 new org.apache.axis.description.TypeDesc(PortletSoap.class, true);
211
212 static {
213 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "PortletSoap"));
214 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
215 elemField.setFieldName("active");
216 elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
217 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
218 elemField.setNillable(false);
219 typeDesc.addFieldDesc(elemField);
220 elemField = new org.apache.axis.description.ElementDesc();
221 elemField.setFieldName("companyId");
222 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
223 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
224 elemField.setNillable(false);
225 typeDesc.addFieldDesc(elemField);
226 elemField = new org.apache.axis.description.ElementDesc();
227 elemField.setFieldName("id");
228 elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
229 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
230 elemField.setNillable(false);
231 typeDesc.addFieldDesc(elemField);
232 elemField = new org.apache.axis.description.ElementDesc();
233 elemField.setFieldName("portletId");
234 elemField.setXmlName(new javax.xml.namespace.QName("", "portletId"));
235 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
236 elemField.setNillable(true);
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("roles");
246 elemField.setXmlName(new javax.xml.namespace.QName("", "roles"));
247 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
248 elemField.setNillable(true);
249 typeDesc.addFieldDesc(elemField);
250 }
251
252
255 public static org.apache.axis.description.TypeDesc getTypeDesc() {
256 return typeDesc;
257 }
258
259
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
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