001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="ContactSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.ContactServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.ContactServiceSoap
045: *
046: */
047: public class ContactSoap implements Serializable {
048: public static ContactSoap toSoapModel(Contact model) {
049: ContactSoap soapModel = new ContactSoap();
050:
051: soapModel.setContactId(model.getContactId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setUserName(model.getUserName());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setAccountId(model.getAccountId());
058: soapModel.setParentContactId(model.getParentContactId());
059: soapModel.setFirstName(model.getFirstName());
060: soapModel.setMiddleName(model.getMiddleName());
061: soapModel.setLastName(model.getLastName());
062: soapModel.setPrefixId(model.getPrefixId());
063: soapModel.setSuffixId(model.getSuffixId());
064: soapModel.setMale(model.getMale());
065: soapModel.setBirthday(model.getBirthday());
066: soapModel.setSmsSn(model.getSmsSn());
067: soapModel.setAimSn(model.getAimSn());
068: soapModel.setIcqSn(model.getIcqSn());
069: soapModel.setJabberSn(model.getJabberSn());
070: soapModel.setMsnSn(model.getMsnSn());
071: soapModel.setSkypeSn(model.getSkypeSn());
072: soapModel.setYmSn(model.getYmSn());
073: soapModel.setEmployeeStatusId(model.getEmployeeStatusId());
074: soapModel.setEmployeeNumber(model.getEmployeeNumber());
075: soapModel.setJobTitle(model.getJobTitle());
076: soapModel.setJobClass(model.getJobClass());
077: soapModel.setHoursOfOperation(model.getHoursOfOperation());
078:
079: return soapModel;
080: }
081:
082: public static ContactSoap[] toSoapModels(List models) {
083: List soapModels = new ArrayList(models.size());
084:
085: for (int i = 0; i < models.size(); i++) {
086: Contact model = (Contact) models.get(i);
087:
088: soapModels.add(toSoapModel(model));
089: }
090:
091: return (ContactSoap[]) soapModels.toArray(new ContactSoap[0]);
092: }
093:
094: public ContactSoap() {
095: }
096:
097: public long getPrimaryKey() {
098: return _contactId;
099: }
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: }
|