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