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