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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.lar.StagedModelType;
020    import com.liferay.portal.kernel.util.Validator;
021    
022    import java.util.Date;
023    import java.util.HashMap;
024    import java.util.Map;
025    
026    /**
027     * <p>
028     * This class is a wrapper for {@link User}.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see User
033     * @generated
034     */
035    @ProviderType
036    public class UserWrapper implements User, ModelWrapper<User> {
037            public UserWrapper(User user) {
038                    _user = user;
039            }
040    
041            @Override
042            public Class<?> getModelClass() {
043                    return User.class;
044            }
045    
046            @Override
047            public String getModelClassName() {
048                    return User.class.getName();
049            }
050    
051            @Override
052            public Map<String, Object> getModelAttributes() {
053                    Map<String, Object> attributes = new HashMap<String, Object>();
054    
055                    attributes.put("uuid", getUuid());
056                    attributes.put("userId", getUserId());
057                    attributes.put("companyId", getCompanyId());
058                    attributes.put("createDate", getCreateDate());
059                    attributes.put("modifiedDate", getModifiedDate());
060                    attributes.put("defaultUser", getDefaultUser());
061                    attributes.put("contactId", getContactId());
062                    attributes.put("password", getPassword());
063                    attributes.put("passwordEncrypted", getPasswordEncrypted());
064                    attributes.put("passwordReset", getPasswordReset());
065                    attributes.put("passwordModifiedDate", getPasswordModifiedDate());
066                    attributes.put("digest", getDigest());
067                    attributes.put("reminderQueryQuestion", getReminderQueryQuestion());
068                    attributes.put("reminderQueryAnswer", getReminderQueryAnswer());
069                    attributes.put("graceLoginCount", getGraceLoginCount());
070                    attributes.put("screenName", getScreenName());
071                    attributes.put("emailAddress", getEmailAddress());
072                    attributes.put("facebookId", getFacebookId());
073                    attributes.put("ldapServerId", getLdapServerId());
074                    attributes.put("openId", getOpenId());
075                    attributes.put("portraitId", getPortraitId());
076                    attributes.put("languageId", getLanguageId());
077                    attributes.put("timeZoneId", getTimeZoneId());
078                    attributes.put("greeting", getGreeting());
079                    attributes.put("comments", getComments());
080                    attributes.put("firstName", getFirstName());
081                    attributes.put("middleName", getMiddleName());
082                    attributes.put("lastName", getLastName());
083                    attributes.put("jobTitle", getJobTitle());
084                    attributes.put("loginDate", getLoginDate());
085                    attributes.put("loginIP", getLoginIP());
086                    attributes.put("lastLoginDate", getLastLoginDate());
087                    attributes.put("lastLoginIP", getLastLoginIP());
088                    attributes.put("lastFailedLoginDate", getLastFailedLoginDate());
089                    attributes.put("failedLoginAttempts", getFailedLoginAttempts());
090                    attributes.put("lockout", getLockout());
091                    attributes.put("lockoutDate", getLockoutDate());
092                    attributes.put("agreedToTermsOfUse", getAgreedToTermsOfUse());
093                    attributes.put("emailAddressVerified", getEmailAddressVerified());
094                    attributes.put("status", getStatus());
095    
096                    return attributes;
097            }
098    
099            @Override
100            public void setModelAttributes(Map<String, Object> attributes) {
101                    String uuid = (String)attributes.get("uuid");
102    
103                    if (uuid != null) {
104                            setUuid(uuid);
105                    }
106    
107                    Long userId = (Long)attributes.get("userId");
108    
109                    if (userId != null) {
110                            setUserId(userId);
111                    }
112    
113                    Long companyId = (Long)attributes.get("companyId");
114    
115                    if (companyId != null) {
116                            setCompanyId(companyId);
117                    }
118    
119                    Date createDate = (Date)attributes.get("createDate");
120    
121                    if (createDate != null) {
122                            setCreateDate(createDate);
123                    }
124    
125                    Date modifiedDate = (Date)attributes.get("modifiedDate");
126    
127                    if (modifiedDate != null) {
128                            setModifiedDate(modifiedDate);
129                    }
130    
131                    Boolean defaultUser = (Boolean)attributes.get("defaultUser");
132    
133                    if (defaultUser != null) {
134                            setDefaultUser(defaultUser);
135                    }
136    
137                    Long contactId = (Long)attributes.get("contactId");
138    
139                    if (contactId != null) {
140                            setContactId(contactId);
141                    }
142    
143                    String password = (String)attributes.get("password");
144    
145                    if (password != null) {
146                            setPassword(password);
147                    }
148    
149                    Boolean passwordEncrypted = (Boolean)attributes.get("passwordEncrypted");
150    
151                    if (passwordEncrypted != null) {
152                            setPasswordEncrypted(passwordEncrypted);
153                    }
154    
155                    Boolean passwordReset = (Boolean)attributes.get("passwordReset");
156    
157                    if (passwordReset != null) {
158                            setPasswordReset(passwordReset);
159                    }
160    
161                    Date passwordModifiedDate = (Date)attributes.get("passwordModifiedDate");
162    
163                    if (passwordModifiedDate != null) {
164                            setPasswordModifiedDate(passwordModifiedDate);
165                    }
166    
167                    String digest = (String)attributes.get("digest");
168    
169                    if (digest != null) {
170                            setDigest(digest);
171                    }
172    
173                    String reminderQueryQuestion = (String)attributes.get(
174                                    "reminderQueryQuestion");
175    
176                    if (reminderQueryQuestion != null) {
177                            setReminderQueryQuestion(reminderQueryQuestion);
178                    }
179    
180                    String reminderQueryAnswer = (String)attributes.get(
181                                    "reminderQueryAnswer");
182    
183                    if (reminderQueryAnswer != null) {
184                            setReminderQueryAnswer(reminderQueryAnswer);
185                    }
186    
187                    Integer graceLoginCount = (Integer)attributes.get("graceLoginCount");
188    
189                    if (graceLoginCount != null) {
190                            setGraceLoginCount(graceLoginCount);
191                    }
192    
193                    String screenName = (String)attributes.get("screenName");
194    
195                    if (screenName != null) {
196                            setScreenName(screenName);
197                    }
198    
199                    String emailAddress = (String)attributes.get("emailAddress");
200    
201                    if (emailAddress != null) {
202                            setEmailAddress(emailAddress);
203                    }
204    
205                    Long facebookId = (Long)attributes.get("facebookId");
206    
207                    if (facebookId != null) {
208                            setFacebookId(facebookId);
209                    }
210    
211                    Long ldapServerId = (Long)attributes.get("ldapServerId");
212    
213                    if (ldapServerId != null) {
214                            setLdapServerId(ldapServerId);
215                    }
216    
217                    String openId = (String)attributes.get("openId");
218    
219                    if (openId != null) {
220                            setOpenId(openId);
221                    }
222    
223                    Long portraitId = (Long)attributes.get("portraitId");
224    
225                    if (portraitId != null) {
226                            setPortraitId(portraitId);
227                    }
228    
229                    String languageId = (String)attributes.get("languageId");
230    
231                    if (languageId != null) {
232                            setLanguageId(languageId);
233                    }
234    
235                    String timeZoneId = (String)attributes.get("timeZoneId");
236    
237                    if (timeZoneId != null) {
238                            setTimeZoneId(timeZoneId);
239                    }
240    
241                    String greeting = (String)attributes.get("greeting");
242    
243                    if (greeting != null) {
244                            setGreeting(greeting);
245                    }
246    
247                    String comments = (String)attributes.get("comments");
248    
249                    if (comments != null) {
250                            setComments(comments);
251                    }
252    
253                    String firstName = (String)attributes.get("firstName");
254    
255                    if (firstName != null) {
256                            setFirstName(firstName);
257                    }
258    
259                    String middleName = (String)attributes.get("middleName");
260    
261                    if (middleName != null) {
262                            setMiddleName(middleName);
263                    }
264    
265                    String lastName = (String)attributes.get("lastName");
266    
267                    if (lastName != null) {
268                            setLastName(lastName);
269                    }
270    
271                    String jobTitle = (String)attributes.get("jobTitle");
272    
273                    if (jobTitle != null) {
274                            setJobTitle(jobTitle);
275                    }
276    
277                    Date loginDate = (Date)attributes.get("loginDate");
278    
279                    if (loginDate != null) {
280                            setLoginDate(loginDate);
281                    }
282    
283                    String loginIP = (String)attributes.get("loginIP");
284    
285                    if (loginIP != null) {
286                            setLoginIP(loginIP);
287                    }
288    
289                    Date lastLoginDate = (Date)attributes.get("lastLoginDate");
290    
291                    if (lastLoginDate != null) {
292                            setLastLoginDate(lastLoginDate);
293                    }
294    
295                    String lastLoginIP = (String)attributes.get("lastLoginIP");
296    
297                    if (lastLoginIP != null) {
298                            setLastLoginIP(lastLoginIP);
299                    }
300    
301                    Date lastFailedLoginDate = (Date)attributes.get("lastFailedLoginDate");
302    
303                    if (lastFailedLoginDate != null) {
304                            setLastFailedLoginDate(lastFailedLoginDate);
305                    }
306    
307                    Integer failedLoginAttempts = (Integer)attributes.get(
308                                    "failedLoginAttempts");
309    
310                    if (failedLoginAttempts != null) {
311                            setFailedLoginAttempts(failedLoginAttempts);
312                    }
313    
314                    Boolean lockout = (Boolean)attributes.get("lockout");
315    
316                    if (lockout != null) {
317                            setLockout(lockout);
318                    }
319    
320                    Date lockoutDate = (Date)attributes.get("lockoutDate");
321    
322                    if (lockoutDate != null) {
323                            setLockoutDate(lockoutDate);
324                    }
325    
326                    Boolean agreedToTermsOfUse = (Boolean)attributes.get(
327                                    "agreedToTermsOfUse");
328    
329                    if (agreedToTermsOfUse != null) {
330                            setAgreedToTermsOfUse(agreedToTermsOfUse);
331                    }
332    
333                    Boolean emailAddressVerified = (Boolean)attributes.get(
334                                    "emailAddressVerified");
335    
336                    if (emailAddressVerified != null) {
337                            setEmailAddressVerified(emailAddressVerified);
338                    }
339    
340                    Integer status = (Integer)attributes.get("status");
341    
342                    if (status != null) {
343                            setStatus(status);
344                    }
345            }
346    
347            /**
348            * Returns the primary key of this user.
349            *
350            * @return the primary key of this user
351            */
352            @Override
353            public long getPrimaryKey() {
354                    return _user.getPrimaryKey();
355            }
356    
357            /**
358            * Sets the primary key of this user.
359            *
360            * @param primaryKey the primary key of this user
361            */
362            @Override
363            public void setPrimaryKey(long primaryKey) {
364                    _user.setPrimaryKey(primaryKey);
365            }
366    
367            /**
368            * Returns the uuid of this user.
369            *
370            * @return the uuid of this user
371            */
372            @Override
373            public java.lang.String getUuid() {
374                    return _user.getUuid();
375            }
376    
377            /**
378            * Sets the uuid of this user.
379            *
380            * @param uuid the uuid of this user
381            */
382            @Override
383            public void setUuid(java.lang.String uuid) {
384                    _user.setUuid(uuid);
385            }
386    
387            /**
388            * Returns the user ID of this user.
389            *
390            * @return the user ID of this user
391            */
392            @Override
393            public long getUserId() {
394                    return _user.getUserId();
395            }
396    
397            /**
398            * Sets the user ID of this user.
399            *
400            * @param userId the user ID of this user
401            */
402            @Override
403            public void setUserId(long userId) {
404                    _user.setUserId(userId);
405            }
406    
407            /**
408            * Returns the user uuid of this user.
409            *
410            * @return the user uuid of this user
411            * @throws SystemException if a system exception occurred
412            */
413            @Override
414            public java.lang.String getUserUuid()
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _user.getUserUuid();
417            }
418    
419            /**
420            * Sets the user uuid of this user.
421            *
422            * @param userUuid the user uuid of this user
423            */
424            @Override
425            public void setUserUuid(java.lang.String userUuid) {
426                    _user.setUserUuid(userUuid);
427            }
428    
429            /**
430            * Returns the company ID of this user.
431            *
432            * @return the company ID of this user
433            */
434            @Override
435            public long getCompanyId() {
436                    return _user.getCompanyId();
437            }
438    
439            /**
440            * Sets the company ID of this user.
441            *
442            * @param companyId the company ID of this user
443            */
444            @Override
445            public void setCompanyId(long companyId) {
446                    _user.setCompanyId(companyId);
447            }
448    
449            /**
450            * Returns the create date of this user.
451            *
452            * @return the create date of this user
453            */
454            @Override
455            public java.util.Date getCreateDate() {
456                    return _user.getCreateDate();
457            }
458    
459            /**
460            * Sets the create date of this user.
461            *
462            * @param createDate the create date of this user
463            */
464            @Override
465            public void setCreateDate(java.util.Date createDate) {
466                    _user.setCreateDate(createDate);
467            }
468    
469            /**
470            * Returns the modified date of this user.
471            *
472            * @return the modified date of this user
473            */
474            @Override
475            public java.util.Date getModifiedDate() {
476                    return _user.getModifiedDate();
477            }
478    
479            /**
480            * Sets the modified date of this user.
481            *
482            * @param modifiedDate the modified date of this user
483            */
484            @Override
485            public void setModifiedDate(java.util.Date modifiedDate) {
486                    _user.setModifiedDate(modifiedDate);
487            }
488    
489            /**
490            * Returns the default user of this user.
491            *
492            * @return the default user of this user
493            */
494            @Override
495            public boolean getDefaultUser() {
496                    return _user.getDefaultUser();
497            }
498    
499            /**
500            * Returns <code>true</code> if this user is default user.
501            *
502            * @return <code>true</code> if this user is default user; <code>false</code> otherwise
503            */
504            @Override
505            public boolean isDefaultUser() {
506                    return _user.isDefaultUser();
507            }
508    
509            /**
510            * Sets whether this user is default user.
511            *
512            * @param defaultUser the default user of this user
513            */
514            @Override
515            public void setDefaultUser(boolean defaultUser) {
516                    _user.setDefaultUser(defaultUser);
517            }
518    
519            /**
520            * Returns the contact ID of this user.
521            *
522            * @return the contact ID of this user
523            */
524            @Override
525            public long getContactId() {
526                    return _user.getContactId();
527            }
528    
529            /**
530            * Sets the contact ID of this user.
531            *
532            * @param contactId the contact ID of this user
533            */
534            @Override
535            public void setContactId(long contactId) {
536                    _user.setContactId(contactId);
537            }
538    
539            /**
540            * Returns the password of this user.
541            *
542            * @return the password of this user
543            */
544            @Override
545            public java.lang.String getPassword() {
546                    return _user.getPassword();
547            }
548    
549            /**
550            * Sets the password of this user.
551            *
552            * @param password the password of this user
553            */
554            @Override
555            public void setPassword(java.lang.String password) {
556                    _user.setPassword(password);
557            }
558    
559            /**
560            * Returns the password encrypted of this user.
561            *
562            * @return the password encrypted of this user
563            */
564            @Override
565            public boolean getPasswordEncrypted() {
566                    return _user.getPasswordEncrypted();
567            }
568    
569            /**
570            * Returns <code>true</code> if this user is password encrypted.
571            *
572            * @return <code>true</code> if this user is password encrypted; <code>false</code> otherwise
573            */
574            @Override
575            public boolean isPasswordEncrypted() {
576                    return _user.isPasswordEncrypted();
577            }
578    
579            /**
580            * Sets whether this user is password encrypted.
581            *
582            * @param passwordEncrypted the password encrypted of this user
583            */
584            @Override
585            public void setPasswordEncrypted(boolean passwordEncrypted) {
586                    _user.setPasswordEncrypted(passwordEncrypted);
587            }
588    
589            /**
590            * Returns the password reset of this user.
591            *
592            * @return the password reset of this user
593            */
594            @Override
595            public boolean getPasswordReset() {
596                    return _user.getPasswordReset();
597            }
598    
599            /**
600            * Returns <code>true</code> if this user is password reset.
601            *
602            * @return <code>true</code> if this user is password reset; <code>false</code> otherwise
603            */
604            @Override
605            public boolean isPasswordReset() {
606                    return _user.isPasswordReset();
607            }
608    
609            /**
610            * Sets whether this user is password reset.
611            *
612            * @param passwordReset the password reset of this user
613            */
614            @Override
615            public void setPasswordReset(boolean passwordReset) {
616                    _user.setPasswordReset(passwordReset);
617            }
618    
619            /**
620            * Returns the password modified date of this user.
621            *
622            * @return the password modified date of this user
623            */
624            @Override
625            public java.util.Date getPasswordModifiedDate() {
626                    return _user.getPasswordModifiedDate();
627            }
628    
629            /**
630            * Sets the password modified date of this user.
631            *
632            * @param passwordModifiedDate the password modified date of this user
633            */
634            @Override
635            public void setPasswordModifiedDate(java.util.Date passwordModifiedDate) {
636                    _user.setPasswordModifiedDate(passwordModifiedDate);
637            }
638    
639            /**
640            * Returns the digest of this user.
641            *
642            * @return the digest of this user
643            */
644            @Override
645            public java.lang.String getDigest() {
646                    return _user.getDigest();
647            }
648    
649            /**
650            * Sets the digest of this user.
651            *
652            * @param digest the digest of this user
653            */
654            @Override
655            public void setDigest(java.lang.String digest) {
656                    _user.setDigest(digest);
657            }
658    
659            /**
660            * Returns the reminder query question of this user.
661            *
662            * @return the reminder query question of this user
663            */
664            @Override
665            public java.lang.String getReminderQueryQuestion() {
666                    return _user.getReminderQueryQuestion();
667            }
668    
669            /**
670            * Sets the reminder query question of this user.
671            *
672            * @param reminderQueryQuestion the reminder query question of this user
673            */
674            @Override
675            public void setReminderQueryQuestion(java.lang.String reminderQueryQuestion) {
676                    _user.setReminderQueryQuestion(reminderQueryQuestion);
677            }
678    
679            /**
680            * Returns the reminder query answer of this user.
681            *
682            * @return the reminder query answer of this user
683            */
684            @Override
685            public java.lang.String getReminderQueryAnswer() {
686                    return _user.getReminderQueryAnswer();
687            }
688    
689            /**
690            * Sets the reminder query answer of this user.
691            *
692            * @param reminderQueryAnswer the reminder query answer of this user
693            */
694            @Override
695            public void setReminderQueryAnswer(java.lang.String reminderQueryAnswer) {
696                    _user.setReminderQueryAnswer(reminderQueryAnswer);
697            }
698    
699            /**
700            * Returns the grace login count of this user.
701            *
702            * @return the grace login count of this user
703            */
704            @Override
705            public int getGraceLoginCount() {
706                    return _user.getGraceLoginCount();
707            }
708    
709            /**
710            * Sets the grace login count of this user.
711            *
712            * @param graceLoginCount the grace login count of this user
713            */
714            @Override
715            public void setGraceLoginCount(int graceLoginCount) {
716                    _user.setGraceLoginCount(graceLoginCount);
717            }
718    
719            /**
720            * Returns the screen name of this user.
721            *
722            * @return the screen name of this user
723            */
724            @Override
725            public java.lang.String getScreenName() {
726                    return _user.getScreenName();
727            }
728    
729            /**
730            * Sets the screen name of this user.
731            *
732            * @param screenName the screen name of this user
733            */
734            @Override
735            public void setScreenName(java.lang.String screenName) {
736                    _user.setScreenName(screenName);
737            }
738    
739            /**
740            * Returns the email address of this user.
741            *
742            * @return the email address of this user
743            */
744            @Override
745            public java.lang.String getEmailAddress() {
746                    return _user.getEmailAddress();
747            }
748    
749            /**
750            * Sets the email address of this user.
751            *
752            * @param emailAddress the email address of this user
753            */
754            @Override
755            public void setEmailAddress(java.lang.String emailAddress) {
756                    _user.setEmailAddress(emailAddress);
757            }
758    
759            /**
760            * Returns the facebook ID of this user.
761            *
762            * @return the facebook ID of this user
763            */
764            @Override
765            public long getFacebookId() {
766                    return _user.getFacebookId();
767            }
768    
769            /**
770            * Sets the facebook ID of this user.
771            *
772            * @param facebookId the facebook ID of this user
773            */
774            @Override
775            public void setFacebookId(long facebookId) {
776                    _user.setFacebookId(facebookId);
777            }
778    
779            /**
780            * Returns the ldap server ID of this user.
781            *
782            * @return the ldap server ID of this user
783            */
784            @Override
785            public long getLdapServerId() {
786                    return _user.getLdapServerId();
787            }
788    
789            /**
790            * Sets the ldap server ID of this user.
791            *
792            * @param ldapServerId the ldap server ID of this user
793            */
794            @Override
795            public void setLdapServerId(long ldapServerId) {
796                    _user.setLdapServerId(ldapServerId);
797            }
798    
799            /**
800            * Returns the open ID of this user.
801            *
802            * @return the open ID of this user
803            */
804            @Override
805            public java.lang.String getOpenId() {
806                    return _user.getOpenId();
807            }
808    
809            /**
810            * Sets the open ID of this user.
811            *
812            * @param openId the open ID of this user
813            */
814            @Override
815            public void setOpenId(java.lang.String openId) {
816                    _user.setOpenId(openId);
817            }
818    
819            /**
820            * Returns the portrait ID of this user.
821            *
822            * @return the portrait ID of this user
823            */
824            @Override
825            public long getPortraitId() {
826                    return _user.getPortraitId();
827            }
828    
829            /**
830            * Sets the portrait ID of this user.
831            *
832            * @param portraitId the portrait ID of this user
833            */
834            @Override
835            public void setPortraitId(long portraitId) {
836                    _user.setPortraitId(portraitId);
837            }
838    
839            /**
840            * Returns the language ID of this user.
841            *
842            * @return the language ID of this user
843            */
844            @Override
845            public java.lang.String getLanguageId() {
846                    return _user.getLanguageId();
847            }
848    
849            /**
850            * Sets the language ID of this user.
851            *
852            * @param languageId the language ID of this user
853            */
854            @Override
855            public void setLanguageId(java.lang.String languageId) {
856                    _user.setLanguageId(languageId);
857            }
858    
859            /**
860            * Returns the time zone ID of this user.
861            *
862            * @return the time zone ID of this user
863            */
864            @Override
865            public java.lang.String getTimeZoneId() {
866                    return _user.getTimeZoneId();
867            }
868    
869            /**
870            * Sets the time zone ID of this user.
871            *
872            * @param timeZoneId the time zone ID of this user
873            */
874            @Override
875            public void setTimeZoneId(java.lang.String timeZoneId) {
876                    _user.setTimeZoneId(timeZoneId);
877            }
878    
879            /**
880            * Returns the greeting of this user.
881            *
882            * @return the greeting of this user
883            */
884            @Override
885            public java.lang.String getGreeting() {
886                    return _user.getGreeting();
887            }
888    
889            /**
890            * Sets the greeting of this user.
891            *
892            * @param greeting the greeting of this user
893            */
894            @Override
895            public void setGreeting(java.lang.String greeting) {
896                    _user.setGreeting(greeting);
897            }
898    
899            /**
900            * Returns the comments of this user.
901            *
902            * @return the comments of this user
903            */
904            @Override
905            public java.lang.String getComments() {
906                    return _user.getComments();
907            }
908    
909            /**
910            * Sets the comments of this user.
911            *
912            * @param comments the comments of this user
913            */
914            @Override
915            public void setComments(java.lang.String comments) {
916                    _user.setComments(comments);
917            }
918    
919            /**
920            * Returns the first name of this user.
921            *
922            * @return the first name of this user
923            */
924            @Override
925            public java.lang.String getFirstName() {
926                    return _user.getFirstName();
927            }
928    
929            /**
930            * Sets the first name of this user.
931            *
932            * @param firstName the first name of this user
933            */
934            @Override
935            public void setFirstName(java.lang.String firstName) {
936                    _user.setFirstName(firstName);
937            }
938    
939            /**
940            * Returns the middle name of this user.
941            *
942            * @return the middle name of this user
943            */
944            @Override
945            public java.lang.String getMiddleName() {
946                    return _user.getMiddleName();
947            }
948    
949            /**
950            * Sets the middle name of this user.
951            *
952            * @param middleName the middle name of this user
953            */
954            @Override
955            public void setMiddleName(java.lang.String middleName) {
956                    _user.setMiddleName(middleName);
957            }
958    
959            /**
960            * Returns the last name of this user.
961            *
962            * @return the last name of this user
963            */
964            @Override
965            public java.lang.String getLastName() {
966                    return _user.getLastName();
967            }
968    
969            /**
970            * Sets the last name of this user.
971            *
972            * @param lastName the last name of this user
973            */
974            @Override
975            public void setLastName(java.lang.String lastName) {
976                    _user.setLastName(lastName);
977            }
978    
979            /**
980            * Returns the job title of this user.
981            *
982            * @return the job title of this user
983            */
984            @Override
985            public java.lang.String getJobTitle() {
986                    return _user.getJobTitle();
987            }
988    
989            /**
990            * Sets the job title of this user.
991            *
992            * @param jobTitle the job title of this user
993            */
994            @Override
995            public void setJobTitle(java.lang.String jobTitle) {
996                    _user.setJobTitle(jobTitle);
997            }
998    
999            /**
1000            * Returns the login date of this user.
1001            *
1002            * @return the login date of this user
1003            */
1004            @Override
1005            public java.util.Date getLoginDate() {
1006                    return _user.getLoginDate();
1007            }
1008    
1009            /**
1010            * Sets the login date of this user.
1011            *
1012            * @param loginDate the login date of this user
1013            */
1014            @Override
1015            public void setLoginDate(java.util.Date loginDate) {
1016                    _user.setLoginDate(loginDate);
1017            }
1018    
1019            /**
1020            * Returns the login i p of this user.
1021            *
1022            * @return the login i p of this user
1023            */
1024            @Override
1025            public java.lang.String getLoginIP() {
1026                    return _user.getLoginIP();
1027            }
1028    
1029            /**
1030            * Sets the login i p of this user.
1031            *
1032            * @param loginIP the login i p of this user
1033            */
1034            @Override
1035            public void setLoginIP(java.lang.String loginIP) {
1036                    _user.setLoginIP(loginIP);
1037            }
1038    
1039            /**
1040            * Returns the last login date of this user.
1041            *
1042            * @return the last login date of this user
1043            */
1044            @Override
1045            public java.util.Date getLastLoginDate() {
1046                    return _user.getLastLoginDate();
1047            }
1048    
1049            /**
1050            * Sets the last login date of this user.
1051            *
1052            * @param lastLoginDate the last login date of this user
1053            */
1054            @Override
1055            public void setLastLoginDate(java.util.Date lastLoginDate) {
1056                    _user.setLastLoginDate(lastLoginDate);
1057            }
1058    
1059            /**
1060            * Returns the last login i p of this user.
1061            *
1062            * @return the last login i p of this user
1063            */
1064            @Override
1065            public java.lang.String getLastLoginIP() {
1066                    return _user.getLastLoginIP();
1067            }
1068    
1069            /**
1070            * Sets the last login i p of this user.
1071            *
1072            * @param lastLoginIP the last login i p of this user
1073            */
1074            @Override
1075            public void setLastLoginIP(java.lang.String lastLoginIP) {
1076                    _user.setLastLoginIP(lastLoginIP);
1077            }
1078    
1079            /**
1080            * Returns the last failed login date of this user.
1081            *
1082            * @return the last failed login date of this user
1083            */
1084            @Override
1085            public java.util.Date getLastFailedLoginDate() {
1086                    return _user.getLastFailedLoginDate();
1087            }
1088    
1089            /**
1090            * Sets the last failed login date of this user.
1091            *
1092            * @param lastFailedLoginDate the last failed login date of this user
1093            */
1094            @Override
1095            public void setLastFailedLoginDate(java.util.Date lastFailedLoginDate) {
1096                    _user.setLastFailedLoginDate(lastFailedLoginDate);
1097            }
1098    
1099            /**
1100            * Returns the failed login attempts of this user.
1101            *
1102            * @return the failed login attempts of this user
1103            */
1104            @Override
1105            public int getFailedLoginAttempts() {
1106                    return _user.getFailedLoginAttempts();
1107            }
1108    
1109            /**
1110            * Sets the failed login attempts of this user.
1111            *
1112            * @param failedLoginAttempts the failed login attempts of this user
1113            */
1114            @Override
1115            public void setFailedLoginAttempts(int failedLoginAttempts) {
1116                    _user.setFailedLoginAttempts(failedLoginAttempts);
1117            }
1118    
1119            /**
1120            * Returns the lockout of this user.
1121            *
1122            * @return the lockout of this user
1123            */
1124            @Override
1125            public boolean getLockout() {
1126                    return _user.getLockout();
1127            }
1128    
1129            /**
1130            * Returns <code>true</code> if this user is lockout.
1131            *
1132            * @return <code>true</code> if this user is lockout; <code>false</code> otherwise
1133            */
1134            @Override
1135            public boolean isLockout() {
1136                    return _user.isLockout();
1137            }
1138    
1139            /**
1140            * Sets whether this user is lockout.
1141            *
1142            * @param lockout the lockout of this user
1143            */
1144            @Override
1145            public void setLockout(boolean lockout) {
1146                    _user.setLockout(lockout);
1147            }
1148    
1149            /**
1150            * Returns the lockout date of this user.
1151            *
1152            * @return the lockout date of this user
1153            */
1154            @Override
1155            public java.util.Date getLockoutDate() {
1156                    return _user.getLockoutDate();
1157            }
1158    
1159            /**
1160            * Sets the lockout date of this user.
1161            *
1162            * @param lockoutDate the lockout date of this user
1163            */
1164            @Override
1165            public void setLockoutDate(java.util.Date lockoutDate) {
1166                    _user.setLockoutDate(lockoutDate);
1167            }
1168    
1169            /**
1170            * Returns the agreed to terms of use of this user.
1171            *
1172            * @return the agreed to terms of use of this user
1173            */
1174            @Override
1175            public boolean getAgreedToTermsOfUse() {
1176                    return _user.getAgreedToTermsOfUse();
1177            }
1178    
1179            /**
1180            * Returns <code>true</code> if this user is agreed to terms of use.
1181            *
1182            * @return <code>true</code> if this user is agreed to terms of use; <code>false</code> otherwise
1183            */
1184            @Override
1185            public boolean isAgreedToTermsOfUse() {
1186                    return _user.isAgreedToTermsOfUse();
1187            }
1188    
1189            /**
1190            * Sets whether this user is agreed to terms of use.
1191            *
1192            * @param agreedToTermsOfUse the agreed to terms of use of this user
1193            */
1194            @Override
1195            public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
1196                    _user.setAgreedToTermsOfUse(agreedToTermsOfUse);
1197            }
1198    
1199            /**
1200            * Returns the email address verified of this user.
1201            *
1202            * @return the email address verified of this user
1203            */
1204            @Override
1205            public boolean getEmailAddressVerified() {
1206                    return _user.getEmailAddressVerified();
1207            }
1208    
1209            /**
1210            * Returns <code>true</code> if this user is email address verified.
1211            *
1212            * @return <code>true</code> if this user is email address verified; <code>false</code> otherwise
1213            */
1214            @Override
1215            public boolean isEmailAddressVerified() {
1216                    return _user.isEmailAddressVerified();
1217            }
1218    
1219            /**
1220            * Sets whether this user is email address verified.
1221            *
1222            * @param emailAddressVerified the email address verified of this user
1223            */
1224            @Override
1225            public void setEmailAddressVerified(boolean emailAddressVerified) {
1226                    _user.setEmailAddressVerified(emailAddressVerified);
1227            }
1228    
1229            /**
1230            * Returns the status of this user.
1231            *
1232            * @return the status of this user
1233            */
1234            @Override
1235            public int getStatus() {
1236                    return _user.getStatus();
1237            }
1238    
1239            /**
1240            * Sets the status of this user.
1241            *
1242            * @param status the status of this user
1243            */
1244            @Override
1245            public void setStatus(int status) {
1246                    _user.setStatus(status);
1247            }
1248    
1249            @Override
1250            public boolean isNew() {
1251                    return _user.isNew();
1252            }
1253    
1254            @Override
1255            public void setNew(boolean n) {
1256                    _user.setNew(n);
1257            }
1258    
1259            @Override
1260            public boolean isCachedModel() {
1261                    return _user.isCachedModel();
1262            }
1263    
1264            @Override
1265            public void setCachedModel(boolean cachedModel) {
1266                    _user.setCachedModel(cachedModel);
1267            }
1268    
1269            @Override
1270            public boolean isEscapedModel() {
1271                    return _user.isEscapedModel();
1272            }
1273    
1274            @Override
1275            public java.io.Serializable getPrimaryKeyObj() {
1276                    return _user.getPrimaryKeyObj();
1277            }
1278    
1279            @Override
1280            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1281                    _user.setPrimaryKeyObj(primaryKeyObj);
1282            }
1283    
1284            @Override
1285            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1286                    return _user.getExpandoBridge();
1287            }
1288    
1289            @Override
1290            public void setExpandoBridgeAttributes(
1291                    com.liferay.portal.model.BaseModel<?> baseModel) {
1292                    _user.setExpandoBridgeAttributes(baseModel);
1293            }
1294    
1295            @Override
1296            public void setExpandoBridgeAttributes(
1297                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1298                    _user.setExpandoBridgeAttributes(expandoBridge);
1299            }
1300    
1301            @Override
1302            public void setExpandoBridgeAttributes(
1303                    com.liferay.portal.service.ServiceContext serviceContext) {
1304                    _user.setExpandoBridgeAttributes(serviceContext);
1305            }
1306    
1307            @Override
1308            public java.lang.Object clone() {
1309                    return new UserWrapper((User)_user.clone());
1310            }
1311    
1312            @Override
1313            public int compareTo(com.liferay.portal.model.User user) {
1314                    return _user.compareTo(user);
1315            }
1316    
1317            @Override
1318            public int hashCode() {
1319                    return _user.hashCode();
1320            }
1321    
1322            @Override
1323            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.User> toCacheModel() {
1324                    return _user.toCacheModel();
1325            }
1326    
1327            @Override
1328            public com.liferay.portal.model.User toEscapedModel() {
1329                    return new UserWrapper(_user.toEscapedModel());
1330            }
1331    
1332            @Override
1333            public com.liferay.portal.model.User toUnescapedModel() {
1334                    return new UserWrapper(_user.toUnescapedModel());
1335            }
1336    
1337            @Override
1338            public java.lang.String toString() {
1339                    return _user.toString();
1340            }
1341    
1342            @Override
1343            public java.lang.String toXmlString() {
1344                    return _user.toXmlString();
1345            }
1346    
1347            @Override
1348            public void persist()
1349                    throws com.liferay.portal.kernel.exception.SystemException {
1350                    _user.persist();
1351            }
1352    
1353            @Override
1354            public void addRemotePreference(
1355                    com.liferay.portal.kernel.util.RemotePreference remotePreference) {
1356                    _user.addRemotePreference(remotePreference);
1357            }
1358    
1359            @Override
1360            public java.util.List<com.liferay.portal.model.Address> getAddresses()
1361                    throws com.liferay.portal.kernel.exception.SystemException {
1362                    return _user.getAddresses();
1363            }
1364    
1365            @Override
1366            public java.util.Date getBirthday()
1367                    throws com.liferay.portal.kernel.exception.PortalException,
1368                            com.liferay.portal.kernel.exception.SystemException {
1369                    return _user.getBirthday();
1370            }
1371    
1372            @Override
1373            public java.lang.String getCompanyMx()
1374                    throws com.liferay.portal.kernel.exception.PortalException,
1375                            com.liferay.portal.kernel.exception.SystemException {
1376                    return _user.getCompanyMx();
1377            }
1378    
1379            @Override
1380            public com.liferay.portal.model.Contact getContact()
1381                    throws com.liferay.portal.kernel.exception.PortalException,
1382                            com.liferay.portal.kernel.exception.SystemException {
1383                    return _user.getContact();
1384            }
1385    
1386            @Override
1387            public java.lang.String getDigest(java.lang.String password) {
1388                    return _user.getDigest(password);
1389            }
1390    
1391            @Override
1392            public java.lang.String getDisplayEmailAddress() {
1393                    return _user.getDisplayEmailAddress();
1394            }
1395    
1396            /**
1397            * Returns the user's display URL, discounting the URL of the user's default
1398            * intranet site home page.
1399            *
1400            * <p>
1401            * The logic for the display URL to return is as follows:
1402            * </p>
1403            *
1404            * <ol>
1405            * <li>
1406            * If the user is the guest user, return an empty string.
1407            * </li>
1408            * <li>
1409            * Else, if a friendly URL is available for the user's profile, return that
1410            * friendly URL.
1411            * </li>
1412            * <li>
1413            * Otherwise, return the URL of the user's default extranet site home page.
1414            * </li>
1415            * </ol>
1416            *
1417            * @param portalURL the portal's URL
1418            * @param mainPath the main path
1419            * @return the user's display URL
1420            * @throws PortalException if a portal exception occurred
1421            * @throws SystemException if a system exception occurred
1422            * @deprecated As of 7.0.0, replaced by {@link #getDisplayURL(ThemeDisplay)}
1423            */
1424            @Override
1425            public java.lang.String getDisplayURL(java.lang.String portalURL,
1426                    java.lang.String mainPath)
1427                    throws com.liferay.portal.kernel.exception.PortalException,
1428                            com.liferay.portal.kernel.exception.SystemException {
1429                    return _user.getDisplayURL(portalURL, mainPath);
1430            }
1431    
1432            /**
1433            * Returns the user's display URL.
1434            *
1435            * <p>
1436            * The logic for the display URL to return is as follows:
1437            * </p>
1438            *
1439            * <ol>
1440            * <li>
1441            * If the user is the guest user, return an empty string.
1442            * </li>
1443            * <li>
1444            * Else, if a friendly URL is available for the user's profile, return that
1445            * friendly URL.
1446            * </li>
1447            * <li>
1448            * Else, if <code>privateLayout</code> is <code>true</code>, return the URL
1449            * of the user's default intranet site home page.
1450            * </li>
1451            * <li>
1452            * Otherwise, return the URL of the user's default extranet site home page.
1453            * </li>
1454            * </ol>
1455            *
1456            * @param portalURL the portal's URL
1457            * @param mainPath the main path
1458            * @param privateLayout whether to use the URL of the user's default
1459            intranet(versus extranet)  site home page, if no friendly URL
1460            is available for the user's profile
1461            * @return the user's display URL
1462            * @throws PortalException if a portal exception occurred
1463            * @throws SystemException if a system exception occurred
1464            * @deprecated As of 7.0.0, replaced by {@link #getDisplayURL(ThemeDisplay)}
1465            */
1466            @Override
1467            public java.lang.String getDisplayURL(java.lang.String portalURL,
1468                    java.lang.String mainPath, boolean privateLayout)
1469                    throws com.liferay.portal.kernel.exception.PortalException,
1470                            com.liferay.portal.kernel.exception.SystemException {
1471                    return _user.getDisplayURL(portalURL, mainPath, privateLayout);
1472            }
1473    
1474            /**
1475            * Returns the user's display URL based on the theme display, discounting
1476            * the URL of the user's default intranet site home page.
1477            *
1478            * <p>
1479            * The logic for the display URL to return is as follows:
1480            * </p>
1481            *
1482            * <ol>
1483            * <li>
1484            * If the user is the guest user, return an empty string.
1485            * </li>
1486            * <li>
1487            * Else, if a friendly URL is available for the user's profile, return that
1488            * friendly URL.
1489            * </li>
1490            * <li>
1491            * Otherwise, return the URL of the user's default extranet site home page.
1492            * </li>
1493            * </ol>
1494            *
1495            * @param themeDisplay the theme display
1496            * @return the user's display URL
1497            * @throws PortalException if a portal exception occurred
1498            * @throws SystemException if a system exception occurred
1499            */
1500            @Override
1501            public java.lang.String getDisplayURL(
1502                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1503                    throws com.liferay.portal.kernel.exception.PortalException,
1504                            com.liferay.portal.kernel.exception.SystemException {
1505                    return _user.getDisplayURL(themeDisplay);
1506            }
1507    
1508            /**
1509            * Returns the user's display URL based on the theme display.
1510            *
1511            * <p>
1512            * The logic for the display URL to return is as follows:
1513            * </p>
1514            *
1515            * <ol>
1516            * <li>
1517            * If the user is the guest user, return an empty string.
1518            * </li>
1519            * <li>
1520            * Else, if a friendly URL is available for the user's profile, return that
1521            * friendly URL.
1522            * </li>
1523            * <li>
1524            * Else, if <code>privateLayout</code> is <code>true</code>, return the URL
1525            * of the user's default intranet site home page.
1526            * </li>
1527            * <li>
1528            * Otherwise, return the URL of the user's default extranet site home page.
1529            * </li>
1530            * </ol>
1531            *
1532            * @param themeDisplay the theme display
1533            * @param privateLayout whether to use the URL of the user's default
1534            intranet (versus extranet) site home page, if no friendly URL is
1535            available for the user's profile
1536            * @return the user's display URL
1537            * @throws PortalException if a portal exception occurred
1538            * @throws SystemException if a system exception occurred
1539            */
1540            @Override
1541            public java.lang.String getDisplayURL(
1542                    com.liferay.portal.theme.ThemeDisplay themeDisplay,
1543                    boolean privateLayout)
1544                    throws com.liferay.portal.kernel.exception.PortalException,
1545                            com.liferay.portal.kernel.exception.SystemException {
1546                    return _user.getDisplayURL(themeDisplay, privateLayout);
1547            }
1548    
1549            /**
1550            * Returns the user's email addresses.
1551            *
1552            * @return the user's email addresses
1553            * @throws SystemException if a system exception occurred
1554            */
1555            @Override
1556            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses()
1557                    throws com.liferay.portal.kernel.exception.SystemException {
1558                    return _user.getEmailAddresses();
1559            }
1560    
1561            /**
1562            * Returns <code>true</code> if the user is female.
1563            *
1564            * @return <code>true</code> if the user is female; <code>false</code>
1565            otherwise
1566            * @throws PortalException if a portal exception occurred
1567            * @throws SystemException if a system exception occurred
1568            */
1569            @Override
1570            public boolean getFemale()
1571                    throws com.liferay.portal.kernel.exception.PortalException,
1572                            com.liferay.portal.kernel.exception.SystemException {
1573                    return _user.getFemale();
1574            }
1575    
1576            /**
1577            * Returns the user's full name.
1578            *
1579            * @return the user's full name
1580            */
1581            @Override
1582            public java.lang.String getFullName() {
1583                    return _user.getFullName();
1584            }
1585    
1586            @Override
1587            public com.liferay.portal.model.Group getGroup()
1588                    throws com.liferay.portal.kernel.exception.PortalException,
1589                            com.liferay.portal.kernel.exception.SystemException {
1590                    return _user.getGroup();
1591            }
1592    
1593            @Override
1594            public long getGroupId()
1595                    throws com.liferay.portal.kernel.exception.PortalException,
1596                            com.liferay.portal.kernel.exception.SystemException {
1597                    return _user.getGroupId();
1598            }
1599    
1600            @Override
1601            public long[] getGroupIds()
1602                    throws com.liferay.portal.kernel.exception.SystemException {
1603                    return _user.getGroupIds();
1604            }
1605    
1606            @Override
1607            public java.util.List<com.liferay.portal.model.Group> getGroups()
1608                    throws com.liferay.portal.kernel.exception.SystemException {
1609                    return _user.getGroups();
1610            }
1611    
1612            @Override
1613            public java.util.Locale getLocale() {
1614                    return _user.getLocale();
1615            }
1616    
1617            @Override
1618            public java.lang.String getLogin()
1619                    throws com.liferay.portal.kernel.exception.PortalException,
1620                            com.liferay.portal.kernel.exception.SystemException {
1621                    return _user.getLogin();
1622            }
1623    
1624            /**
1625            * Returns <code>true</code> if the user is male.
1626            *
1627            * @return <code>true</code> if the user is male; <code>false</code>
1628            otherwise
1629            * @throws PortalException if a portal exception occurred
1630            * @throws SystemException if a system exception occurred
1631            */
1632            @Override
1633            public boolean getMale()
1634                    throws com.liferay.portal.kernel.exception.PortalException,
1635                            com.liferay.portal.kernel.exception.SystemException {
1636                    return _user.getMale();
1637            }
1638    
1639            @Override
1640            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups()
1641                    throws com.liferay.portal.kernel.exception.PortalException,
1642                            com.liferay.portal.kernel.exception.SystemException {
1643                    return _user.getMySiteGroups();
1644            }
1645    
1646            @Override
1647            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
1648                    boolean includeControlPanel, int max)
1649                    throws com.liferay.portal.kernel.exception.PortalException,
1650                            com.liferay.portal.kernel.exception.SystemException {
1651                    return _user.getMySiteGroups(includeControlPanel, max);
1652            }
1653    
1654            @Override
1655            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
1656                    int max)
1657                    throws com.liferay.portal.kernel.exception.PortalException,
1658                            com.liferay.portal.kernel.exception.SystemException {
1659                    return _user.getMySiteGroups(max);
1660            }
1661    
1662            @Override
1663            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
1664                    java.lang.String[] classNames, boolean includeControlPanel, int max)
1665                    throws com.liferay.portal.kernel.exception.PortalException,
1666                            com.liferay.portal.kernel.exception.SystemException {
1667                    return _user.getMySiteGroups(classNames, includeControlPanel, max);
1668            }
1669    
1670            @Override
1671            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
1672                    java.lang.String[] classNames, int max)
1673                    throws com.liferay.portal.kernel.exception.PortalException,
1674                            com.liferay.portal.kernel.exception.SystemException {
1675                    return _user.getMySiteGroups(classNames, max);
1676            }
1677    
1678            /**
1679            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups}
1680            */
1681            @Override
1682            public java.util.List<com.liferay.portal.model.Group> getMySites()
1683                    throws com.liferay.portal.kernel.exception.PortalException,
1684                            com.liferay.portal.kernel.exception.SystemException {
1685                    return _user.getMySites();
1686            }
1687    
1688            /**
1689            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(boolean,
1690            int)}
1691            */
1692            @Override
1693            public java.util.List<com.liferay.portal.model.Group> getMySites(
1694                    boolean includeControlPanel, int max)
1695                    throws com.liferay.portal.kernel.exception.PortalException,
1696                            com.liferay.portal.kernel.exception.SystemException {
1697                    return _user.getMySites(includeControlPanel, max);
1698            }
1699    
1700            /**
1701            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(int)}
1702            */
1703            @Override
1704            public java.util.List<com.liferay.portal.model.Group> getMySites(int max)
1705                    throws com.liferay.portal.kernel.exception.PortalException,
1706                            com.liferay.portal.kernel.exception.SystemException {
1707                    return _user.getMySites(max);
1708            }
1709    
1710            /**
1711            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(String[],
1712            boolean, int)}
1713            */
1714            @Override
1715            public java.util.List<com.liferay.portal.model.Group> getMySites(
1716                    java.lang.String[] classNames, boolean includeControlPanel, int max)
1717                    throws com.liferay.portal.kernel.exception.PortalException,
1718                            com.liferay.portal.kernel.exception.SystemException {
1719                    return _user.getMySites(classNames, includeControlPanel, max);
1720            }
1721    
1722            /**
1723            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(String[],
1724            int)}
1725            */
1726            @Override
1727            public java.util.List<com.liferay.portal.model.Group> getMySites(
1728                    java.lang.String[] classNames, int max)
1729                    throws com.liferay.portal.kernel.exception.PortalException,
1730                            com.liferay.portal.kernel.exception.SystemException {
1731                    return _user.getMySites(classNames, max);
1732            }
1733    
1734            @Override
1735            public long[] getOrganizationIds()
1736                    throws com.liferay.portal.kernel.exception.PortalException,
1737                            com.liferay.portal.kernel.exception.SystemException {
1738                    return _user.getOrganizationIds();
1739            }
1740    
1741            @Override
1742            public long[] getOrganizationIds(boolean includeAdministrative)
1743                    throws com.liferay.portal.kernel.exception.PortalException,
1744                            com.liferay.portal.kernel.exception.SystemException {
1745                    return _user.getOrganizationIds(includeAdministrative);
1746            }
1747    
1748            @Override
1749            public java.util.List<com.liferay.portal.model.Organization> getOrganizations()
1750                    throws com.liferay.portal.kernel.exception.PortalException,
1751                            com.liferay.portal.kernel.exception.SystemException {
1752                    return _user.getOrganizations();
1753            }
1754    
1755            @Override
1756            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1757                    boolean includeAdministrative)
1758                    throws com.liferay.portal.kernel.exception.PortalException,
1759                            com.liferay.portal.kernel.exception.SystemException {
1760                    return _user.getOrganizations(includeAdministrative);
1761            }
1762    
1763            @Override
1764            public boolean getPasswordModified() {
1765                    return _user.getPasswordModified();
1766            }
1767    
1768            @Override
1769            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
1770                    throws com.liferay.portal.kernel.exception.PortalException,
1771                            com.liferay.portal.kernel.exception.SystemException {
1772                    return _user.getPasswordPolicy();
1773            }
1774    
1775            @Override
1776            public java.lang.String getPasswordUnencrypted() {
1777                    return _user.getPasswordUnencrypted();
1778            }
1779    
1780            @Override
1781            public java.util.List<com.liferay.portal.model.Phone> getPhones()
1782                    throws com.liferay.portal.kernel.exception.SystemException {
1783                    return _user.getPhones();
1784            }
1785    
1786            @Override
1787            public java.lang.String getPortraitURL(
1788                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1789                    throws com.liferay.portal.kernel.exception.PortalException,
1790                            com.liferay.portal.kernel.exception.SystemException {
1791                    return _user.getPortraitURL(themeDisplay);
1792            }
1793    
1794            @Override
1795            public int getPrivateLayoutsPageCount()
1796                    throws com.liferay.portal.kernel.exception.PortalException,
1797                            com.liferay.portal.kernel.exception.SystemException {
1798                    return _user.getPrivateLayoutsPageCount();
1799            }
1800    
1801            @Override
1802            public int getPublicLayoutsPageCount()
1803                    throws com.liferay.portal.kernel.exception.PortalException,
1804                            com.liferay.portal.kernel.exception.SystemException {
1805                    return _user.getPublicLayoutsPageCount();
1806            }
1807    
1808            @Override
1809            public java.util.Set<java.lang.String> getReminderQueryQuestions()
1810                    throws com.liferay.portal.kernel.exception.PortalException,
1811                            com.liferay.portal.kernel.exception.SystemException {
1812                    return _user.getReminderQueryQuestions();
1813            }
1814    
1815            @Override
1816            public com.liferay.portal.kernel.util.RemotePreference getRemotePreference(
1817                    java.lang.String name) {
1818                    return _user.getRemotePreference(name);
1819            }
1820    
1821            @Override
1822            public java.lang.Iterable<com.liferay.portal.kernel.util.RemotePreference> getRemotePreferences() {
1823                    return _user.getRemotePreferences();
1824            }
1825    
1826            @Override
1827            public long[] getRoleIds()
1828                    throws com.liferay.portal.kernel.exception.SystemException {
1829                    return _user.getRoleIds();
1830            }
1831    
1832            @Override
1833            public java.util.List<com.liferay.portal.model.Role> getRoles()
1834                    throws com.liferay.portal.kernel.exception.SystemException {
1835                    return _user.getRoles();
1836            }
1837    
1838            @Override
1839            public java.util.List<com.liferay.portal.model.Group> getSiteGroups()
1840                    throws com.liferay.portal.kernel.exception.PortalException,
1841                            com.liferay.portal.kernel.exception.SystemException {
1842                    return _user.getSiteGroups();
1843            }
1844    
1845            @Override
1846            public java.util.List<com.liferay.portal.model.Group> getSiteGroups(
1847                    boolean includeAdministrative)
1848                    throws com.liferay.portal.kernel.exception.PortalException,
1849                            com.liferay.portal.kernel.exception.SystemException {
1850                    return _user.getSiteGroups(includeAdministrative);
1851            }
1852    
1853            @Override
1854            public long[] getTeamIds()
1855                    throws com.liferay.portal.kernel.exception.SystemException {
1856                    return _user.getTeamIds();
1857            }
1858    
1859            @Override
1860            public java.util.List<com.liferay.portal.model.Team> getTeams()
1861                    throws com.liferay.portal.kernel.exception.SystemException {
1862                    return _user.getTeams();
1863            }
1864    
1865            @Override
1866            public java.util.TimeZone getTimeZone() {
1867                    return _user.getTimeZone();
1868            }
1869    
1870            @Override
1871            public long[] getUserGroupIds()
1872                    throws com.liferay.portal.kernel.exception.SystemException {
1873                    return _user.getUserGroupIds();
1874            }
1875    
1876            @Override
1877            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups()
1878                    throws com.liferay.portal.kernel.exception.SystemException {
1879                    return _user.getUserGroups();
1880            }
1881    
1882            @Override
1883            public java.util.List<com.liferay.portal.model.Website> getWebsites()
1884                    throws com.liferay.portal.kernel.exception.SystemException {
1885                    return _user.getWebsites();
1886            }
1887    
1888            @Override
1889            public boolean hasCompanyMx()
1890                    throws com.liferay.portal.kernel.exception.PortalException,
1891                            com.liferay.portal.kernel.exception.SystemException {
1892                    return _user.hasCompanyMx();
1893            }
1894    
1895            @Override
1896            public boolean hasCompanyMx(java.lang.String emailAddress)
1897                    throws com.liferay.portal.kernel.exception.PortalException,
1898                            com.liferay.portal.kernel.exception.SystemException {
1899                    return _user.hasCompanyMx(emailAddress);
1900            }
1901    
1902            @Override
1903            public boolean hasMySites()
1904                    throws com.liferay.portal.kernel.exception.PortalException,
1905                            com.liferay.portal.kernel.exception.SystemException {
1906                    return _user.hasMySites();
1907            }
1908    
1909            @Override
1910            public boolean hasOrganization()
1911                    throws com.liferay.portal.kernel.exception.PortalException,
1912                            com.liferay.portal.kernel.exception.SystemException {
1913                    return _user.hasOrganization();
1914            }
1915    
1916            @Override
1917            public boolean hasPrivateLayouts()
1918                    throws com.liferay.portal.kernel.exception.PortalException,
1919                            com.liferay.portal.kernel.exception.SystemException {
1920                    return _user.hasPrivateLayouts();
1921            }
1922    
1923            @Override
1924            public boolean hasPublicLayouts()
1925                    throws com.liferay.portal.kernel.exception.PortalException,
1926                            com.liferay.portal.kernel.exception.SystemException {
1927                    return _user.hasPublicLayouts();
1928            }
1929    
1930            @Override
1931            public boolean hasReminderQuery() {
1932                    return _user.hasReminderQuery();
1933            }
1934    
1935            @Override
1936            public boolean isActive() {
1937                    return _user.isActive();
1938            }
1939    
1940            @Override
1941            public boolean isEmailAddressComplete() {
1942                    return _user.isEmailAddressComplete();
1943            }
1944    
1945            @Override
1946            public boolean isEmailAddressVerificationComplete() {
1947                    return _user.isEmailAddressVerificationComplete();
1948            }
1949    
1950            @Override
1951            public boolean isFemale()
1952                    throws com.liferay.portal.kernel.exception.PortalException,
1953                            com.liferay.portal.kernel.exception.SystemException {
1954                    return _user.isFemale();
1955            }
1956    
1957            @Override
1958            public boolean isMale()
1959                    throws com.liferay.portal.kernel.exception.PortalException,
1960                            com.liferay.portal.kernel.exception.SystemException {
1961                    return _user.isMale();
1962            }
1963    
1964            @Override
1965            public boolean isPasswordModified() {
1966                    return _user.isPasswordModified();
1967            }
1968    
1969            @Override
1970            public boolean isReminderQueryComplete() {
1971                    return _user.isReminderQueryComplete();
1972            }
1973    
1974            @Override
1975            public boolean isSetupComplete() {
1976                    return _user.isSetupComplete();
1977            }
1978    
1979            @Override
1980            public boolean isTermsOfUseComplete() {
1981                    return _user.isTermsOfUseComplete();
1982            }
1983    
1984            @Override
1985            public void setPasswordModified(boolean passwordModified) {
1986                    _user.setPasswordModified(passwordModified);
1987            }
1988    
1989            @Override
1990            public void setPasswordUnencrypted(java.lang.String passwordUnencrypted) {
1991                    _user.setPasswordUnencrypted(passwordUnencrypted);
1992            }
1993    
1994            @Override
1995            public boolean equals(Object obj) {
1996                    if (this == obj) {
1997                            return true;
1998                    }
1999    
2000                    if (!(obj instanceof UserWrapper)) {
2001                            return false;
2002                    }
2003    
2004                    UserWrapper userWrapper = (UserWrapper)obj;
2005    
2006                    if (Validator.equals(_user, userWrapper._user)) {
2007                            return true;
2008                    }
2009    
2010                    return false;
2011            }
2012    
2013            @Override
2014            public StagedModelType getStagedModelType() {
2015                    return _user.getStagedModelType();
2016            }
2017    
2018            /**
2019             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
2020             */
2021            public User getWrappedUser() {
2022                    return _user;
2023            }
2024    
2025            @Override
2026            public User getWrappedModel() {
2027                    return _user;
2028            }
2029    
2030            @Override
2031            public void resetOriginalValues() {
2032                    _user.resetOriginalValues();
2033            }
2034    
2035            private User _user;
2036    }