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<Contact> models) {
85          List<ContactSoap> soapModels = new ArrayList<ContactSoap>(models.size());
86  
87          for (Contact model : models) {
88              soapModels.add(toSoapModel(model));
89          }
90  
91          return soapModels.toArray(new ContactSoap[soapModels.size()]);
92      }
93  
94      public ContactSoap() {
95      }
96  
97      public long getPrimaryKey() {
98          return _contactId;
99      }
100 
101     public void setPrimaryKey(long pk) {
102         setContactId(pk);
103     }
104 
105     public long getContactId() {
106         return _contactId;
107     }
108 
109     public void setContactId(long contactId) {
110         _contactId = contactId;
111     }
112 
113     public long getCompanyId() {
114         return _companyId;
115     }
116 
117     public void setCompanyId(long companyId) {
118         _companyId = companyId;
119     }
120 
121     public long getUserId() {
122         return _userId;
123     }
124 
125     public void setUserId(long userId) {
126         _userId = userId;
127     }
128 
129     public String getUserName() {
130         return _userName;
131     }
132 
133     public void setUserName(String userName) {
134         _userName = userName;
135     }
136 
137     public Date getCreateDate() {
138         return _createDate;
139     }
140 
141     public void setCreateDate(Date createDate) {
142         _createDate = createDate;
143     }
144 
145     public Date getModifiedDate() {
146         return _modifiedDate;
147     }
148 
149     public void setModifiedDate(Date modifiedDate) {
150         _modifiedDate = modifiedDate;
151     }
152 
153     public long getAccountId() {
154         return _accountId;
155     }
156 
157     public void setAccountId(long accountId) {
158         _accountId = accountId;
159     }
160 
161     public long getParentContactId() {
162         return _parentContactId;
163     }
164 
165     public void setParentContactId(long parentContactId) {
166         _parentContactId = parentContactId;
167     }
168 
169     public String getFirstName() {
170         return _firstName;
171     }
172 
173     public void setFirstName(String firstName) {
174         _firstName = firstName;
175     }
176 
177     public String getMiddleName() {
178         return _middleName;
179     }
180 
181     public void setMiddleName(String middleName) {
182         _middleName = middleName;
183     }
184 
185     public String getLastName() {
186         return _lastName;
187     }
188 
189     public void setLastName(String lastName) {
190         _lastName = lastName;
191     }
192 
193     public int getPrefixId() {
194         return _prefixId;
195     }
196 
197     public void setPrefixId(int prefixId) {
198         _prefixId = prefixId;
199     }
200 
201     public int getSuffixId() {
202         return _suffixId;
203     }
204 
205     public void setSuffixId(int suffixId) {
206         _suffixId = suffixId;
207     }
208 
209     public boolean getMale() {
210         return _male;
211     }
212 
213     public boolean isMale() {
214         return _male;
215     }
216 
217     public void setMale(boolean male) {
218         _male = male;
219     }
220 
221     public Date getBirthday() {
222         return _birthday;
223     }
224 
225     public void setBirthday(Date birthday) {
226         _birthday = birthday;
227     }
228 
229     public String getSmsSn() {
230         return _smsSn;
231     }
232 
233     public void setSmsSn(String smsSn) {
234         _smsSn = smsSn;
235     }
236 
237     public String getAimSn() {
238         return _aimSn;
239     }
240 
241     public void setAimSn(String aimSn) {
242         _aimSn = aimSn;
243     }
244 
245     public String getIcqSn() {
246         return _icqSn;
247     }
248 
249     public void setIcqSn(String icqSn) {
250         _icqSn = icqSn;
251     }
252 
253     public String getJabberSn() {
254         return _jabberSn;
255     }
256 
257     public void setJabberSn(String jabberSn) {
258         _jabberSn = jabberSn;
259     }
260 
261     public String getMsnSn() {
262         return _msnSn;
263     }
264 
265     public void setMsnSn(String msnSn) {
266         _msnSn = msnSn;
267     }
268 
269     public String getSkypeSn() {
270         return _skypeSn;
271     }
272 
273     public void setSkypeSn(String skypeSn) {
274         _skypeSn = skypeSn;
275     }
276 
277     public String getYmSn() {
278         return _ymSn;
279     }
280 
281     public void setYmSn(String ymSn) {
282         _ymSn = ymSn;
283     }
284 
285     public String getEmployeeStatusId() {
286         return _employeeStatusId;
287     }
288 
289     public void setEmployeeStatusId(String employeeStatusId) {
290         _employeeStatusId = employeeStatusId;
291     }
292 
293     public String getEmployeeNumber() {
294         return _employeeNumber;
295     }
296 
297     public void setEmployeeNumber(String employeeNumber) {
298         _employeeNumber = employeeNumber;
299     }
300 
301     public String getJobTitle() {
302         return _jobTitle;
303     }
304 
305     public void setJobTitle(String jobTitle) {
306         _jobTitle = jobTitle;
307     }
308 
309     public String getJobClass() {
310         return _jobClass;
311     }
312 
313     public void setJobClass(String jobClass) {
314         _jobClass = jobClass;
315     }
316 
317     public String getHoursOfOperation() {
318         return _hoursOfOperation;
319     }
320 
321     public void setHoursOfOperation(String hoursOfOperation) {
322         _hoursOfOperation = hoursOfOperation;
323     }
324 
325     private long _contactId;
326     private long _companyId;
327     private long _userId;
328     private String _userName;
329     private Date _createDate;
330     private Date _modifiedDate;
331     private long _accountId;
332     private long _parentContactId;
333     private String _firstName;
334     private String _middleName;
335     private String _lastName;
336     private int _prefixId;
337     private int _suffixId;
338     private boolean _male;
339     private Date _birthday;
340     private String _smsSn;
341     private String _aimSn;
342     private String _icqSn;
343     private String _jabberSn;
344     private String _msnSn;
345     private String _skypeSn;
346     private String _ymSn;
347     private String _employeeStatusId;
348     private String _employeeNumber;
349     private String _jobTitle;
350     private String _jobClass;
351     private String _hoursOfOperation;
352 }