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