1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="UserSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portal.service.http.UserServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portal.service.http.UserServiceSoap
44   *
45   */
46  public class UserSoap implements Serializable {
47      public static UserSoap toSoapModel(User model) {
48          UserSoap soapModel = new UserSoap();
49  
50          soapModel.setUuid(model.getUuid());
51          soapModel.setUserId(model.getUserId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setCreateDate(model.getCreateDate());
54          soapModel.setModifiedDate(model.getModifiedDate());
55          soapModel.setDefaultUser(model.getDefaultUser());
56          soapModel.setContactId(model.getContactId());
57          soapModel.setPassword(model.getPassword());
58          soapModel.setPasswordEncrypted(model.getPasswordEncrypted());
59          soapModel.setPasswordReset(model.getPasswordReset());
60          soapModel.setPasswordModifiedDate(model.getPasswordModifiedDate());
61          soapModel.setGraceLoginCount(model.getGraceLoginCount());
62          soapModel.setScreenName(model.getScreenName());
63          soapModel.setEmailAddress(model.getEmailAddress());
64          soapModel.setOpenId(model.getOpenId());
65          soapModel.setPortraitId(model.getPortraitId());
66          soapModel.setLanguageId(model.getLanguageId());
67          soapModel.setTimeZoneId(model.getTimeZoneId());
68          soapModel.setGreeting(model.getGreeting());
69          soapModel.setComments(model.getComments());
70          soapModel.setLoginDate(model.getLoginDate());
71          soapModel.setLoginIP(model.getLoginIP());
72          soapModel.setLastLoginDate(model.getLastLoginDate());
73          soapModel.setLastLoginIP(model.getLastLoginIP());
74          soapModel.setLastFailedLoginDate(model.getLastFailedLoginDate());
75          soapModel.setFailedLoginAttempts(model.getFailedLoginAttempts());
76          soapModel.setLockout(model.getLockout());
77          soapModel.setLockoutDate(model.getLockoutDate());
78          soapModel.setAgreedToTermsOfUse(model.getAgreedToTermsOfUse());
79          soapModel.setActive(model.getActive());
80  
81          return soapModel;
82      }
83  
84      public static UserSoap[] toSoapModels(List<User> models) {
85          List<UserSoap> soapModels = new ArrayList<UserSoap>(models.size());
86  
87          for (User model : models) {
88              soapModels.add(toSoapModel(model));
89          }
90  
91          return soapModels.toArray(new UserSoap[soapModels.size()]);
92      }
93  
94      public UserSoap() {
95      }
96  
97      public long getPrimaryKey() {
98          return _userId;
99      }
100 
101     public void setPrimaryKey(long pk) {
102         setUserId(pk);
103     }
104 
105     public String getUuid() {
106         return _uuid;
107     }
108 
109     public void setUuid(String uuid) {
110         _uuid = uuid;
111     }
112 
113     public long getUserId() {
114         return _userId;
115     }
116 
117     public void setUserId(long userId) {
118         _userId = userId;
119     }
120 
121     public long getCompanyId() {
122         return _companyId;
123     }
124 
125     public void setCompanyId(long companyId) {
126         _companyId = companyId;
127     }
128 
129     public Date getCreateDate() {
130         return _createDate;
131     }
132 
133     public void setCreateDate(Date createDate) {
134         _createDate = createDate;
135     }
136 
137     public Date getModifiedDate() {
138         return _modifiedDate;
139     }
140 
141     public void setModifiedDate(Date modifiedDate) {
142         _modifiedDate = modifiedDate;
143     }
144 
145     public boolean getDefaultUser() {
146         return _defaultUser;
147     }
148 
149     public boolean isDefaultUser() {
150         return _defaultUser;
151     }
152 
153     public void setDefaultUser(boolean defaultUser) {
154         _defaultUser = defaultUser;
155     }
156 
157     public long getContactId() {
158         return _contactId;
159     }
160 
161     public void setContactId(long contactId) {
162         _contactId = contactId;
163     }
164 
165     public String getPassword() {
166         return _password;
167     }
168 
169     public void setPassword(String password) {
170         _password = password;
171     }
172 
173     public boolean getPasswordEncrypted() {
174         return _passwordEncrypted;
175     }
176 
177     public boolean isPasswordEncrypted() {
178         return _passwordEncrypted;
179     }
180 
181     public void setPasswordEncrypted(boolean passwordEncrypted) {
182         _passwordEncrypted = passwordEncrypted;
183     }
184 
185     public boolean getPasswordReset() {
186         return _passwordReset;
187     }
188 
189     public boolean isPasswordReset() {
190         return _passwordReset;
191     }
192 
193     public void setPasswordReset(boolean passwordReset) {
194         _passwordReset = passwordReset;
195     }
196 
197     public Date getPasswordModifiedDate() {
198         return _passwordModifiedDate;
199     }
200 
201     public void setPasswordModifiedDate(Date passwordModifiedDate) {
202         _passwordModifiedDate = passwordModifiedDate;
203     }
204 
205     public int getGraceLoginCount() {
206         return _graceLoginCount;
207     }
208 
209     public void setGraceLoginCount(int graceLoginCount) {
210         _graceLoginCount = graceLoginCount;
211     }
212 
213     public String getScreenName() {
214         return _screenName;
215     }
216 
217     public void setScreenName(String screenName) {
218         _screenName = screenName;
219     }
220 
221     public String getEmailAddress() {
222         return _emailAddress;
223     }
224 
225     public void setEmailAddress(String emailAddress) {
226         _emailAddress = emailAddress;
227     }
228 
229     public String getOpenId() {
230         return _openId;
231     }
232 
233     public void setOpenId(String openId) {
234         _openId = openId;
235     }
236 
237     public long getPortraitId() {
238         return _portraitId;
239     }
240 
241     public void setPortraitId(long portraitId) {
242         _portraitId = portraitId;
243     }
244 
245     public String getLanguageId() {
246         return _languageId;
247     }
248 
249     public void setLanguageId(String languageId) {
250         _languageId = languageId;
251     }
252 
253     public String getTimeZoneId() {
254         return _timeZoneId;
255     }
256 
257     public void setTimeZoneId(String timeZoneId) {
258         _timeZoneId = timeZoneId;
259     }
260 
261     public String getGreeting() {
262         return _greeting;
263     }
264 
265     public void setGreeting(String greeting) {
266         _greeting = greeting;
267     }
268 
269     public String getComments() {
270         return _comments;
271     }
272 
273     public void setComments(String comments) {
274         _comments = comments;
275     }
276 
277     public Date getLoginDate() {
278         return _loginDate;
279     }
280 
281     public void setLoginDate(Date loginDate) {
282         _loginDate = loginDate;
283     }
284 
285     public String getLoginIP() {
286         return _loginIP;
287     }
288 
289     public void setLoginIP(String loginIP) {
290         _loginIP = loginIP;
291     }
292 
293     public Date getLastLoginDate() {
294         return _lastLoginDate;
295     }
296 
297     public void setLastLoginDate(Date lastLoginDate) {
298         _lastLoginDate = lastLoginDate;
299     }
300 
301     public String getLastLoginIP() {
302         return _lastLoginIP;
303     }
304 
305     public void setLastLoginIP(String lastLoginIP) {
306         _lastLoginIP = lastLoginIP;
307     }
308 
309     public Date getLastFailedLoginDate() {
310         return _lastFailedLoginDate;
311     }
312 
313     public void setLastFailedLoginDate(Date lastFailedLoginDate) {
314         _lastFailedLoginDate = lastFailedLoginDate;
315     }
316 
317     public int getFailedLoginAttempts() {
318         return _failedLoginAttempts;
319     }
320 
321     public void setFailedLoginAttempts(int failedLoginAttempts) {
322         _failedLoginAttempts = failedLoginAttempts;
323     }
324 
325     public boolean getLockout() {
326         return _lockout;
327     }
328 
329     public boolean isLockout() {
330         return _lockout;
331     }
332 
333     public void setLockout(boolean lockout) {
334         _lockout = lockout;
335     }
336 
337     public Date getLockoutDate() {
338         return _lockoutDate;
339     }
340 
341     public void setLockoutDate(Date lockoutDate) {
342         _lockoutDate = lockoutDate;
343     }
344 
345     public boolean getAgreedToTermsOfUse() {
346         return _agreedToTermsOfUse;
347     }
348 
349     public boolean isAgreedToTermsOfUse() {
350         return _agreedToTermsOfUse;
351     }
352 
353     public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
354         _agreedToTermsOfUse = agreedToTermsOfUse;
355     }
356 
357     public boolean getActive() {
358         return _active;
359     }
360 
361     public boolean isActive() {
362         return _active;
363     }
364 
365     public void setActive(boolean active) {
366         _active = active;
367     }
368 
369     private String _uuid;
370     private long _userId;
371     private long _companyId;
372     private Date _createDate;
373     private Date _modifiedDate;
374     private boolean _defaultUser;
375     private long _contactId;
376     private String _password;
377     private boolean _passwordEncrypted;
378     private boolean _passwordReset;
379     private Date _passwordModifiedDate;
380     private int _graceLoginCount;
381     private String _screenName;
382     private String _emailAddress;
383     private String _openId;
384     private long _portraitId;
385     private String _languageId;
386     private String _timeZoneId;
387     private String _greeting;
388     private String _comments;
389     private Date _loginDate;
390     private String _loginIP;
391     private Date _lastLoginDate;
392     private String _lastLoginIP;
393     private Date _lastFailedLoginDate;
394     private int _failedLoginAttempts;
395     private boolean _lockout;
396     private Date _lockoutDate;
397     private boolean _agreedToTermsOfUse;
398     private boolean _active;
399 }