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.setLoginDate(model.getLoginDate());
76          soapModel.setLoginIP(model.getLoginIP());
77          soapModel.setLastLoginDate(model.getLastLoginDate());
78          soapModel.setLastLoginIP(model.getLastLoginIP());
79          soapModel.setLastFailedLoginDate(model.getLastFailedLoginDate());
80          soapModel.setFailedLoginAttempts(model.getFailedLoginAttempts());
81          soapModel.setLockout(model.getLockout());
82          soapModel.setLockoutDate(model.getLockoutDate());
83          soapModel.setAgreedToTermsOfUse(model.getAgreedToTermsOfUse());
84          soapModel.setActive(model.getActive());
85  
86          return soapModel;
87      }
88  
89      public static UserSoap[] toSoapModels(List<User> models) {
90          List<UserSoap> soapModels = new ArrayList<UserSoap>(models.size());
91  
92          for (User model : models) {
93              soapModels.add(toSoapModel(model));
94          }
95  
96          return soapModels.toArray(new UserSoap[soapModels.size()]);
97      }
98  
99      public UserSoap() {
100     }
101 
102     public long getPrimaryKey() {
103         return _userId;
104     }
105 
106     public void setPrimaryKey(long pk) {
107         setUserId(pk);
108     }
109 
110     public String getUuid() {
111         return _uuid;
112     }
113 
114     public void setUuid(String uuid) {
115         _uuid = uuid;
116     }
117 
118     public long getUserId() {
119         return _userId;
120     }
121 
122     public void setUserId(long userId) {
123         _userId = userId;
124     }
125 
126     public long getCompanyId() {
127         return _companyId;
128     }
129 
130     public void setCompanyId(long companyId) {
131         _companyId = companyId;
132     }
133 
134     public Date getCreateDate() {
135         return _createDate;
136     }
137 
138     public void setCreateDate(Date createDate) {
139         _createDate = createDate;
140     }
141 
142     public Date getModifiedDate() {
143         return _modifiedDate;
144     }
145 
146     public void setModifiedDate(Date modifiedDate) {
147         _modifiedDate = modifiedDate;
148     }
149 
150     public boolean getDefaultUser() {
151         return _defaultUser;
152     }
153 
154     public boolean isDefaultUser() {
155         return _defaultUser;
156     }
157 
158     public void setDefaultUser(boolean defaultUser) {
159         _defaultUser = defaultUser;
160     }
161 
162     public long getContactId() {
163         return _contactId;
164     }
165 
166     public void setContactId(long contactId) {
167         _contactId = contactId;
168     }
169 
170     public String getPassword() {
171         return _password;
172     }
173 
174     public void setPassword(String password) {
175         _password = password;
176     }
177 
178     public boolean getPasswordEncrypted() {
179         return _passwordEncrypted;
180     }
181 
182     public boolean isPasswordEncrypted() {
183         return _passwordEncrypted;
184     }
185 
186     public void setPasswordEncrypted(boolean passwordEncrypted) {
187         _passwordEncrypted = passwordEncrypted;
188     }
189 
190     public boolean getPasswordReset() {
191         return _passwordReset;
192     }
193 
194     public boolean isPasswordReset() {
195         return _passwordReset;
196     }
197 
198     public void setPasswordReset(boolean passwordReset) {
199         _passwordReset = passwordReset;
200     }
201 
202     public Date getPasswordModifiedDate() {
203         return _passwordModifiedDate;
204     }
205 
206     public void setPasswordModifiedDate(Date passwordModifiedDate) {
207         _passwordModifiedDate = passwordModifiedDate;
208     }
209 
210     public String getReminderQueryQuestion() {
211         return _reminderQueryQuestion;
212     }
213 
214     public void setReminderQueryQuestion(String reminderQueryQuestion) {
215         _reminderQueryQuestion = reminderQueryQuestion;
216     }
217 
218     public String getReminderQueryAnswer() {
219         return _reminderQueryAnswer;
220     }
221 
222     public void setReminderQueryAnswer(String reminderQueryAnswer) {
223         _reminderQueryAnswer = reminderQueryAnswer;
224     }
225 
226     public int getGraceLoginCount() {
227         return _graceLoginCount;
228     }
229 
230     public void setGraceLoginCount(int graceLoginCount) {
231         _graceLoginCount = graceLoginCount;
232     }
233 
234     public String getScreenName() {
235         return _screenName;
236     }
237 
238     public void setScreenName(String screenName) {
239         _screenName = screenName;
240     }
241 
242     public String getEmailAddress() {
243         return _emailAddress;
244     }
245 
246     public void setEmailAddress(String emailAddress) {
247         _emailAddress = emailAddress;
248     }
249 
250     public String getOpenId() {
251         return _openId;
252     }
253 
254     public void setOpenId(String openId) {
255         _openId = openId;
256     }
257 
258     public long getPortraitId() {
259         return _portraitId;
260     }
261 
262     public void setPortraitId(long portraitId) {
263         _portraitId = portraitId;
264     }
265 
266     public String getLanguageId() {
267         return _languageId;
268     }
269 
270     public void setLanguageId(String languageId) {
271         _languageId = languageId;
272     }
273 
274     public String getTimeZoneId() {
275         return _timeZoneId;
276     }
277 
278     public void setTimeZoneId(String timeZoneId) {
279         _timeZoneId = timeZoneId;
280     }
281 
282     public String getGreeting() {
283         return _greeting;
284     }
285 
286     public void setGreeting(String greeting) {
287         _greeting = greeting;
288     }
289 
290     public String getComments() {
291         return _comments;
292     }
293 
294     public void setComments(String comments) {
295         _comments = comments;
296     }
297 
298     public Date getLoginDate() {
299         return _loginDate;
300     }
301 
302     public void setLoginDate(Date loginDate) {
303         _loginDate = loginDate;
304     }
305 
306     public String getLoginIP() {
307         return _loginIP;
308     }
309 
310     public void setLoginIP(String loginIP) {
311         _loginIP = loginIP;
312     }
313 
314     public Date getLastLoginDate() {
315         return _lastLoginDate;
316     }
317 
318     public void setLastLoginDate(Date lastLoginDate) {
319         _lastLoginDate = lastLoginDate;
320     }
321 
322     public String getLastLoginIP() {
323         return _lastLoginIP;
324     }
325 
326     public void setLastLoginIP(String lastLoginIP) {
327         _lastLoginIP = lastLoginIP;
328     }
329 
330     public Date getLastFailedLoginDate() {
331         return _lastFailedLoginDate;
332     }
333 
334     public void setLastFailedLoginDate(Date lastFailedLoginDate) {
335         _lastFailedLoginDate = lastFailedLoginDate;
336     }
337 
338     public int getFailedLoginAttempts() {
339         return _failedLoginAttempts;
340     }
341 
342     public void setFailedLoginAttempts(int failedLoginAttempts) {
343         _failedLoginAttempts = failedLoginAttempts;
344     }
345 
346     public boolean getLockout() {
347         return _lockout;
348     }
349 
350     public boolean isLockout() {
351         return _lockout;
352     }
353 
354     public void setLockout(boolean lockout) {
355         _lockout = lockout;
356     }
357 
358     public Date getLockoutDate() {
359         return _lockoutDate;
360     }
361 
362     public void setLockoutDate(Date lockoutDate) {
363         _lockoutDate = lockoutDate;
364     }
365 
366     public boolean getAgreedToTermsOfUse() {
367         return _agreedToTermsOfUse;
368     }
369 
370     public boolean isAgreedToTermsOfUse() {
371         return _agreedToTermsOfUse;
372     }
373 
374     public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
375         _agreedToTermsOfUse = agreedToTermsOfUse;
376     }
377 
378     public boolean getActive() {
379         return _active;
380     }
381 
382     public boolean isActive() {
383         return _active;
384     }
385 
386     public void setActive(boolean active) {
387         _active = active;
388     }
389 
390     private String _uuid;
391     private long _userId;
392     private long _companyId;
393     private Date _createDate;
394     private Date _modifiedDate;
395     private boolean _defaultUser;
396     private long _contactId;
397     private String _password;
398     private boolean _passwordEncrypted;
399     private boolean _passwordReset;
400     private Date _passwordModifiedDate;
401     private String _reminderQueryQuestion;
402     private String _reminderQueryAnswer;
403     private int _graceLoginCount;
404     private String _screenName;
405     private String _emailAddress;
406     private String _openId;
407     private long _portraitId;
408     private String _languageId;
409     private String _timeZoneId;
410     private String _greeting;
411     private String _comments;
412     private Date _loginDate;
413     private String _loginIP;
414     private Date _lastLoginDate;
415     private String _lastLoginIP;
416     private Date _lastFailedLoginDate;
417     private int _failedLoginAttempts;
418     private boolean _lockout;
419     private Date _lockoutDate;
420     private boolean _agreedToTermsOfUse;
421     private boolean _active;
422 }