1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="ContactSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portal.service.http.ContactServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portal.service.http.ContactServiceSoap
47   *
48   */
49  public class ContactSoap implements Serializable {
50      public static ContactSoap toSoapModel(Contact model) {
51          ContactSoap soapModel = new ContactSoap();
52  
53          soapModel.setContactId(model.getContactId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setAccountId(model.getAccountId());
60          soapModel.setParentContactId(model.getParentContactId());
61          soapModel.setFirstName(model.getFirstName());
62          soapModel.setMiddleName(model.getMiddleName());
63          soapModel.setLastName(model.getLastName());
64          soapModel.setPrefixId(model.getPrefixId());
65          soapModel.setSuffixId(model.getSuffixId());
66          soapModel.setMale(model.getMale());
67          soapModel.setBirthday(model.getBirthday());
68          soapModel.setSmsSn(model.getSmsSn());
69          soapModel.setAimSn(model.getAimSn());
70          soapModel.setIcqSn(model.getIcqSn());
71          soapModel.setJabberSn(model.getJabberSn());
72          soapModel.setMsnSn(model.getMsnSn());
73          soapModel.setSkypeSn(model.getSkypeSn());
74          soapModel.setYmSn(model.getYmSn());
75          soapModel.setEmployeeStatusId(model.getEmployeeStatusId());
76          soapModel.setEmployeeNumber(model.getEmployeeNumber());
77          soapModel.setJobTitle(model.getJobTitle());
78          soapModel.setJobClass(model.getJobClass());
79          soapModel.setHoursOfOperation(model.getHoursOfOperation());
80  
81          return soapModel;
82      }
83  
84      public static ContactSoap[] toSoapModels(List models) {
85          List soapModels = new ArrayList(models.size());
86  
87          for (int i = 0; i < models.size(); i++) {
88              Contact model = (Contact)models.get(i);
89  
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return (ContactSoap[])soapModels.toArray(new ContactSoap[0]);
94      }
95  
96      public ContactSoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _contactId;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setContactId(pk);
105     }
106 
107     public long getContactId() {
108         return _contactId;
109     }
110 
111     public void setContactId(long contactId) {
112         _contactId = contactId;
113     }
114 
115     public long getCompanyId() {
116         return _companyId;
117     }
118 
119     public void setCompanyId(long companyId) {
120         _companyId = companyId;
121     }
122 
123     public long getUserId() {
124         return _userId;
125     }
126 
127     public void setUserId(long userId) {
128         _userId = userId;
129     }
130 
131     public String getUserName() {
132         return _userName;
133     }
134 
135     public void setUserName(String userName) {
136         _userName = userName;
137     }
138 
139     public Date getCreateDate() {
140         return _createDate;
141     }
142 
143     public void setCreateDate(Date createDate) {
144         _createDate = createDate;
145     }
146 
147     public Date getModifiedDate() {
148         return _modifiedDate;
149     }
150 
151     public void setModifiedDate(Date modifiedDate) {
152         _modifiedDate = modifiedDate;
153     }
154 
155     public long getAccountId() {
156         return _accountId;
157     }
158 
159     public void setAccountId(long accountId) {
160         _accountId = accountId;
161     }
162 
163     public long getParentContactId() {
164         return _parentContactId;
165     }
166 
167     public void setParentContactId(long parentContactId) {
168         _parentContactId = parentContactId;
169     }
170 
171     public String getFirstName() {
172         return _firstName;
173     }
174 
175     public void setFirstName(String firstName) {
176         _firstName = firstName;
177     }
178 
179     public String getMiddleName() {
180         return _middleName;
181     }
182 
183     public void setMiddleName(String middleName) {
184         _middleName = middleName;
185     }
186 
187     public String getLastName() {
188         return _lastName;
189     }
190 
191     public void setLastName(String lastName) {
192         _lastName = lastName;
193     }
194 
195     public int getPrefixId() {
196         return _prefixId;
197     }
198 
199     public void setPrefixId(int prefixId) {
200         _prefixId = prefixId;
201     }
202 
203     public int getSuffixId() {
204         return _suffixId;
205     }
206 
207     public void setSuffixId(int suffixId) {
208         _suffixId = suffixId;
209     }
210 
211     public boolean getMale() {
212         return _male;
213     }
214 
215     public boolean isMale() {
216         return _male;
217     }
218 
219     public void setMale(boolean male) {
220         _male = male;
221     }
222 
223     public Date getBirthday() {
224         return _birthday;
225     }
226 
227     public void setBirthday(Date birthday) {
228         _birthday = birthday;
229     }
230 
231     public String getSmsSn() {
232         return _smsSn;
233     }
234 
235     public void setSmsSn(String smsSn) {
236         _smsSn = smsSn;
237     }
238 
239     public String getAimSn() {
240         return _aimSn;
241     }
242 
243     public void setAimSn(String aimSn) {
244         _aimSn = aimSn;
245     }
246 
247     public String getIcqSn() {
248         return _icqSn;
249     }
250 
251     public void setIcqSn(String icqSn) {
252         _icqSn = icqSn;
253     }
254 
255     public String getJabberSn() {
256         return _jabberSn;
257     }
258 
259     public void setJabberSn(String jabberSn) {
260         _jabberSn = jabberSn;
261     }
262 
263     public String getMsnSn() {
264         return _msnSn;
265     }
266 
267     public void setMsnSn(String msnSn) {
268         _msnSn = msnSn;
269     }
270 
271     public String getSkypeSn() {
272         return _skypeSn;
273     }
274 
275     public void setSkypeSn(String skypeSn) {
276         _skypeSn = skypeSn;
277     }
278 
279     public String getYmSn() {
280         return _ymSn;
281     }
282 
283     public void setYmSn(String ymSn) {
284         _ymSn = ymSn;
285     }
286 
287     public String getEmployeeStatusId() {
288         return _employeeStatusId;
289     }
290 
291     public void setEmployeeStatusId(String employeeStatusId) {
292         _employeeStatusId = employeeStatusId;
293     }
294 
295     public String getEmployeeNumber() {
296         return _employeeNumber;
297     }
298 
299     public void setEmployeeNumber(String employeeNumber) {
300         _employeeNumber = employeeNumber;
301     }
302 
303     public String getJobTitle() {
304         return _jobTitle;
305     }
306 
307     public void setJobTitle(String jobTitle) {
308         _jobTitle = jobTitle;
309     }
310 
311     public String getJobClass() {
312         return _jobClass;
313     }
314 
315     public void setJobClass(String jobClass) {
316         _jobClass = jobClass;
317     }
318 
319     public String getHoursOfOperation() {
320         return _hoursOfOperation;
321     }
322 
323     public void setHoursOfOperation(String hoursOfOperation) {
324         _hoursOfOperation = hoursOfOperation;
325     }
326 
327     private long _contactId;
328     private long _companyId;
329     private long _userId;
330     private String _userName;
331     private Date _createDate;
332     private Date _modifiedDate;
333     private long _accountId;
334     private long _parentContactId;
335     private String _firstName;
336     private String _middleName;
337     private String _lastName;
338     private int _prefixId;
339     private int _suffixId;
340     private boolean _male;
341     private Date _birthday;
342     private String _smsSn;
343     private String _aimSn;
344     private String _icqSn;
345     private String _jabberSn;
346     private String _msnSn;
347     private String _skypeSn;
348     private String _ymSn;
349     private String _employeeStatusId;
350     private String _employeeNumber;
351     private String _jobTitle;
352     private String _jobClass;
353     private String _hoursOfOperation;
354 }