1
7
8 package com.liferay.client.soap.portal.model;
9
10 public class PortletPreferencesIds implements java.io.Serializable {
11 private long companyId;
12
13 private long ownerId;
14
15 private int ownerType;
16
17 private long plid;
18
19 private java.lang.String portletId;
20
21 public PortletPreferencesIds() {
22 }
23
24 public PortletPreferencesIds(
25 long companyId,
26 long ownerId,
27 int ownerType,
28 long plid,
29 java.lang.String portletId) {
30 this.companyId = companyId;
31 this.ownerId = ownerId;
32 this.ownerType = ownerType;
33 this.plid = plid;
34 this.portletId = portletId;
35 }
36
37
38
43 public long getCompanyId() {
44 return companyId;
45 }
46
47
48
53 public void setCompanyId(long companyId) {
54 this.companyId = companyId;
55 }
56
57
58
63 public long getOwnerId() {
64 return ownerId;
65 }
66
67
68
73 public void setOwnerId(long ownerId) {
74 this.ownerId = ownerId;
75 }
76
77
78
83 public int getOwnerType() {
84 return ownerType;
85 }
86
87
88
93 public void setOwnerType(int ownerType) {
94 this.ownerType = ownerType;
95 }
96
97
98
103 public long getPlid() {
104 return plid;
105 }
106
107
108
113 public void setPlid(long plid) {
114 this.plid = plid;
115 }
116
117
118
123 public java.lang.String getPortletId() {
124 return portletId;
125 }
126
127
128
133 public void setPortletId(java.lang.String portletId) {
134 this.portletId = portletId;
135 }
136
137 private java.lang.Object __equalsCalc = null;
138 public synchronized boolean equals(java.lang.Object obj) {
139 if (!(obj instanceof PortletPreferencesIds)) return false;
140 PortletPreferencesIds other = (PortletPreferencesIds) obj;
141 if (obj == null) return false;
142 if (this == obj) return true;
143 if (__equalsCalc != null) {
144 return (__equalsCalc == obj);
145 }
146 __equalsCalc = obj;
147 boolean _equals;
148 _equals = true &&
149 this.companyId == other.getCompanyId() &&
150 this.ownerId == other.getOwnerId() &&
151 this.ownerType == other.getOwnerType() &&
152 this.plid == other.getPlid() &&
153 ((this.portletId==null && other.getPortletId()==null) ||
154 (this.portletId!=null &&
155 this.portletId.equals(other.getPortletId())));
156 __equalsCalc = null;
157 return _equals;
158 }
159
160 private boolean __hashCodeCalc = false;
161 public synchronized int hashCode() {
162 if (__hashCodeCalc) {
163 return 0;
164 }
165 __hashCodeCalc = true;
166 int _hashCode = 1;
167 _hashCode += new Long(getCompanyId()).hashCode();
168 _hashCode += new Long(getOwnerId()).hashCode();
169 _hashCode += getOwnerType();
170 _hashCode += new Long(getPlid()).hashCode();
171 if (getPortletId() != null) {
172 _hashCode += getPortletId().hashCode();
173 }
174 __hashCodeCalc = false;
175 return _hashCode;
176 }
177
178 private static org.apache.axis.description.TypeDesc typeDesc =
180 new org.apache.axis.description.TypeDesc(PortletPreferencesIds.class, true);
181
182 static {
183 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "PortletPreferencesIds"));
184 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
185 elemField.setFieldName("companyId");
186 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
187 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
188 elemField.setNillable(false);
189 typeDesc.addFieldDesc(elemField);
190 elemField = new org.apache.axis.description.ElementDesc();
191 elemField.setFieldName("ownerId");
192 elemField.setXmlName(new javax.xml.namespace.QName("", "ownerId"));
193 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
194 elemField.setNillable(false);
195 typeDesc.addFieldDesc(elemField);
196 elemField = new org.apache.axis.description.ElementDesc();
197 elemField.setFieldName("ownerType");
198 elemField.setXmlName(new javax.xml.namespace.QName("", "ownerType"));
199 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
200 elemField.setNillable(false);
201 typeDesc.addFieldDesc(elemField);
202 elemField = new org.apache.axis.description.ElementDesc();
203 elemField.setFieldName("plid");
204 elemField.setXmlName(new javax.xml.namespace.QName("", "plid"));
205 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
206 elemField.setNillable(false);
207 typeDesc.addFieldDesc(elemField);
208 elemField = new org.apache.axis.description.ElementDesc();
209 elemField.setFieldName("portletId");
210 elemField.setXmlName(new javax.xml.namespace.QName("", "portletId"));
211 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
212 elemField.setNillable(true);
213 typeDesc.addFieldDesc(elemField);
214 }
215
216
219 public static org.apache.axis.description.TypeDesc getTypeDesc() {
220 return typeDesc;
221 }
222
223
226 public static org.apache.axis.encoding.Serializer getSerializer(
227 java.lang.String mechType,
228 java.lang.Class _javaType,
229 javax.xml.namespace.QName _xmlType) {
230 return
231 new org.apache.axis.encoding.ser.BeanSerializer(
232 _javaType, _xmlType, typeDesc);
233 }
234
235
238 public static org.apache.axis.encoding.Deserializer getDeserializer(
239 java.lang.String mechType,
240 java.lang.Class _javaType,
241 javax.xml.namespace.QName _xmlType) {
242 return
243 new org.apache.axis.encoding.ser.BeanDeserializer(
244 _javaType, _xmlType, typeDesc);
245 }
246
247 }
248