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