001    /**
002     * Copyright (c) 2000-2013 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 java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.UserServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portal.service.http.UserServiceSoap
028     * @generated
029     */
030    public class UserSoap implements Serializable {
031            public static UserSoap toSoapModel(User model) {
032                    UserSoap soapModel = new UserSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setModifiedDate(model.getModifiedDate());
039                    soapModel.setDefaultUser(model.getDefaultUser());
040                    soapModel.setContactId(model.getContactId());
041                    soapModel.setPassword(model.getPassword());
042                    soapModel.setPasswordEncrypted(model.getPasswordEncrypted());
043                    soapModel.setPasswordReset(model.getPasswordReset());
044                    soapModel.setPasswordModifiedDate(model.getPasswordModifiedDate());
045                    soapModel.setDigest(model.getDigest());
046                    soapModel.setReminderQueryQuestion(model.getReminderQueryQuestion());
047                    soapModel.setReminderQueryAnswer(model.getReminderQueryAnswer());
048                    soapModel.setGraceLoginCount(model.getGraceLoginCount());
049                    soapModel.setScreenName(model.getScreenName());
050                    soapModel.setEmailAddress(model.getEmailAddress());
051                    soapModel.setFacebookId(model.getFacebookId());
052                    soapModel.setOpenId(model.getOpenId());
053                    soapModel.setPortraitId(model.getPortraitId());
054                    soapModel.setLanguageId(model.getLanguageId());
055                    soapModel.setTimeZoneId(model.getTimeZoneId());
056                    soapModel.setGreeting(model.getGreeting());
057                    soapModel.setComments(model.getComments());
058                    soapModel.setFirstName(model.getFirstName());
059                    soapModel.setMiddleName(model.getMiddleName());
060                    soapModel.setLastName(model.getLastName());
061                    soapModel.setJobTitle(model.getJobTitle());
062                    soapModel.setLoginDate(model.getLoginDate());
063                    soapModel.setLoginIP(model.getLoginIP());
064                    soapModel.setLastLoginDate(model.getLastLoginDate());
065                    soapModel.setLastLoginIP(model.getLastLoginIP());
066                    soapModel.setLastFailedLoginDate(model.getLastFailedLoginDate());
067                    soapModel.setFailedLoginAttempts(model.getFailedLoginAttempts());
068                    soapModel.setLockout(model.getLockout());
069                    soapModel.setLockoutDate(model.getLockoutDate());
070                    soapModel.setAgreedToTermsOfUse(model.getAgreedToTermsOfUse());
071                    soapModel.setEmailAddressVerified(model.getEmailAddressVerified());
072                    soapModel.setStatus(model.getStatus());
073    
074                    return soapModel;
075            }
076    
077            public static UserSoap[] toSoapModels(User[] models) {
078                    UserSoap[] soapModels = new UserSoap[models.length];
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModel(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static UserSoap[][] toSoapModels(User[][] models) {
088                    UserSoap[][] soapModels = null;
089    
090                    if (models.length > 0) {
091                            soapModels = new UserSoap[models.length][models[0].length];
092                    }
093                    else {
094                            soapModels = new UserSoap[0][0];
095                    }
096    
097                    for (int i = 0; i < models.length; i++) {
098                            soapModels[i] = toSoapModels(models[i]);
099                    }
100    
101                    return soapModels;
102            }
103    
104            public static UserSoap[] toSoapModels(List<User> models) {
105                    List<UserSoap> soapModels = new ArrayList<UserSoap>(models.size());
106    
107                    for (User model : models) {
108                            soapModels.add(toSoapModel(model));
109                    }
110    
111                    return soapModels.toArray(new UserSoap[soapModels.size()]);
112            }
113    
114            public UserSoap() {
115            }
116    
117            public long getPrimaryKey() {
118                    return _userId;
119            }
120    
121            public void setPrimaryKey(long pk) {
122                    setUserId(pk);
123            }
124    
125            public String getUuid() {
126                    return _uuid;
127            }
128    
129            public void setUuid(String uuid) {
130                    _uuid = uuid;
131            }
132    
133            public long getUserId() {
134                    return _userId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public long getCompanyId() {
142                    return _companyId;
143            }
144    
145            public void setCompanyId(long companyId) {
146                    _companyId = companyId;
147            }
148    
149            public Date getCreateDate() {
150                    return _createDate;
151            }
152    
153            public void setCreateDate(Date createDate) {
154                    _createDate = createDate;
155            }
156    
157            public Date getModifiedDate() {
158                    return _modifiedDate;
159            }
160    
161            public void setModifiedDate(Date modifiedDate) {
162                    _modifiedDate = modifiedDate;
163            }
164    
165            public boolean getDefaultUser() {
166                    return _defaultUser;
167            }
168    
169            public boolean isDefaultUser() {
170                    return _defaultUser;
171            }
172    
173            public void setDefaultUser(boolean defaultUser) {
174                    _defaultUser = defaultUser;
175            }
176    
177            public long getContactId() {
178                    return _contactId;
179            }
180    
181            public void setContactId(long contactId) {
182                    _contactId = contactId;
183            }
184    
185            public String getPassword() {
186                    return _password;
187            }
188    
189            public void setPassword(String password) {
190                    _password = password;
191            }
192    
193            public boolean getPasswordEncrypted() {
194                    return _passwordEncrypted;
195            }
196    
197            public boolean isPasswordEncrypted() {
198                    return _passwordEncrypted;
199            }
200    
201            public void setPasswordEncrypted(boolean passwordEncrypted) {
202                    _passwordEncrypted = passwordEncrypted;
203            }
204    
205            public boolean getPasswordReset() {
206                    return _passwordReset;
207            }
208    
209            public boolean isPasswordReset() {
210                    return _passwordReset;
211            }
212    
213            public void setPasswordReset(boolean passwordReset) {
214                    _passwordReset = passwordReset;
215            }
216    
217            public Date getPasswordModifiedDate() {
218                    return _passwordModifiedDate;
219            }
220    
221            public void setPasswordModifiedDate(Date passwordModifiedDate) {
222                    _passwordModifiedDate = passwordModifiedDate;
223            }
224    
225            public String getDigest() {
226                    return _digest;
227            }
228    
229            public void setDigest(String digest) {
230                    _digest = digest;
231            }
232    
233            public String getReminderQueryQuestion() {
234                    return _reminderQueryQuestion;
235            }
236    
237            public void setReminderQueryQuestion(String reminderQueryQuestion) {
238                    _reminderQueryQuestion = reminderQueryQuestion;
239            }
240    
241            public String getReminderQueryAnswer() {
242                    return _reminderQueryAnswer;
243            }
244    
245            public void setReminderQueryAnswer(String reminderQueryAnswer) {
246                    _reminderQueryAnswer = reminderQueryAnswer;
247            }
248    
249            public int getGraceLoginCount() {
250                    return _graceLoginCount;
251            }
252    
253            public void setGraceLoginCount(int graceLoginCount) {
254                    _graceLoginCount = graceLoginCount;
255            }
256    
257            public String getScreenName() {
258                    return _screenName;
259            }
260    
261            public void setScreenName(String screenName) {
262                    _screenName = screenName;
263            }
264    
265            public String getEmailAddress() {
266                    return _emailAddress;
267            }
268    
269            public void setEmailAddress(String emailAddress) {
270                    _emailAddress = emailAddress;
271            }
272    
273            public long getFacebookId() {
274                    return _facebookId;
275            }
276    
277            public void setFacebookId(long facebookId) {
278                    _facebookId = facebookId;
279            }
280    
281            public String getOpenId() {
282                    return _openId;
283            }
284    
285            public void setOpenId(String openId) {
286                    _openId = openId;
287            }
288    
289            public long getPortraitId() {
290                    return _portraitId;
291            }
292    
293            public void setPortraitId(long portraitId) {
294                    _portraitId = portraitId;
295            }
296    
297            public String getLanguageId() {
298                    return _languageId;
299            }
300    
301            public void setLanguageId(String languageId) {
302                    _languageId = languageId;
303            }
304    
305            public String getTimeZoneId() {
306                    return _timeZoneId;
307            }
308    
309            public void setTimeZoneId(String timeZoneId) {
310                    _timeZoneId = timeZoneId;
311            }
312    
313            public String getGreeting() {
314                    return _greeting;
315            }
316    
317            public void setGreeting(String greeting) {
318                    _greeting = greeting;
319            }
320    
321            public String getComments() {
322                    return _comments;
323            }
324    
325            public void setComments(String comments) {
326                    _comments = comments;
327            }
328    
329            public String getFirstName() {
330                    return _firstName;
331            }
332    
333            public void setFirstName(String firstName) {
334                    _firstName = firstName;
335            }
336    
337            public String getMiddleName() {
338                    return _middleName;
339            }
340    
341            public void setMiddleName(String middleName) {
342                    _middleName = middleName;
343            }
344    
345            public String getLastName() {
346                    return _lastName;
347            }
348    
349            public void setLastName(String lastName) {
350                    _lastName = lastName;
351            }
352    
353            public String getJobTitle() {
354                    return _jobTitle;
355            }
356    
357            public void setJobTitle(String jobTitle) {
358                    _jobTitle = jobTitle;
359            }
360    
361            public Date getLoginDate() {
362                    return _loginDate;
363            }
364    
365            public void setLoginDate(Date loginDate) {
366                    _loginDate = loginDate;
367            }
368    
369            public String getLoginIP() {
370                    return _loginIP;
371            }
372    
373            public void setLoginIP(String loginIP) {
374                    _loginIP = loginIP;
375            }
376    
377            public Date getLastLoginDate() {
378                    return _lastLoginDate;
379            }
380    
381            public void setLastLoginDate(Date lastLoginDate) {
382                    _lastLoginDate = lastLoginDate;
383            }
384    
385            public String getLastLoginIP() {
386                    return _lastLoginIP;
387            }
388    
389            public void setLastLoginIP(String lastLoginIP) {
390                    _lastLoginIP = lastLoginIP;
391            }
392    
393            public Date getLastFailedLoginDate() {
394                    return _lastFailedLoginDate;
395            }
396    
397            public void setLastFailedLoginDate(Date lastFailedLoginDate) {
398                    _lastFailedLoginDate = lastFailedLoginDate;
399            }
400    
401            public int getFailedLoginAttempts() {
402                    return _failedLoginAttempts;
403            }
404    
405            public void setFailedLoginAttempts(int failedLoginAttempts) {
406                    _failedLoginAttempts = failedLoginAttempts;
407            }
408    
409            public boolean getLockout() {
410                    return _lockout;
411            }
412    
413            public boolean isLockout() {
414                    return _lockout;
415            }
416    
417            public void setLockout(boolean lockout) {
418                    _lockout = lockout;
419            }
420    
421            public Date getLockoutDate() {
422                    return _lockoutDate;
423            }
424    
425            public void setLockoutDate(Date lockoutDate) {
426                    _lockoutDate = lockoutDate;
427            }
428    
429            public boolean getAgreedToTermsOfUse() {
430                    return _agreedToTermsOfUse;
431            }
432    
433            public boolean isAgreedToTermsOfUse() {
434                    return _agreedToTermsOfUse;
435            }
436    
437            public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
438                    _agreedToTermsOfUse = agreedToTermsOfUse;
439            }
440    
441            public boolean getEmailAddressVerified() {
442                    return _emailAddressVerified;
443            }
444    
445            public boolean isEmailAddressVerified() {
446                    return _emailAddressVerified;
447            }
448    
449            public void setEmailAddressVerified(boolean emailAddressVerified) {
450                    _emailAddressVerified = emailAddressVerified;
451            }
452    
453            public int getStatus() {
454                    return _status;
455            }
456    
457            public void setStatus(int status) {
458                    _status = status;
459            }
460    
461            private String _uuid;
462            private long _userId;
463            private long _companyId;
464            private Date _createDate;
465            private Date _modifiedDate;
466            private boolean _defaultUser;
467            private long _contactId;
468            private String _password;
469            private boolean _passwordEncrypted;
470            private boolean _passwordReset;
471            private Date _passwordModifiedDate;
472            private String _digest;
473            private String _reminderQueryQuestion;
474            private String _reminderQueryAnswer;
475            private int _graceLoginCount;
476            private String _screenName;
477            private String _emailAddress;
478            private long _facebookId;
479            private String _openId;
480            private long _portraitId;
481            private String _languageId;
482            private String _timeZoneId;
483            private String _greeting;
484            private String _comments;
485            private String _firstName;
486            private String _middleName;
487            private String _lastName;
488            private String _jobTitle;
489            private Date _loginDate;
490            private String _loginIP;
491            private Date _lastLoginDate;
492            private String _lastLoginIP;
493            private Date _lastFailedLoginDate;
494            private int _failedLoginAttempts;
495            private boolean _lockout;
496            private Date _lockoutDate;
497            private boolean _agreedToTermsOfUse;
498            private boolean _emailAddressVerified;
499            private int _status;
500    }