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