001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.ContactServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.ContactServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class ContactSoap implements Serializable {
034            public static ContactSoap toSoapModel(Contact model) {
035                    ContactSoap soapModel = new ContactSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setContactId(model.getContactId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setClassNameId(model.getClassNameId());
045                    soapModel.setClassPK(model.getClassPK());
046                    soapModel.setAccountId(model.getAccountId());
047                    soapModel.setParentContactId(model.getParentContactId());
048                    soapModel.setEmailAddress(model.getEmailAddress());
049                    soapModel.setFirstName(model.getFirstName());
050                    soapModel.setMiddleName(model.getMiddleName());
051                    soapModel.setLastName(model.getLastName());
052                    soapModel.setPrefixId(model.getPrefixId());
053                    soapModel.setSuffixId(model.getSuffixId());
054                    soapModel.setMale(model.getMale());
055                    soapModel.setBirthday(model.getBirthday());
056                    soapModel.setSmsSn(model.getSmsSn());
057                    soapModel.setFacebookSn(model.getFacebookSn());
058                    soapModel.setJabberSn(model.getJabberSn());
059                    soapModel.setSkypeSn(model.getSkypeSn());
060                    soapModel.setTwitterSn(model.getTwitterSn());
061                    soapModel.setEmployeeStatusId(model.getEmployeeStatusId());
062                    soapModel.setEmployeeNumber(model.getEmployeeNumber());
063                    soapModel.setJobTitle(model.getJobTitle());
064                    soapModel.setJobClass(model.getJobClass());
065                    soapModel.setHoursOfOperation(model.getHoursOfOperation());
066    
067                    return soapModel;
068            }
069    
070            public static ContactSoap[] toSoapModels(Contact[] models) {
071                    ContactSoap[] soapModels = new ContactSoap[models.length];
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModel(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static ContactSoap[][] toSoapModels(Contact[][] models) {
081                    ContactSoap[][] soapModels = null;
082    
083                    if (models.length > 0) {
084                            soapModels = new ContactSoap[models.length][models[0].length];
085                    }
086                    else {
087                            soapModels = new ContactSoap[0][0];
088                    }
089    
090                    for (int i = 0; i < models.length; i++) {
091                            soapModels[i] = toSoapModels(models[i]);
092                    }
093    
094                    return soapModels;
095            }
096    
097            public static ContactSoap[] toSoapModels(List<Contact> models) {
098                    List<ContactSoap> soapModels = new ArrayList<ContactSoap>(models.size());
099    
100                    for (Contact model : models) {
101                            soapModels.add(toSoapModel(model));
102                    }
103    
104                    return soapModels.toArray(new ContactSoap[soapModels.size()]);
105            }
106    
107            public ContactSoap() {
108            }
109    
110            public long getPrimaryKey() {
111                    return _contactId;
112            }
113    
114            public void setPrimaryKey(long pk) {
115                    setContactId(pk);
116            }
117    
118            public long getMvccVersion() {
119                    return _mvccVersion;
120            }
121    
122            public void setMvccVersion(long mvccVersion) {
123                    _mvccVersion = mvccVersion;
124            }
125    
126            public long getContactId() {
127                    return _contactId;
128            }
129    
130            public void setContactId(long contactId) {
131                    _contactId = contactId;
132            }
133    
134            public long getCompanyId() {
135                    return _companyId;
136            }
137    
138            public void setCompanyId(long companyId) {
139                    _companyId = companyId;
140            }
141    
142            public long getUserId() {
143                    return _userId;
144            }
145    
146            public void setUserId(long userId) {
147                    _userId = userId;
148            }
149    
150            public String getUserName() {
151                    return _userName;
152            }
153    
154            public void setUserName(String userName) {
155                    _userName = userName;
156            }
157    
158            public Date getCreateDate() {
159                    return _createDate;
160            }
161    
162            public void setCreateDate(Date createDate) {
163                    _createDate = createDate;
164            }
165    
166            public Date getModifiedDate() {
167                    return _modifiedDate;
168            }
169    
170            public void setModifiedDate(Date modifiedDate) {
171                    _modifiedDate = modifiedDate;
172            }
173    
174            public long getClassNameId() {
175                    return _classNameId;
176            }
177    
178            public void setClassNameId(long classNameId) {
179                    _classNameId = classNameId;
180            }
181    
182            public long getClassPK() {
183                    return _classPK;
184            }
185    
186            public void setClassPK(long classPK) {
187                    _classPK = classPK;
188            }
189    
190            public long getAccountId() {
191                    return _accountId;
192            }
193    
194            public void setAccountId(long accountId) {
195                    _accountId = accountId;
196            }
197    
198            public long getParentContactId() {
199                    return _parentContactId;
200            }
201    
202            public void setParentContactId(long parentContactId) {
203                    _parentContactId = parentContactId;
204            }
205    
206            public String getEmailAddress() {
207                    return _emailAddress;
208            }
209    
210            public void setEmailAddress(String emailAddress) {
211                    _emailAddress = emailAddress;
212            }
213    
214            public String getFirstName() {
215                    return _firstName;
216            }
217    
218            public void setFirstName(String firstName) {
219                    _firstName = firstName;
220            }
221    
222            public String getMiddleName() {
223                    return _middleName;
224            }
225    
226            public void setMiddleName(String middleName) {
227                    _middleName = middleName;
228            }
229    
230            public String getLastName() {
231                    return _lastName;
232            }
233    
234            public void setLastName(String lastName) {
235                    _lastName = lastName;
236            }
237    
238            public long getPrefixId() {
239                    return _prefixId;
240            }
241    
242            public void setPrefixId(long prefixId) {
243                    _prefixId = prefixId;
244            }
245    
246            public long getSuffixId() {
247                    return _suffixId;
248            }
249    
250            public void setSuffixId(long suffixId) {
251                    _suffixId = suffixId;
252            }
253    
254            public boolean getMale() {
255                    return _male;
256            }
257    
258            public boolean isMale() {
259                    return _male;
260            }
261    
262            public void setMale(boolean male) {
263                    _male = male;
264            }
265    
266            public Date getBirthday() {
267                    return _birthday;
268            }
269    
270            public void setBirthday(Date birthday) {
271                    _birthday = birthday;
272            }
273    
274            public String getSmsSn() {
275                    return _smsSn;
276            }
277    
278            public void setSmsSn(String smsSn) {
279                    _smsSn = smsSn;
280            }
281    
282            public String getFacebookSn() {
283                    return _facebookSn;
284            }
285    
286            public void setFacebookSn(String facebookSn) {
287                    _facebookSn = facebookSn;
288            }
289    
290            public String getJabberSn() {
291                    return _jabberSn;
292            }
293    
294            public void setJabberSn(String jabberSn) {
295                    _jabberSn = jabberSn;
296            }
297    
298            public String getSkypeSn() {
299                    return _skypeSn;
300            }
301    
302            public void setSkypeSn(String skypeSn) {
303                    _skypeSn = skypeSn;
304            }
305    
306            public String getTwitterSn() {
307                    return _twitterSn;
308            }
309    
310            public void setTwitterSn(String twitterSn) {
311                    _twitterSn = twitterSn;
312            }
313    
314            public String getEmployeeStatusId() {
315                    return _employeeStatusId;
316            }
317    
318            public void setEmployeeStatusId(String employeeStatusId) {
319                    _employeeStatusId = employeeStatusId;
320            }
321    
322            public String getEmployeeNumber() {
323                    return _employeeNumber;
324            }
325    
326            public void setEmployeeNumber(String employeeNumber) {
327                    _employeeNumber = employeeNumber;
328            }
329    
330            public String getJobTitle() {
331                    return _jobTitle;
332            }
333    
334            public void setJobTitle(String jobTitle) {
335                    _jobTitle = jobTitle;
336            }
337    
338            public String getJobClass() {
339                    return _jobClass;
340            }
341    
342            public void setJobClass(String jobClass) {
343                    _jobClass = jobClass;
344            }
345    
346            public String getHoursOfOperation() {
347                    return _hoursOfOperation;
348            }
349    
350            public void setHoursOfOperation(String hoursOfOperation) {
351                    _hoursOfOperation = hoursOfOperation;
352            }
353    
354            private long _mvccVersion;
355            private long _contactId;
356            private long _companyId;
357            private long _userId;
358            private String _userName;
359            private Date _createDate;
360            private Date _modifiedDate;
361            private long _classNameId;
362            private long _classPK;
363            private long _accountId;
364            private long _parentContactId;
365            private String _emailAddress;
366            private String _firstName;
367            private String _middleName;
368            private String _lastName;
369            private long _prefixId;
370            private long _suffixId;
371            private boolean _male;
372            private Date _birthday;
373            private String _smsSn;
374            private String _facebookSn;
375            private String _jabberSn;
376            private String _skypeSn;
377            private String _twitterSn;
378            private String _employeeStatusId;
379            private String _employeeNumber;
380            private String _jobTitle;
381            private String _jobClass;
382            private String _hoursOfOperation;
383    }