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