1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="UserSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portal.service.http.UserServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portal.service.http.UserServiceSoap
47   *
48   */
49  public class UserSoap implements Serializable {
50      public static UserSoap toSoapModel(User model) {
51          UserSoap soapModel = new UserSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setDefaultUser(model.getDefaultUser());
59          soapModel.setContactId(model.getContactId());
60          soapModel.setPassword(model.getPassword());
61          soapModel.setPasswordEncrypted(model.getPasswordEncrypted());
62          soapModel.setPasswordReset(model.getPasswordReset());
63          soapModel.setPasswordModifiedDate(model.getPasswordModifiedDate());
64          soapModel.setReminderQueryQuestion(model.getReminderQueryQuestion());
65          soapModel.setReminderQueryAnswer(model.getReminderQueryAnswer());
66          soapModel.setGraceLoginCount(model.getGraceLoginCount());
67          soapModel.setScreenName(model.getScreenName());
68          soapModel.setEmailAddress(model.getEmailAddress());
69          soapModel.setOpenId(model.getOpenId());
70          soapModel.setPortraitId(model.getPortraitId());
71          soapModel.setLanguageId(model.getLanguageId());
72          soapModel.setTimeZoneId(model.getTimeZoneId());
73          soapModel.setGreeting(model.getGreeting());
74          soapModel.setComments(model.getComments());
75          soapModel.setFirstName(model.getFirstName());
76          soapModel.setMiddleName(model.getMiddleName());
77          soapModel.setLastName(model.getLastName());
78          soapModel.setJobTitle(model.getJobTitle());
79          soapModel.setLoginDate(model.getLoginDate());
80          soapModel.setLoginIP(model.getLoginIP());
81          soapModel.setLastLoginDate(model.getLastLoginDate());
82          soapModel.setLastLoginIP(model.getLastLoginIP());
83          soapModel.setLastFailedLoginDate(model.getLastFailedLoginDate());
84          soapModel.setFailedLoginAttempts(model.getFailedLoginAttempts());
85          soapModel.setLockout(model.getLockout());
86          soapModel.setLockoutDate(model.getLockoutDate());
87          soapModel.setAgreedToTermsOfUse(model.getAgreedToTermsOfUse());
88          soapModel.setActive(model.getActive());
89  
90          return soapModel;
91      }
92  
93      public static UserSoap[] toSoapModels(User[] models) {
94          UserSoap[] soapModels = new UserSoap[models.length];
95  
96          for (int i = 0; i < models.length; i++) {
97              soapModels[i] = toSoapModel(models[i]);
98          }
99  
100         return soapModels;
101     }
102 
103     public static UserSoap[][] toSoapModels(User[][] models) {
104         UserSoap[][] soapModels = null;
105 
106         if (models.length > 0) {
107             soapModels = new UserSoap[models.length][models[0].length];
108         }
109         else {
110             soapModels = new UserSoap[0][0];
111         }
112 
113         for (int i = 0; i < models.length; i++) {
114             soapModels[i] = toSoapModels(models[i]);
115         }
116 
117         return soapModels;
118     }
119 
120     public static UserSoap[] toSoapModels(List<User> models) {
121         List<UserSoap> soapModels = new ArrayList<UserSoap>(models.size());
122 
123         for (User model : models) {
124             soapModels.add(toSoapModel(model));
125         }
126 
127         return soapModels.toArray(new UserSoap[soapModels.size()]);
128     }
129 
130     public UserSoap() {
131     }
132 
133     public long getPrimaryKey() {
134         return _userId;
135     }
136 
137     public void setPrimaryKey(long pk) {
138         setUserId(pk);
139     }
140 
141     public String getUuid() {
142         return _uuid;
143     }
144 
145     public void setUuid(String uuid) {
146         _uuid = uuid;
147     }
148 
149     public long getUserId() {
150         return _userId;
151     }
152 
153     public void setUserId(long userId) {
154         _userId = userId;
155     }
156 
157     public long getCompanyId() {
158         return _companyId;
159     }
160 
161     public void setCompanyId(long companyId) {
162         _companyId = companyId;
163     }
164 
165     public Date getCreateDate() {
166         return _createDate;
167     }
168 
169     public void setCreateDate(Date createDate) {
170         _createDate = createDate;
171     }
172 
173     public Date getModifiedDate() {
174         return _modifiedDate;
175     }
176 
177     public void setModifiedDate(Date modifiedDate) {
178         _modifiedDate = modifiedDate;
179     }
180 
181     public boolean getDefaultUser() {
182         return _defaultUser;
183     }
184 
185     public boolean isDefaultUser() {
186         return _defaultUser;
187     }
188 
189     public void setDefaultUser(boolean defaultUser) {
190         _defaultUser = defaultUser;
191     }
192 
193     public long getContactId() {
194         return _contactId;
195     }
196 
197     public void setContactId(long contactId) {
198         _contactId = contactId;
199     }
200 
201     public String getPassword() {
202         return _password;
203     }
204 
205     public void setPassword(String password) {
206         _password = password;
207     }
208 
209     public boolean getPasswordEncrypted() {
210         return _passwordEncrypted;
211     }
212 
213     public boolean isPasswordEncrypted() {
214         return _passwordEncrypted;
215     }
216 
217     public void setPasswordEncrypted(boolean passwordEncrypted) {
218         _passwordEncrypted = passwordEncrypted;
219     }
220 
221     public boolean getPasswordReset() {
222         return _passwordReset;
223     }
224 
225     public boolean isPasswordReset() {
226         return _passwordReset;
227     }
228 
229     public void setPasswordReset(boolean passwordReset) {
230         _passwordReset = passwordReset;
231     }
232 
233     public Date getPasswordModifiedDate() {
234         return _passwordModifiedDate;
235     }
236 
237     public void setPasswordModifiedDate(Date passwordModifiedDate) {
238         _passwordModifiedDate = passwordModifiedDate;
239     }
240 
241     public String getReminderQueryQuestion() {
242         return _reminderQueryQuestion;
243     }
244 
245     public void setReminderQueryQuestion(String reminderQueryQuestion) {
246         _reminderQueryQuestion = reminderQueryQuestion;
247     }
248 
249     public String getReminderQueryAnswer() {
250         return _reminderQueryAnswer;
251     }
252 
253     public void setReminderQueryAnswer(String reminderQueryAnswer) {
254         _reminderQueryAnswer = reminderQueryAnswer;
255     }
256 
257     public int getGraceLoginCount() {
258         return _graceLoginCount;
259     }
260 
261     public void setGraceLoginCount(int graceLoginCount) {
262         _graceLoginCount = graceLoginCount;
263     }
264 
265     public String getScreenName() {
266         return _screenName;
267     }
268 
269     public void setScreenName(String screenName) {
270         _screenName = screenName;
271     }
272 
273     public String getEmailAddress() {
274         return _emailAddress;
275     }
276 
277     public void setEmailAddress(String emailAddress) {
278         _emailAddress = emailAddress;
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 getActive() {
442         return _active;
443     }
444 
445     public boolean isActive() {
446         return _active;
447     }
448 
449     public void setActive(boolean active) {
450         _active = active;
451     }
452 
453     private String _uuid;
454     private long _userId;
455     private long _companyId;
456     private Date _createDate;
457     private Date _modifiedDate;
458     private boolean _defaultUser;
459     private long _contactId;
460     private String _password;
461     private boolean _passwordEncrypted;
462     private boolean _passwordReset;
463     private Date _passwordModifiedDate;
464     private String _reminderQueryQuestion;
465     private String _reminderQueryAnswer;
466     private int _graceLoginCount;
467     private String _screenName;
468     private String _emailAddress;
469     private String _openId;
470     private long _portraitId;
471     private String _languageId;
472     private String _timeZoneId;
473     private String _greeting;
474     private String _comments;
475     private String _firstName;
476     private String _middleName;
477     private String _lastName;
478     private String _jobTitle;
479     private Date _loginDate;
480     private String _loginIP;
481     private Date _lastLoginDate;
482     private String _lastLoginIP;
483     private Date _lastFailedLoginDate;
484     private int _failedLoginAttempts;
485     private boolean _lockout;
486     private Date _lockoutDate;
487     private boolean _agreedToTermsOfUse;
488     private boolean _active;
489 }