001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="UserSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.UserServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.UserServiceSoap
045: *
046: */
047: public class UserSoap implements Serializable {
048: public static UserSoap toSoapModel(User model) {
049: UserSoap soapModel = new UserSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setUserId(model.getUserId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setCreateDate(model.getCreateDate());
055: soapModel.setModifiedDate(model.getModifiedDate());
056: soapModel.setDefaultUser(model.getDefaultUser());
057: soapModel.setContactId(model.getContactId());
058: soapModel.setPassword(model.getPassword());
059: soapModel.setPasswordEncrypted(model.getPasswordEncrypted());
060: soapModel.setPasswordReset(model.getPasswordReset());
061: soapModel.setPasswordModifiedDate(model
062: .getPasswordModifiedDate());
063: soapModel.setGraceLoginCount(model.getGraceLoginCount());
064: soapModel.setScreenName(model.getScreenName());
065: soapModel.setEmailAddress(model.getEmailAddress());
066: soapModel.setPortraitId(model.getPortraitId());
067: soapModel.setLanguageId(model.getLanguageId());
068: soapModel.setTimeZoneId(model.getTimeZoneId());
069: soapModel.setGreeting(model.getGreeting());
070: soapModel.setComments(model.getComments());
071: soapModel.setLoginDate(model.getLoginDate());
072: soapModel.setLoginIP(model.getLoginIP());
073: soapModel.setLastLoginDate(model.getLastLoginDate());
074: soapModel.setLastLoginIP(model.getLastLoginIP());
075: soapModel
076: .setLastFailedLoginDate(model.getLastFailedLoginDate());
077: soapModel
078: .setFailedLoginAttempts(model.getFailedLoginAttempts());
079: soapModel.setLockout(model.getLockout());
080: soapModel.setLockoutDate(model.getLockoutDate());
081: soapModel.setAgreedToTermsOfUse(model.getAgreedToTermsOfUse());
082: soapModel.setActive(model.getActive());
083:
084: return soapModel;
085: }
086:
087: public static UserSoap[] toSoapModels(List models) {
088: List soapModels = new ArrayList(models.size());
089:
090: for (int i = 0; i < models.size(); i++) {
091: User model = (User) models.get(i);
092:
093: soapModels.add(toSoapModel(model));
094: }
095:
096: return (UserSoap[]) soapModels.toArray(new UserSoap[0]);
097: }
098:
099: 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 int getGraceLoginCount() {
211: return _graceLoginCount;
212: }
213:
214: public void setGraceLoginCount(int graceLoginCount) {
215: _graceLoginCount = graceLoginCount;
216: }
217:
218: public String getScreenName() {
219: return _screenName;
220: }
221:
222: public void setScreenName(String screenName) {
223: _screenName = screenName;
224: }
225:
226: public String getEmailAddress() {
227: return _emailAddress;
228: }
229:
230: public void setEmailAddress(String emailAddress) {
231: _emailAddress = emailAddress;
232: }
233:
234: public long getPortraitId() {
235: return _portraitId;
236: }
237:
238: public void setPortraitId(long portraitId) {
239: _portraitId = portraitId;
240: }
241:
242: public String getLanguageId() {
243: return _languageId;
244: }
245:
246: public void setLanguageId(String languageId) {
247: _languageId = languageId;
248: }
249:
250: public String getTimeZoneId() {
251: return _timeZoneId;
252: }
253:
254: public void setTimeZoneId(String timeZoneId) {
255: _timeZoneId = timeZoneId;
256: }
257:
258: public String getGreeting() {
259: return _greeting;
260: }
261:
262: public void setGreeting(String greeting) {
263: _greeting = greeting;
264: }
265:
266: public String getComments() {
267: return _comments;
268: }
269:
270: public void setComments(String comments) {
271: _comments = comments;
272: }
273:
274: public Date getLoginDate() {
275: return _loginDate;
276: }
277:
278: public void setLoginDate(Date loginDate) {
279: _loginDate = loginDate;
280: }
281:
282: public String getLoginIP() {
283: return _loginIP;
284: }
285:
286: public void setLoginIP(String loginIP) {
287: _loginIP = loginIP;
288: }
289:
290: public Date getLastLoginDate() {
291: return _lastLoginDate;
292: }
293:
294: public void setLastLoginDate(Date lastLoginDate) {
295: _lastLoginDate = lastLoginDate;
296: }
297:
298: public String getLastLoginIP() {
299: return _lastLoginIP;
300: }
301:
302: public void setLastLoginIP(String lastLoginIP) {
303: _lastLoginIP = lastLoginIP;
304: }
305:
306: public Date getLastFailedLoginDate() {
307: return _lastFailedLoginDate;
308: }
309:
310: public void setLastFailedLoginDate(Date lastFailedLoginDate) {
311: _lastFailedLoginDate = lastFailedLoginDate;
312: }
313:
314: public int getFailedLoginAttempts() {
315: return _failedLoginAttempts;
316: }
317:
318: public void setFailedLoginAttempts(int failedLoginAttempts) {
319: _failedLoginAttempts = failedLoginAttempts;
320: }
321:
322: public boolean getLockout() {
323: return _lockout;
324: }
325:
326: public boolean isLockout() {
327: return _lockout;
328: }
329:
330: public void setLockout(boolean lockout) {
331: _lockout = lockout;
332: }
333:
334: public Date getLockoutDate() {
335: return _lockoutDate;
336: }
337:
338: public void setLockoutDate(Date lockoutDate) {
339: _lockoutDate = lockoutDate;
340: }
341:
342: public boolean getAgreedToTermsOfUse() {
343: return _agreedToTermsOfUse;
344: }
345:
346: public boolean isAgreedToTermsOfUse() {
347: return _agreedToTermsOfUse;
348: }
349:
350: public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
351: _agreedToTermsOfUse = agreedToTermsOfUse;
352: }
353:
354: public boolean getActive() {
355: return _active;
356: }
357:
358: public boolean isActive() {
359: return _active;
360: }
361:
362: public void setActive(boolean active) {
363: _active = active;
364: }
365:
366: private String _uuid;
367: private long _userId;
368: private long _companyId;
369: private Date _createDate;
370: private Date _modifiedDate;
371: private boolean _defaultUser;
372: private long _contactId;
373: private String _password;
374: private boolean _passwordEncrypted;
375: private boolean _passwordReset;
376: private Date _passwordModifiedDate;
377: private int _graceLoginCount;
378: private String _screenName;
379: private String _emailAddress;
380: private long _portraitId;
381: private String _languageId;
382: private String _timeZoneId;
383: private String _greeting;
384: private String _comments;
385: private Date _loginDate;
386: private String _loginIP;
387: private Date _lastLoginDate;
388: private String _lastLoginIP;
389: private Date _lastFailedLoginDate;
390: private int _failedLoginAttempts;
391: private boolean _lockout;
392: private Date _lockoutDate;
393: private boolean _agreedToTermsOfUse;
394: private boolean _active;
395: }
|