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