001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.kernel.util.Validator;
018    
019    import java.util.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link User}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       User
030     * @generated
031     */
032    public class UserWrapper implements User, ModelWrapper<User> {
033            public UserWrapper(User user) {
034                    _user = user;
035            }
036    
037            public Class<?> getModelClass() {
038                    return User.class;
039            }
040    
041            public String getModelClassName() {
042                    return User.class.getName();
043            }
044    
045            public Map<String, Object> getModelAttributes() {
046                    Map<String, Object> attributes = new HashMap<String, Object>();
047    
048                    attributes.put("uuid", getUuid());
049                    attributes.put("userId", getUserId());
050                    attributes.put("companyId", getCompanyId());
051                    attributes.put("createDate", getCreateDate());
052                    attributes.put("modifiedDate", getModifiedDate());
053                    attributes.put("defaultUser", getDefaultUser());
054                    attributes.put("contactId", getContactId());
055                    attributes.put("password", getPassword());
056                    attributes.put("passwordEncrypted", getPasswordEncrypted());
057                    attributes.put("passwordReset", getPasswordReset());
058                    attributes.put("passwordModifiedDate", getPasswordModifiedDate());
059                    attributes.put("digest", getDigest());
060                    attributes.put("reminderQueryQuestion", getReminderQueryQuestion());
061                    attributes.put("reminderQueryAnswer", getReminderQueryAnswer());
062                    attributes.put("graceLoginCount", getGraceLoginCount());
063                    attributes.put("screenName", getScreenName());
064                    attributes.put("emailAddress", getEmailAddress());
065                    attributes.put("facebookId", getFacebookId());
066                    attributes.put("openId", getOpenId());
067                    attributes.put("portraitId", getPortraitId());
068                    attributes.put("languageId", getLanguageId());
069                    attributes.put("timeZoneId", getTimeZoneId());
070                    attributes.put("greeting", getGreeting());
071                    attributes.put("comments", getComments());
072                    attributes.put("firstName", getFirstName());
073                    attributes.put("middleName", getMiddleName());
074                    attributes.put("lastName", getLastName());
075                    attributes.put("jobTitle", getJobTitle());
076                    attributes.put("loginDate", getLoginDate());
077                    attributes.put("loginIP", getLoginIP());
078                    attributes.put("lastLoginDate", getLastLoginDate());
079                    attributes.put("lastLoginIP", getLastLoginIP());
080                    attributes.put("lastFailedLoginDate", getLastFailedLoginDate());
081                    attributes.put("failedLoginAttempts", getFailedLoginAttempts());
082                    attributes.put("lockout", getLockout());
083                    attributes.put("lockoutDate", getLockoutDate());
084                    attributes.put("agreedToTermsOfUse", getAgreedToTermsOfUse());
085                    attributes.put("emailAddressVerified", getEmailAddressVerified());
086                    attributes.put("status", getStatus());
087    
088                    return attributes;
089            }
090    
091            public void setModelAttributes(Map<String, Object> attributes) {
092                    String uuid = (String)attributes.get("uuid");
093    
094                    if (uuid != null) {
095                            setUuid(uuid);
096                    }
097    
098                    Long userId = (Long)attributes.get("userId");
099    
100                    if (userId != null) {
101                            setUserId(userId);
102                    }
103    
104                    Long companyId = (Long)attributes.get("companyId");
105    
106                    if (companyId != null) {
107                            setCompanyId(companyId);
108                    }
109    
110                    Date createDate = (Date)attributes.get("createDate");
111    
112                    if (createDate != null) {
113                            setCreateDate(createDate);
114                    }
115    
116                    Date modifiedDate = (Date)attributes.get("modifiedDate");
117    
118                    if (modifiedDate != null) {
119                            setModifiedDate(modifiedDate);
120                    }
121    
122                    Boolean defaultUser = (Boolean)attributes.get("defaultUser");
123    
124                    if (defaultUser != null) {
125                            setDefaultUser(defaultUser);
126                    }
127    
128                    Long contactId = (Long)attributes.get("contactId");
129    
130                    if (contactId != null) {
131                            setContactId(contactId);
132                    }
133    
134                    String password = (String)attributes.get("password");
135    
136                    if (password != null) {
137                            setPassword(password);
138                    }
139    
140                    Boolean passwordEncrypted = (Boolean)attributes.get("passwordEncrypted");
141    
142                    if (passwordEncrypted != null) {
143                            setPasswordEncrypted(passwordEncrypted);
144                    }
145    
146                    Boolean passwordReset = (Boolean)attributes.get("passwordReset");
147    
148                    if (passwordReset != null) {
149                            setPasswordReset(passwordReset);
150                    }
151    
152                    Date passwordModifiedDate = (Date)attributes.get("passwordModifiedDate");
153    
154                    if (passwordModifiedDate != null) {
155                            setPasswordModifiedDate(passwordModifiedDate);
156                    }
157    
158                    String digest = (String)attributes.get("digest");
159    
160                    if (digest != null) {
161                            setDigest(digest);
162                    }
163    
164                    String reminderQueryQuestion = (String)attributes.get(
165                                    "reminderQueryQuestion");
166    
167                    if (reminderQueryQuestion != null) {
168                            setReminderQueryQuestion(reminderQueryQuestion);
169                    }
170    
171                    String reminderQueryAnswer = (String)attributes.get(
172                                    "reminderQueryAnswer");
173    
174                    if (reminderQueryAnswer != null) {
175                            setReminderQueryAnswer(reminderQueryAnswer);
176                    }
177    
178                    Integer graceLoginCount = (Integer)attributes.get("graceLoginCount");
179    
180                    if (graceLoginCount != null) {
181                            setGraceLoginCount(graceLoginCount);
182                    }
183    
184                    String screenName = (String)attributes.get("screenName");
185    
186                    if (screenName != null) {
187                            setScreenName(screenName);
188                    }
189    
190                    String emailAddress = (String)attributes.get("emailAddress");
191    
192                    if (emailAddress != null) {
193                            setEmailAddress(emailAddress);
194                    }
195    
196                    Long facebookId = (Long)attributes.get("facebookId");
197    
198                    if (facebookId != null) {
199                            setFacebookId(facebookId);
200                    }
201    
202                    String openId = (String)attributes.get("openId");
203    
204                    if (openId != null) {
205                            setOpenId(openId);
206                    }
207    
208                    Long portraitId = (Long)attributes.get("portraitId");
209    
210                    if (portraitId != null) {
211                            setPortraitId(portraitId);
212                    }
213    
214                    String languageId = (String)attributes.get("languageId");
215    
216                    if (languageId != null) {
217                            setLanguageId(languageId);
218                    }
219    
220                    String timeZoneId = (String)attributes.get("timeZoneId");
221    
222                    if (timeZoneId != null) {
223                            setTimeZoneId(timeZoneId);
224                    }
225    
226                    String greeting = (String)attributes.get("greeting");
227    
228                    if (greeting != null) {
229                            setGreeting(greeting);
230                    }
231    
232                    String comments = (String)attributes.get("comments");
233    
234                    if (comments != null) {
235                            setComments(comments);
236                    }
237    
238                    String firstName = (String)attributes.get("firstName");
239    
240                    if (firstName != null) {
241                            setFirstName(firstName);
242                    }
243    
244                    String middleName = (String)attributes.get("middleName");
245    
246                    if (middleName != null) {
247                            setMiddleName(middleName);
248                    }
249    
250                    String lastName = (String)attributes.get("lastName");
251    
252                    if (lastName != null) {
253                            setLastName(lastName);
254                    }
255    
256                    String jobTitle = (String)attributes.get("jobTitle");
257    
258                    if (jobTitle != null) {
259                            setJobTitle(jobTitle);
260                    }
261    
262                    Date loginDate = (Date)attributes.get("loginDate");
263    
264                    if (loginDate != null) {
265                            setLoginDate(loginDate);
266                    }
267    
268                    String loginIP = (String)attributes.get("loginIP");
269    
270                    if (loginIP != null) {
271                            setLoginIP(loginIP);
272                    }
273    
274                    Date lastLoginDate = (Date)attributes.get("lastLoginDate");
275    
276                    if (lastLoginDate != null) {
277                            setLastLoginDate(lastLoginDate);
278                    }
279    
280                    String lastLoginIP = (String)attributes.get("lastLoginIP");
281    
282                    if (lastLoginIP != null) {
283                            setLastLoginIP(lastLoginIP);
284                    }
285    
286                    Date lastFailedLoginDate = (Date)attributes.get("lastFailedLoginDate");
287    
288                    if (lastFailedLoginDate != null) {
289                            setLastFailedLoginDate(lastFailedLoginDate);
290                    }
291    
292                    Integer failedLoginAttempts = (Integer)attributes.get(
293                                    "failedLoginAttempts");
294    
295                    if (failedLoginAttempts != null) {
296                            setFailedLoginAttempts(failedLoginAttempts);
297                    }
298    
299                    Boolean lockout = (Boolean)attributes.get("lockout");
300    
301                    if (lockout != null) {
302                            setLockout(lockout);
303                    }
304    
305                    Date lockoutDate = (Date)attributes.get("lockoutDate");
306    
307                    if (lockoutDate != null) {
308                            setLockoutDate(lockoutDate);
309                    }
310    
311                    Boolean agreedToTermsOfUse = (Boolean)attributes.get(
312                                    "agreedToTermsOfUse");
313    
314                    if (agreedToTermsOfUse != null) {
315                            setAgreedToTermsOfUse(agreedToTermsOfUse);
316                    }
317    
318                    Boolean emailAddressVerified = (Boolean)attributes.get(
319                                    "emailAddressVerified");
320    
321                    if (emailAddressVerified != null) {
322                            setEmailAddressVerified(emailAddressVerified);
323                    }
324    
325                    Integer status = (Integer)attributes.get("status");
326    
327                    if (status != null) {
328                            setStatus(status);
329                    }
330            }
331    
332            /**
333            * Returns the primary key of this user.
334            *
335            * @return the primary key of this user
336            */
337            public long getPrimaryKey() {
338                    return _user.getPrimaryKey();
339            }
340    
341            /**
342            * Sets the primary key of this user.
343            *
344            * @param primaryKey the primary key of this user
345            */
346            public void setPrimaryKey(long primaryKey) {
347                    _user.setPrimaryKey(primaryKey);
348            }
349    
350            /**
351            * Returns the uuid of this user.
352            *
353            * @return the uuid of this user
354            */
355            public java.lang.String getUuid() {
356                    return _user.getUuid();
357            }
358    
359            /**
360            * Sets the uuid of this user.
361            *
362            * @param uuid the uuid of this user
363            */
364            public void setUuid(java.lang.String uuid) {
365                    _user.setUuid(uuid);
366            }
367    
368            /**
369            * Returns the user ID of this user.
370            *
371            * @return the user ID of this user
372            */
373            public long getUserId() {
374                    return _user.getUserId();
375            }
376    
377            /**
378            * Sets the user ID of this user.
379            *
380            * @param userId the user ID of this user
381            */
382            public void setUserId(long userId) {
383                    _user.setUserId(userId);
384            }
385    
386            /**
387            * Returns the user uuid of this user.
388            *
389            * @return the user uuid of this user
390            * @throws SystemException if a system exception occurred
391            */
392            public java.lang.String getUserUuid()
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _user.getUserUuid();
395            }
396    
397            /**
398            * Sets the user uuid of this user.
399            *
400            * @param userUuid the user uuid of this user
401            */
402            public void setUserUuid(java.lang.String userUuid) {
403                    _user.setUserUuid(userUuid);
404            }
405    
406            /**
407            * Returns the company ID of this user.
408            *
409            * @return the company ID of this user
410            */
411            public long getCompanyId() {
412                    return _user.getCompanyId();
413            }
414    
415            /**
416            * Sets the company ID of this user.
417            *
418            * @param companyId the company ID of this user
419            */
420            public void setCompanyId(long companyId) {
421                    _user.setCompanyId(companyId);
422            }
423    
424            /**
425            * Returns the create date of this user.
426            *
427            * @return the create date of this user
428            */
429            public java.util.Date getCreateDate() {
430                    return _user.getCreateDate();
431            }
432    
433            /**
434            * Sets the create date of this user.
435            *
436            * @param createDate the create date of this user
437            */
438            public void setCreateDate(java.util.Date createDate) {
439                    _user.setCreateDate(createDate);
440            }
441    
442            /**
443            * Returns the modified date of this user.
444            *
445            * @return the modified date of this user
446            */
447            public java.util.Date getModifiedDate() {
448                    return _user.getModifiedDate();
449            }
450    
451            /**
452            * Sets the modified date of this user.
453            *
454            * @param modifiedDate the modified date of this user
455            */
456            public void setModifiedDate(java.util.Date modifiedDate) {
457                    _user.setModifiedDate(modifiedDate);
458            }
459    
460            /**
461            * Returns the default user of this user.
462            *
463            * @return the default user of this user
464            */
465            public boolean getDefaultUser() {
466                    return _user.getDefaultUser();
467            }
468    
469            /**
470            * Returns <code>true</code> if this user is default user.
471            *
472            * @return <code>true</code> if this user is default user; <code>false</code> otherwise
473            */
474            public boolean isDefaultUser() {
475                    return _user.isDefaultUser();
476            }
477    
478            /**
479            * Sets whether this user is default user.
480            *
481            * @param defaultUser the default user of this user
482            */
483            public void setDefaultUser(boolean defaultUser) {
484                    _user.setDefaultUser(defaultUser);
485            }
486    
487            /**
488            * Returns the contact ID of this user.
489            *
490            * @return the contact ID of this user
491            */
492            public long getContactId() {
493                    return _user.getContactId();
494            }
495    
496            /**
497            * Sets the contact ID of this user.
498            *
499            * @param contactId the contact ID of this user
500            */
501            public void setContactId(long contactId) {
502                    _user.setContactId(contactId);
503            }
504    
505            /**
506            * Returns the password of this user.
507            *
508            * @return the password of this user
509            */
510            public java.lang.String getPassword() {
511                    return _user.getPassword();
512            }
513    
514            /**
515            * Sets the password of this user.
516            *
517            * @param password the password of this user
518            */
519            public void setPassword(java.lang.String password) {
520                    _user.setPassword(password);
521            }
522    
523            /**
524            * Returns the password encrypted of this user.
525            *
526            * @return the password encrypted of this user
527            */
528            public boolean getPasswordEncrypted() {
529                    return _user.getPasswordEncrypted();
530            }
531    
532            /**
533            * Returns <code>true</code> if this user is password encrypted.
534            *
535            * @return <code>true</code> if this user is password encrypted; <code>false</code> otherwise
536            */
537            public boolean isPasswordEncrypted() {
538                    return _user.isPasswordEncrypted();
539            }
540    
541            /**
542            * Sets whether this user is password encrypted.
543            *
544            * @param passwordEncrypted the password encrypted of this user
545            */
546            public void setPasswordEncrypted(boolean passwordEncrypted) {
547                    _user.setPasswordEncrypted(passwordEncrypted);
548            }
549    
550            /**
551            * Returns the password reset of this user.
552            *
553            * @return the password reset of this user
554            */
555            public boolean getPasswordReset() {
556                    return _user.getPasswordReset();
557            }
558    
559            /**
560            * Returns <code>true</code> if this user is password reset.
561            *
562            * @return <code>true</code> if this user is password reset; <code>false</code> otherwise
563            */
564            public boolean isPasswordReset() {
565                    return _user.isPasswordReset();
566            }
567    
568            /**
569            * Sets whether this user is password reset.
570            *
571            * @param passwordReset the password reset of this user
572            */
573            public void setPasswordReset(boolean passwordReset) {
574                    _user.setPasswordReset(passwordReset);
575            }
576    
577            /**
578            * Returns the password modified date of this user.
579            *
580            * @return the password modified date of this user
581            */
582            public java.util.Date getPasswordModifiedDate() {
583                    return _user.getPasswordModifiedDate();
584            }
585    
586            /**
587            * Sets the password modified date of this user.
588            *
589            * @param passwordModifiedDate the password modified date of this user
590            */
591            public void setPasswordModifiedDate(java.util.Date passwordModifiedDate) {
592                    _user.setPasswordModifiedDate(passwordModifiedDate);
593            }
594    
595            /**
596            * Returns the digest of this user.
597            *
598            * @return the digest of this user
599            */
600            public java.lang.String getDigest() {
601                    return _user.getDigest();
602            }
603    
604            /**
605            * Sets the digest of this user.
606            *
607            * @param digest the digest of this user
608            */
609            public void setDigest(java.lang.String digest) {
610                    _user.setDigest(digest);
611            }
612    
613            /**
614            * Returns the reminder query question of this user.
615            *
616            * @return the reminder query question of this user
617            */
618            public java.lang.String getReminderQueryQuestion() {
619                    return _user.getReminderQueryQuestion();
620            }
621    
622            /**
623            * Sets the reminder query question of this user.
624            *
625            * @param reminderQueryQuestion the reminder query question of this user
626            */
627            public void setReminderQueryQuestion(java.lang.String reminderQueryQuestion) {
628                    _user.setReminderQueryQuestion(reminderQueryQuestion);
629            }
630    
631            /**
632            * Returns the reminder query answer of this user.
633            *
634            * @return the reminder query answer of this user
635            */
636            public java.lang.String getReminderQueryAnswer() {
637                    return _user.getReminderQueryAnswer();
638            }
639    
640            /**
641            * Sets the reminder query answer of this user.
642            *
643            * @param reminderQueryAnswer the reminder query answer of this user
644            */
645            public void setReminderQueryAnswer(java.lang.String reminderQueryAnswer) {
646                    _user.setReminderQueryAnswer(reminderQueryAnswer);
647            }
648    
649            /**
650            * Returns the grace login count of this user.
651            *
652            * @return the grace login count of this user
653            */
654            public int getGraceLoginCount() {
655                    return _user.getGraceLoginCount();
656            }
657    
658            /**
659            * Sets the grace login count of this user.
660            *
661            * @param graceLoginCount the grace login count of this user
662            */
663            public void setGraceLoginCount(int graceLoginCount) {
664                    _user.setGraceLoginCount(graceLoginCount);
665            }
666    
667            /**
668            * Returns the screen name of this user.
669            *
670            * @return the screen name of this user
671            */
672            public java.lang.String getScreenName() {
673                    return _user.getScreenName();
674            }
675    
676            /**
677            * Sets the screen name of this user.
678            *
679            * @param screenName the screen name of this user
680            */
681            public void setScreenName(java.lang.String screenName) {
682                    _user.setScreenName(screenName);
683            }
684    
685            /**
686            * Returns the email address of this user.
687            *
688            * @return the email address of this user
689            */
690            public java.lang.String getEmailAddress() {
691                    return _user.getEmailAddress();
692            }
693    
694            /**
695            * Sets the email address of this user.
696            *
697            * @param emailAddress the email address of this user
698            */
699            public void setEmailAddress(java.lang.String emailAddress) {
700                    _user.setEmailAddress(emailAddress);
701            }
702    
703            /**
704            * Returns the facebook ID of this user.
705            *
706            * @return the facebook ID of this user
707            */
708            public long getFacebookId() {
709                    return _user.getFacebookId();
710            }
711    
712            /**
713            * Sets the facebook ID of this user.
714            *
715            * @param facebookId the facebook ID of this user
716            */
717            public void setFacebookId(long facebookId) {
718                    _user.setFacebookId(facebookId);
719            }
720    
721            /**
722            * Returns the open ID of this user.
723            *
724            * @return the open ID of this user
725            */
726            public java.lang.String getOpenId() {
727                    return _user.getOpenId();
728            }
729    
730            /**
731            * Sets the open ID of this user.
732            *
733            * @param openId the open ID of this user
734            */
735            public void setOpenId(java.lang.String openId) {
736                    _user.setOpenId(openId);
737            }
738    
739            /**
740            * Returns the portrait ID of this user.
741            *
742            * @return the portrait ID of this user
743            */
744            public long getPortraitId() {
745                    return _user.getPortraitId();
746            }
747    
748            /**
749            * Sets the portrait ID of this user.
750            *
751            * @param portraitId the portrait ID of this user
752            */
753            public void setPortraitId(long portraitId) {
754                    _user.setPortraitId(portraitId);
755            }
756    
757            /**
758            * Returns the language ID of this user.
759            *
760            * @return the language ID of this user
761            */
762            public java.lang.String getLanguageId() {
763                    return _user.getLanguageId();
764            }
765    
766            /**
767            * Sets the language ID of this user.
768            *
769            * @param languageId the language ID of this user
770            */
771            public void setLanguageId(java.lang.String languageId) {
772                    _user.setLanguageId(languageId);
773            }
774    
775            /**
776            * Returns the time zone ID of this user.
777            *
778            * @return the time zone ID of this user
779            */
780            public java.lang.String getTimeZoneId() {
781                    return _user.getTimeZoneId();
782            }
783    
784            /**
785            * Sets the time zone ID of this user.
786            *
787            * @param timeZoneId the time zone ID of this user
788            */
789            public void setTimeZoneId(java.lang.String timeZoneId) {
790                    _user.setTimeZoneId(timeZoneId);
791            }
792    
793            /**
794            * Returns the greeting of this user.
795            *
796            * @return the greeting of this user
797            */
798            public java.lang.String getGreeting() {
799                    return _user.getGreeting();
800            }
801    
802            /**
803            * Sets the greeting of this user.
804            *
805            * @param greeting the greeting of this user
806            */
807            public void setGreeting(java.lang.String greeting) {
808                    _user.setGreeting(greeting);
809            }
810    
811            /**
812            * Returns the comments of this user.
813            *
814            * @return the comments of this user
815            */
816            public java.lang.String getComments() {
817                    return _user.getComments();
818            }
819    
820            /**
821            * Sets the comments of this user.
822            *
823            * @param comments the comments of this user
824            */
825            public void setComments(java.lang.String comments) {
826                    _user.setComments(comments);
827            }
828    
829            /**
830            * Returns the first name of this user.
831            *
832            * @return the first name of this user
833            */
834            public java.lang.String getFirstName() {
835                    return _user.getFirstName();
836            }
837    
838            /**
839            * Sets the first name of this user.
840            *
841            * @param firstName the first name of this user
842            */
843            public void setFirstName(java.lang.String firstName) {
844                    _user.setFirstName(firstName);
845            }
846    
847            /**
848            * Returns the middle name of this user.
849            *
850            * @return the middle name of this user
851            */
852            public java.lang.String getMiddleName() {
853                    return _user.getMiddleName();
854            }
855    
856            /**
857            * Sets the middle name of this user.
858            *
859            * @param middleName the middle name of this user
860            */
861            public void setMiddleName(java.lang.String middleName) {
862                    _user.setMiddleName(middleName);
863            }
864    
865            /**
866            * Returns the last name of this user.
867            *
868            * @return the last name of this user
869            */
870            public java.lang.String getLastName() {
871                    return _user.getLastName();
872            }
873    
874            /**
875            * Sets the last name of this user.
876            *
877            * @param lastName the last name of this user
878            */
879            public void setLastName(java.lang.String lastName) {
880                    _user.setLastName(lastName);
881            }
882    
883            /**
884            * Returns the job title of this user.
885            *
886            * @return the job title of this user
887            */
888            public java.lang.String getJobTitle() {
889                    return _user.getJobTitle();
890            }
891    
892            /**
893            * Sets the job title of this user.
894            *
895            * @param jobTitle the job title of this user
896            */
897            public void setJobTitle(java.lang.String jobTitle) {
898                    _user.setJobTitle(jobTitle);
899            }
900    
901            /**
902            * Returns the login date of this user.
903            *
904            * @return the login date of this user
905            */
906            public java.util.Date getLoginDate() {
907                    return _user.getLoginDate();
908            }
909    
910            /**
911            * Sets the login date of this user.
912            *
913            * @param loginDate the login date of this user
914            */
915            public void setLoginDate(java.util.Date loginDate) {
916                    _user.setLoginDate(loginDate);
917            }
918    
919            /**
920            * Returns the login i p of this user.
921            *
922            * @return the login i p of this user
923            */
924            public java.lang.String getLoginIP() {
925                    return _user.getLoginIP();
926            }
927    
928            /**
929            * Sets the login i p of this user.
930            *
931            * @param loginIP the login i p of this user
932            */
933            public void setLoginIP(java.lang.String loginIP) {
934                    _user.setLoginIP(loginIP);
935            }
936    
937            /**
938            * Returns the last login date of this user.
939            *
940            * @return the last login date of this user
941            */
942            public java.util.Date getLastLoginDate() {
943                    return _user.getLastLoginDate();
944            }
945    
946            /**
947            * Sets the last login date of this user.
948            *
949            * @param lastLoginDate the last login date of this user
950            */
951            public void setLastLoginDate(java.util.Date lastLoginDate) {
952                    _user.setLastLoginDate(lastLoginDate);
953            }
954    
955            /**
956            * Returns the last login i p of this user.
957            *
958            * @return the last login i p of this user
959            */
960            public java.lang.String getLastLoginIP() {
961                    return _user.getLastLoginIP();
962            }
963    
964            /**
965            * Sets the last login i p of this user.
966            *
967            * @param lastLoginIP the last login i p of this user
968            */
969            public void setLastLoginIP(java.lang.String lastLoginIP) {
970                    _user.setLastLoginIP(lastLoginIP);
971            }
972    
973            /**
974            * Returns the last failed login date of this user.
975            *
976            * @return the last failed login date of this user
977            */
978            public java.util.Date getLastFailedLoginDate() {
979                    return _user.getLastFailedLoginDate();
980            }
981    
982            /**
983            * Sets the last failed login date of this user.
984            *
985            * @param lastFailedLoginDate the last failed login date of this user
986            */
987            public void setLastFailedLoginDate(java.util.Date lastFailedLoginDate) {
988                    _user.setLastFailedLoginDate(lastFailedLoginDate);
989            }
990    
991            /**
992            * Returns the failed login attempts of this user.
993            *
994            * @return the failed login attempts of this user
995            */
996            public int getFailedLoginAttempts() {
997                    return _user.getFailedLoginAttempts();
998            }
999    
1000            /**
1001            * Sets the failed login attempts of this user.
1002            *
1003            * @param failedLoginAttempts the failed login attempts of this user
1004            */
1005            public void setFailedLoginAttempts(int failedLoginAttempts) {
1006                    _user.setFailedLoginAttempts(failedLoginAttempts);
1007            }
1008    
1009            /**
1010            * Returns the lockout of this user.
1011            *
1012            * @return the lockout of this user
1013            */
1014            public boolean getLockout() {
1015                    return _user.getLockout();
1016            }
1017    
1018            /**
1019            * Returns <code>true</code> if this user is lockout.
1020            *
1021            * @return <code>true</code> if this user is lockout; <code>false</code> otherwise
1022            */
1023            public boolean isLockout() {
1024                    return _user.isLockout();
1025            }
1026    
1027            /**
1028            * Sets whether this user is lockout.
1029            *
1030            * @param lockout the lockout of this user
1031            */
1032            public void setLockout(boolean lockout) {
1033                    _user.setLockout(lockout);
1034            }
1035    
1036            /**
1037            * Returns the lockout date of this user.
1038            *
1039            * @return the lockout date of this user
1040            */
1041            public java.util.Date getLockoutDate() {
1042                    return _user.getLockoutDate();
1043            }
1044    
1045            /**
1046            * Sets the lockout date of this user.
1047            *
1048            * @param lockoutDate the lockout date of this user
1049            */
1050            public void setLockoutDate(java.util.Date lockoutDate) {
1051                    _user.setLockoutDate(lockoutDate);
1052            }
1053    
1054            /**
1055            * Returns the agreed to terms of use of this user.
1056            *
1057            * @return the agreed to terms of use of this user
1058            */
1059            public boolean getAgreedToTermsOfUse() {
1060                    return _user.getAgreedToTermsOfUse();
1061            }
1062    
1063            /**
1064            * Returns <code>true</code> if this user is agreed to terms of use.
1065            *
1066            * @return <code>true</code> if this user is agreed to terms of use; <code>false</code> otherwise
1067            */
1068            public boolean isAgreedToTermsOfUse() {
1069                    return _user.isAgreedToTermsOfUse();
1070            }
1071    
1072            /**
1073            * Sets whether this user is agreed to terms of use.
1074            *
1075            * @param agreedToTermsOfUse the agreed to terms of use of this user
1076            */
1077            public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
1078                    _user.setAgreedToTermsOfUse(agreedToTermsOfUse);
1079            }
1080    
1081            /**
1082            * Returns the email address verified of this user.
1083            *
1084            * @return the email address verified of this user
1085            */
1086            public boolean getEmailAddressVerified() {
1087                    return _user.getEmailAddressVerified();
1088            }
1089    
1090            /**
1091            * Returns <code>true</code> if this user is email address verified.
1092            *
1093            * @return <code>true</code> if this user is email address verified; <code>false</code> otherwise
1094            */
1095            public boolean isEmailAddressVerified() {
1096                    return _user.isEmailAddressVerified();
1097            }
1098    
1099            /**
1100            * Sets whether this user is email address verified.
1101            *
1102            * @param emailAddressVerified the email address verified of this user
1103            */
1104            public void setEmailAddressVerified(boolean emailAddressVerified) {
1105                    _user.setEmailAddressVerified(emailAddressVerified);
1106            }
1107    
1108            /**
1109            * Returns the status of this user.
1110            *
1111            * @return the status of this user
1112            */
1113            public int getStatus() {
1114                    return _user.getStatus();
1115            }
1116    
1117            /**
1118            * Sets the status of this user.
1119            *
1120            * @param status the status of this user
1121            */
1122            public void setStatus(int status) {
1123                    _user.setStatus(status);
1124            }
1125    
1126            public boolean isNew() {
1127                    return _user.isNew();
1128            }
1129    
1130            public void setNew(boolean n) {
1131                    _user.setNew(n);
1132            }
1133    
1134            public boolean isCachedModel() {
1135                    return _user.isCachedModel();
1136            }
1137    
1138            public void setCachedModel(boolean cachedModel) {
1139                    _user.setCachedModel(cachedModel);
1140            }
1141    
1142            public boolean isEscapedModel() {
1143                    return _user.isEscapedModel();
1144            }
1145    
1146            public java.io.Serializable getPrimaryKeyObj() {
1147                    return _user.getPrimaryKeyObj();
1148            }
1149    
1150            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1151                    _user.setPrimaryKeyObj(primaryKeyObj);
1152            }
1153    
1154            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1155                    return _user.getExpandoBridge();
1156            }
1157    
1158            public void setExpandoBridgeAttributes(
1159                    com.liferay.portal.service.ServiceContext serviceContext) {
1160                    _user.setExpandoBridgeAttributes(serviceContext);
1161            }
1162    
1163            @Override
1164            public java.lang.Object clone() {
1165                    return new UserWrapper((User)_user.clone());
1166            }
1167    
1168            public int compareTo(com.liferay.portal.model.User user) {
1169                    return _user.compareTo(user);
1170            }
1171    
1172            @Override
1173            public int hashCode() {
1174                    return _user.hashCode();
1175            }
1176    
1177            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.User> toCacheModel() {
1178                    return _user.toCacheModel();
1179            }
1180    
1181            public com.liferay.portal.model.User toEscapedModel() {
1182                    return new UserWrapper(_user.toEscapedModel());
1183            }
1184    
1185            public com.liferay.portal.model.User toUnescapedModel() {
1186                    return new UserWrapper(_user.toUnescapedModel());
1187            }
1188    
1189            @Override
1190            public java.lang.String toString() {
1191                    return _user.toString();
1192            }
1193    
1194            public java.lang.String toXmlString() {
1195                    return _user.toXmlString();
1196            }
1197    
1198            public void persist()
1199                    throws com.liferay.portal.kernel.exception.SystemException {
1200                    _user.persist();
1201            }
1202    
1203            public java.util.List<com.liferay.portal.model.Address> getAddresses()
1204                    throws com.liferay.portal.kernel.exception.SystemException {
1205                    return _user.getAddresses();
1206            }
1207    
1208            public java.util.Date getBirthday()
1209                    throws com.liferay.portal.kernel.exception.PortalException,
1210                            com.liferay.portal.kernel.exception.SystemException {
1211                    return _user.getBirthday();
1212            }
1213    
1214            public java.lang.String getCompanyMx()
1215                    throws com.liferay.portal.kernel.exception.PortalException,
1216                            com.liferay.portal.kernel.exception.SystemException {
1217                    return _user.getCompanyMx();
1218            }
1219    
1220            public com.liferay.portal.model.Contact getContact()
1221                    throws com.liferay.portal.kernel.exception.PortalException,
1222                            com.liferay.portal.kernel.exception.SystemException {
1223                    return _user.getContact();
1224            }
1225    
1226            public java.lang.String getDigest(java.lang.String password) {
1227                    return _user.getDigest(password);
1228            }
1229    
1230            public java.lang.String getDisplayEmailAddress() {
1231                    return _user.getDisplayEmailAddress();
1232            }
1233    
1234            public java.lang.String getDisplayURL(java.lang.String portalURL,
1235                    java.lang.String mainPath)
1236                    throws com.liferay.portal.kernel.exception.PortalException,
1237                            com.liferay.portal.kernel.exception.SystemException {
1238                    return _user.getDisplayURL(portalURL, mainPath);
1239            }
1240    
1241            public java.lang.String getDisplayURL(java.lang.String portalURL,
1242                    java.lang.String mainPath, boolean privateLayout)
1243                    throws com.liferay.portal.kernel.exception.PortalException,
1244                            com.liferay.portal.kernel.exception.SystemException {
1245                    return _user.getDisplayURL(portalURL, mainPath, privateLayout);
1246            }
1247    
1248            public java.lang.String getDisplayURL(
1249                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1250                    throws com.liferay.portal.kernel.exception.PortalException,
1251                            com.liferay.portal.kernel.exception.SystemException {
1252                    return _user.getDisplayURL(themeDisplay);
1253            }
1254    
1255            public java.lang.String getDisplayURL(
1256                    com.liferay.portal.theme.ThemeDisplay themeDisplay,
1257                    boolean privateLayout)
1258                    throws com.liferay.portal.kernel.exception.PortalException,
1259                            com.liferay.portal.kernel.exception.SystemException {
1260                    return _user.getDisplayURL(themeDisplay, privateLayout);
1261            }
1262    
1263            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses()
1264                    throws com.liferay.portal.kernel.exception.SystemException {
1265                    return _user.getEmailAddresses();
1266            }
1267    
1268            public boolean getFemale()
1269                    throws com.liferay.portal.kernel.exception.PortalException,
1270                            com.liferay.portal.kernel.exception.SystemException {
1271                    return _user.getFemale();
1272            }
1273    
1274            public java.lang.String getFullName() {
1275                    return _user.getFullName();
1276            }
1277    
1278            public com.liferay.portal.model.Group getGroup()
1279                    throws com.liferay.portal.kernel.exception.PortalException,
1280                            com.liferay.portal.kernel.exception.SystemException {
1281                    return _user.getGroup();
1282            }
1283    
1284            public long getGroupId()
1285                    throws com.liferay.portal.kernel.exception.PortalException,
1286                            com.liferay.portal.kernel.exception.SystemException {
1287                    return _user.getGroupId();
1288            }
1289    
1290            public long[] getGroupIds()
1291                    throws com.liferay.portal.kernel.exception.PortalException,
1292                            com.liferay.portal.kernel.exception.SystemException {
1293                    return _user.getGroupIds();
1294            }
1295    
1296            public java.util.List<com.liferay.portal.model.Group> getGroups()
1297                    throws com.liferay.portal.kernel.exception.PortalException,
1298                            com.liferay.portal.kernel.exception.SystemException {
1299                    return _user.getGroups();
1300            }
1301    
1302            public java.util.Locale getLocale() {
1303                    return _user.getLocale();
1304            }
1305    
1306            public java.lang.String getLogin()
1307                    throws com.liferay.portal.kernel.exception.PortalException,
1308                            com.liferay.portal.kernel.exception.SystemException {
1309                    return _user.getLogin();
1310            }
1311    
1312            public boolean getMale()
1313                    throws com.liferay.portal.kernel.exception.PortalException,
1314                            com.liferay.portal.kernel.exception.SystemException {
1315                    return _user.getMale();
1316            }
1317    
1318            public java.util.List<com.liferay.portal.model.Group> getMySites()
1319                    throws com.liferay.portal.kernel.exception.PortalException,
1320                            com.liferay.portal.kernel.exception.SystemException {
1321                    return _user.getMySites();
1322            }
1323    
1324            public java.util.List<com.liferay.portal.model.Group> getMySites(
1325                    boolean includeControlPanel, int max)
1326                    throws com.liferay.portal.kernel.exception.PortalException,
1327                            com.liferay.portal.kernel.exception.SystemException {
1328                    return _user.getMySites(includeControlPanel, max);
1329            }
1330    
1331            public java.util.List<com.liferay.portal.model.Group> getMySites(int max)
1332                    throws com.liferay.portal.kernel.exception.PortalException,
1333                            com.liferay.portal.kernel.exception.SystemException {
1334                    return _user.getMySites(max);
1335            }
1336    
1337            public java.util.List<com.liferay.portal.model.Group> getMySites(
1338                    java.lang.String[] classNames, boolean includeControlPanel, int max)
1339                    throws com.liferay.portal.kernel.exception.PortalException,
1340                            com.liferay.portal.kernel.exception.SystemException {
1341                    return _user.getMySites(classNames, includeControlPanel, max);
1342            }
1343    
1344            public java.util.List<com.liferay.portal.model.Group> getMySites(
1345                    java.lang.String[] classNames, int max)
1346                    throws com.liferay.portal.kernel.exception.PortalException,
1347                            com.liferay.portal.kernel.exception.SystemException {
1348                    return _user.getMySites(classNames, max);
1349            }
1350    
1351            public long[] getOrganizationIds()
1352                    throws com.liferay.portal.kernel.exception.PortalException,
1353                            com.liferay.portal.kernel.exception.SystemException {
1354                    return _user.getOrganizationIds();
1355            }
1356    
1357            public long[] getOrganizationIds(boolean includeAdministrative)
1358                    throws com.liferay.portal.kernel.exception.PortalException,
1359                            com.liferay.portal.kernel.exception.SystemException {
1360                    return _user.getOrganizationIds(includeAdministrative);
1361            }
1362    
1363            public java.util.List<com.liferay.portal.model.Organization> getOrganizations()
1364                    throws com.liferay.portal.kernel.exception.PortalException,
1365                            com.liferay.portal.kernel.exception.SystemException {
1366                    return _user.getOrganizations();
1367            }
1368    
1369            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1370                    boolean includeAdministrative)
1371                    throws com.liferay.portal.kernel.exception.PortalException,
1372                            com.liferay.portal.kernel.exception.SystemException {
1373                    return _user.getOrganizations(includeAdministrative);
1374            }
1375    
1376            public boolean getPasswordModified() {
1377                    return _user.getPasswordModified();
1378            }
1379    
1380            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
1381                    throws com.liferay.portal.kernel.exception.PortalException,
1382                            com.liferay.portal.kernel.exception.SystemException {
1383                    return _user.getPasswordPolicy();
1384            }
1385    
1386            public java.lang.String getPasswordUnencrypted() {
1387                    return _user.getPasswordUnencrypted();
1388            }
1389    
1390            public java.util.List<com.liferay.portal.model.Phone> getPhones()
1391                    throws com.liferay.portal.kernel.exception.SystemException {
1392                    return _user.getPhones();
1393            }
1394    
1395            public java.lang.String getPortraitURL(
1396                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1397                    throws com.liferay.portal.kernel.exception.PortalException,
1398                            com.liferay.portal.kernel.exception.SystemException {
1399                    return _user.getPortraitURL(themeDisplay);
1400            }
1401    
1402            public int getPrivateLayoutsPageCount()
1403                    throws com.liferay.portal.kernel.exception.PortalException,
1404                            com.liferay.portal.kernel.exception.SystemException {
1405                    return _user.getPrivateLayoutsPageCount();
1406            }
1407    
1408            public int getPublicLayoutsPageCount()
1409                    throws com.liferay.portal.kernel.exception.PortalException,
1410                            com.liferay.portal.kernel.exception.SystemException {
1411                    return _user.getPublicLayoutsPageCount();
1412            }
1413    
1414            public java.util.Set<java.lang.String> getReminderQueryQuestions()
1415                    throws com.liferay.portal.kernel.exception.PortalException,
1416                            com.liferay.portal.kernel.exception.SystemException {
1417                    return _user.getReminderQueryQuestions();
1418            }
1419    
1420            public long[] getRoleIds()
1421                    throws com.liferay.portal.kernel.exception.SystemException {
1422                    return _user.getRoleIds();
1423            }
1424    
1425            public java.util.List<com.liferay.portal.model.Role> getRoles()
1426                    throws com.liferay.portal.kernel.exception.SystemException {
1427                    return _user.getRoles();
1428            }
1429    
1430            public long[] getTeamIds()
1431                    throws com.liferay.portal.kernel.exception.SystemException {
1432                    return _user.getTeamIds();
1433            }
1434    
1435            public java.util.List<com.liferay.portal.model.Team> getTeams()
1436                    throws com.liferay.portal.kernel.exception.SystemException {
1437                    return _user.getTeams();
1438            }
1439    
1440            public java.util.TimeZone getTimeZone() {
1441                    return _user.getTimeZone();
1442            }
1443    
1444            public long[] getUserGroupIds()
1445                    throws com.liferay.portal.kernel.exception.SystemException {
1446                    return _user.getUserGroupIds();
1447            }
1448    
1449            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups()
1450                    throws com.liferay.portal.kernel.exception.SystemException {
1451                    return _user.getUserGroups();
1452            }
1453    
1454            public java.util.List<com.liferay.portal.model.Website> getWebsites()
1455                    throws com.liferay.portal.kernel.exception.SystemException {
1456                    return _user.getWebsites();
1457            }
1458    
1459            public boolean hasCompanyMx()
1460                    throws com.liferay.portal.kernel.exception.PortalException,
1461                            com.liferay.portal.kernel.exception.SystemException {
1462                    return _user.hasCompanyMx();
1463            }
1464    
1465            public boolean hasCompanyMx(java.lang.String emailAddress)
1466                    throws com.liferay.portal.kernel.exception.PortalException,
1467                            com.liferay.portal.kernel.exception.SystemException {
1468                    return _user.hasCompanyMx(emailAddress);
1469            }
1470    
1471            public boolean hasMySites()
1472                    throws com.liferay.portal.kernel.exception.PortalException,
1473                            com.liferay.portal.kernel.exception.SystemException {
1474                    return _user.hasMySites();
1475            }
1476    
1477            public boolean hasOrganization()
1478                    throws com.liferay.portal.kernel.exception.PortalException,
1479                            com.liferay.portal.kernel.exception.SystemException {
1480                    return _user.hasOrganization();
1481            }
1482    
1483            public boolean hasPrivateLayouts()
1484                    throws com.liferay.portal.kernel.exception.PortalException,
1485                            com.liferay.portal.kernel.exception.SystemException {
1486                    return _user.hasPrivateLayouts();
1487            }
1488    
1489            public boolean hasPublicLayouts()
1490                    throws com.liferay.portal.kernel.exception.PortalException,
1491                            com.liferay.portal.kernel.exception.SystemException {
1492                    return _user.hasPublicLayouts();
1493            }
1494    
1495            public boolean hasReminderQuery() {
1496                    return _user.hasReminderQuery();
1497            }
1498    
1499            public boolean isActive() {
1500                    return _user.isActive();
1501            }
1502    
1503            public boolean isFemale()
1504                    throws com.liferay.portal.kernel.exception.PortalException,
1505                            com.liferay.portal.kernel.exception.SystemException {
1506                    return _user.isFemale();
1507            }
1508    
1509            public boolean isMale()
1510                    throws com.liferay.portal.kernel.exception.PortalException,
1511                            com.liferay.portal.kernel.exception.SystemException {
1512                    return _user.isMale();
1513            }
1514    
1515            public boolean isPasswordModified() {
1516                    return _user.isPasswordModified();
1517            }
1518    
1519            public void setPasswordModified(boolean passwordModified) {
1520                    _user.setPasswordModified(passwordModified);
1521            }
1522    
1523            public void setPasswordUnencrypted(java.lang.String passwordUnencrypted) {
1524                    _user.setPasswordUnencrypted(passwordUnencrypted);
1525            }
1526    
1527            @Override
1528            public boolean equals(Object obj) {
1529                    if (this == obj) {
1530                            return true;
1531                    }
1532    
1533                    if (!(obj instanceof UserWrapper)) {
1534                            return false;
1535                    }
1536    
1537                    UserWrapper userWrapper = (UserWrapper)obj;
1538    
1539                    if (Validator.equals(_user, userWrapper._user)) {
1540                            return true;
1541                    }
1542    
1543                    return false;
1544            }
1545    
1546            /**
1547             * @deprecated Renamed to {@link #getWrappedModel}
1548             */
1549            public User getWrappedUser() {
1550                    return _user;
1551            }
1552    
1553            public User getWrappedModel() {
1554                    return _user;
1555            }
1556    
1557            public void resetOriginalValues() {
1558                    _user.resetOriginalValues();
1559            }
1560    
1561            private User _user;
1562    }