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            @Override
796            public java.lang.String getInitials() {
797                    return _user.getInitials();
798            }
799    
800            /**
801            * Returns the job title of this user.
802            *
803            * @return the job title of this user
804            */
805            @Override
806            public java.lang.String getJobTitle() {
807                    return _user.getJobTitle();
808            }
809    
810            /**
811            * Returns the language ID of this user.
812            *
813            * @return the language ID of this user
814            */
815            @Override
816            public java.lang.String getLanguageId() {
817                    return _user.getLanguageId();
818            }
819    
820            /**
821            * Returns the last failed login date of this user.
822            *
823            * @return the last failed login date of this user
824            */
825            @Override
826            public Date getLastFailedLoginDate() {
827                    return _user.getLastFailedLoginDate();
828            }
829    
830            /**
831            * Returns the last login date of this user.
832            *
833            * @return the last login date of this user
834            */
835            @Override
836            public Date getLastLoginDate() {
837                    return _user.getLastLoginDate();
838            }
839    
840            /**
841            * Returns the last login i p of this user.
842            *
843            * @return the last login i p of this user
844            */
845            @Override
846            public java.lang.String getLastLoginIP() {
847                    return _user.getLastLoginIP();
848            }
849    
850            /**
851            * Returns the last name of this user.
852            *
853            * @return the last name of this user
854            */
855            @Override
856            public java.lang.String getLastName() {
857                    return _user.getLastName();
858            }
859    
860            /**
861            * Returns the ldap server ID of this user.
862            *
863            * @return the ldap server ID of this user
864            */
865            @Override
866            public long getLdapServerId() {
867                    return _user.getLdapServerId();
868            }
869    
870            @Override
871            public java.util.Locale getLocale() {
872                    return _user.getLocale();
873            }
874    
875            /**
876            * Returns the lockout of this user.
877            *
878            * @return the lockout of this user
879            */
880            @Override
881            public boolean getLockout() {
882                    return _user.getLockout();
883            }
884    
885            /**
886            * Returns the lockout date of this user.
887            *
888            * @return the lockout date of this user
889            */
890            @Override
891            public Date getLockoutDate() {
892                    return _user.getLockoutDate();
893            }
894    
895            @Override
896            public java.lang.String getLogin()
897                    throws com.liferay.portal.kernel.exception.PortalException {
898                    return _user.getLogin();
899            }
900    
901            /**
902            * Returns the login date of this user.
903            *
904            * @return the login date of this user
905            */
906            @Override
907            public Date getLoginDate() {
908                    return _user.getLoginDate();
909            }
910    
911            /**
912            * Returns the login i p of this user.
913            *
914            * @return the login i p of this user
915            */
916            @Override
917            public java.lang.String getLoginIP() {
918                    return _user.getLoginIP();
919            }
920    
921            /**
922            * Returns <code>true</code> if the user is male.
923            *
924            * @return <code>true</code> if the user is male; <code>false</code>
925            otherwise
926            */
927            @Override
928            public boolean getMale()
929                    throws com.liferay.portal.kernel.exception.PortalException {
930                    return _user.getMale();
931            }
932    
933            /**
934            * Returns the middle name of this user.
935            *
936            * @return the middle name of this user
937            */
938            @Override
939            public java.lang.String getMiddleName() {
940                    return _user.getMiddleName();
941            }
942    
943            /**
944            * Returns the modified date of this user.
945            *
946            * @return the modified date of this user
947            */
948            @Override
949            public Date getModifiedDate() {
950                    return _user.getModifiedDate();
951            }
952    
953            /**
954            * Returns the mvcc version of this user.
955            *
956            * @return the mvcc version of this user
957            */
958            @Override
959            public long getMvccVersion() {
960                    return _user.getMvccVersion();
961            }
962    
963            @Override
964            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups()
965                    throws com.liferay.portal.kernel.exception.PortalException {
966                    return _user.getMySiteGroups();
967            }
968    
969            @Override
970            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
971                    java.lang.String[] classNames, int max)
972                    throws com.liferay.portal.kernel.exception.PortalException {
973                    return _user.getMySiteGroups(classNames, max);
974            }
975    
976            @Override
977            public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
978                    int max) throws com.liferay.portal.kernel.exception.PortalException {
979                    return _user.getMySiteGroups(max);
980            }
981    
982            /**
983            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups}
984            */
985            @Deprecated
986            @Override
987            public java.util.List<com.liferay.portal.model.Group> getMySites()
988                    throws com.liferay.portal.kernel.exception.PortalException {
989                    return _user.getMySites();
990            }
991    
992            /**
993            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(String[],
994            int)}
995            */
996            @Deprecated
997            @Override
998            public java.util.List<com.liferay.portal.model.Group> getMySites(
999                    java.lang.String[] classNames, boolean includeControlPanel, int max)
1000                    throws com.liferay.portal.kernel.exception.PortalException {
1001                    return _user.getMySites(classNames, includeControlPanel, max);
1002            }
1003    
1004            /**
1005            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(String[],
1006            int)}
1007            */
1008            @Deprecated
1009            @Override
1010            public java.util.List<com.liferay.portal.model.Group> getMySites(
1011                    java.lang.String[] classNames, int max)
1012                    throws com.liferay.portal.kernel.exception.PortalException {
1013                    return _user.getMySites(classNames, max);
1014            }
1015    
1016            /**
1017            * @deprecated As of 6.2.0, replaced by {@link User#getMySiteGroups(int)}
1018            */
1019            @Deprecated
1020            @Override
1021            public java.util.List<com.liferay.portal.model.Group> getMySites(
1022                    boolean includeControlPanel, int max)
1023                    throws com.liferay.portal.kernel.exception.PortalException {
1024                    return _user.getMySites(includeControlPanel, max);
1025            }
1026    
1027            /**
1028            * @deprecated As of 6.2.0, replaced by {@link #getMySiteGroups(int)}
1029            */
1030            @Deprecated
1031            @Override
1032            public java.util.List<com.liferay.portal.model.Group> getMySites(int max)
1033                    throws com.liferay.portal.kernel.exception.PortalException {
1034                    return _user.getMySites(max);
1035            }
1036    
1037            /**
1038            * Returns the open ID of this user.
1039            *
1040            * @return the open ID of this user
1041            */
1042            @Override
1043            public java.lang.String getOpenId() {
1044                    return _user.getOpenId();
1045            }
1046    
1047            @Override
1048            public long[] getOrganizationIds()
1049                    throws com.liferay.portal.kernel.exception.PortalException {
1050                    return _user.getOrganizationIds();
1051            }
1052    
1053            @Override
1054            public long[] getOrganizationIds(boolean includeAdministrative)
1055                    throws com.liferay.portal.kernel.exception.PortalException {
1056                    return _user.getOrganizationIds(includeAdministrative);
1057            }
1058    
1059            @Override
1060            public java.util.List<com.liferay.portal.model.Organization> getOrganizations()
1061                    throws com.liferay.portal.kernel.exception.PortalException {
1062                    return _user.getOrganizations();
1063            }
1064    
1065            @Override
1066            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1067                    boolean includeAdministrative)
1068                    throws com.liferay.portal.kernel.exception.PortalException {
1069                    return _user.getOrganizations(includeAdministrative);
1070            }
1071    
1072            @Override
1073            public java.lang.String getOriginalEmailAddress() {
1074                    return _user.getOriginalEmailAddress();
1075            }
1076    
1077            /**
1078            * Returns the password of this user.
1079            *
1080            * @return the password of this user
1081            */
1082            @Override
1083            public java.lang.String getPassword() {
1084                    return _user.getPassword();
1085            }
1086    
1087            /**
1088            * Returns the password encrypted of this user.
1089            *
1090            * @return the password encrypted of this user
1091            */
1092            @Override
1093            public boolean getPasswordEncrypted() {
1094                    return _user.getPasswordEncrypted();
1095            }
1096    
1097            @Override
1098            public boolean getPasswordModified() {
1099                    return _user.getPasswordModified();
1100            }
1101    
1102            /**
1103            * Returns the password modified date of this user.
1104            *
1105            * @return the password modified date of this user
1106            */
1107            @Override
1108            public Date getPasswordModifiedDate() {
1109                    return _user.getPasswordModifiedDate();
1110            }
1111    
1112            @Override
1113            public com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
1114                    throws com.liferay.portal.kernel.exception.PortalException {
1115                    return _user.getPasswordPolicy();
1116            }
1117    
1118            /**
1119            * Returns the password reset of this user.
1120            *
1121            * @return the password reset of this user
1122            */
1123            @Override
1124            public boolean getPasswordReset() {
1125                    return _user.getPasswordReset();
1126            }
1127    
1128            @Override
1129            public java.lang.String getPasswordUnencrypted() {
1130                    return _user.getPasswordUnencrypted();
1131            }
1132    
1133            @Override
1134            public java.util.List<com.liferay.portal.model.Phone> getPhones() {
1135                    return _user.getPhones();
1136            }
1137    
1138            /**
1139            * Returns the portrait ID of this user.
1140            *
1141            * @return the portrait ID of this user
1142            */
1143            @Override
1144            public long getPortraitId() {
1145                    return _user.getPortraitId();
1146            }
1147    
1148            @Override
1149            public java.lang.String getPortraitURL(
1150                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1151                    throws com.liferay.portal.kernel.exception.PortalException {
1152                    return _user.getPortraitURL(themeDisplay);
1153            }
1154    
1155            /**
1156            * Returns the primary key of this user.
1157            *
1158            * @return the primary key of this user
1159            */
1160            @Override
1161            public long getPrimaryKey() {
1162                    return _user.getPrimaryKey();
1163            }
1164    
1165            @Override
1166            public java.io.Serializable getPrimaryKeyObj() {
1167                    return _user.getPrimaryKeyObj();
1168            }
1169    
1170            @Override
1171            public int getPrivateLayoutsPageCount()
1172                    throws com.liferay.portal.kernel.exception.PortalException {
1173                    return _user.getPrivateLayoutsPageCount();
1174            }
1175    
1176            @Override
1177            public int getPublicLayoutsPageCount()
1178                    throws com.liferay.portal.kernel.exception.PortalException {
1179                    return _user.getPublicLayoutsPageCount();
1180            }
1181    
1182            /**
1183            * Returns the reminder query answer of this user.
1184            *
1185            * @return the reminder query answer of this user
1186            */
1187            @Override
1188            public java.lang.String getReminderQueryAnswer() {
1189                    return _user.getReminderQueryAnswer();
1190            }
1191    
1192            /**
1193            * Returns the reminder query question of this user.
1194            *
1195            * @return the reminder query question of this user
1196            */
1197            @Override
1198            public java.lang.String getReminderQueryQuestion() {
1199                    return _user.getReminderQueryQuestion();
1200            }
1201    
1202            @Override
1203            public java.util.Set<java.lang.String> getReminderQueryQuestions()
1204                    throws com.liferay.portal.kernel.exception.PortalException {
1205                    return _user.getReminderQueryQuestions();
1206            }
1207    
1208            @Override
1209            public com.liferay.portal.kernel.util.RemotePreference getRemotePreference(
1210                    java.lang.String name) {
1211                    return _user.getRemotePreference(name);
1212            }
1213    
1214            @Override
1215            public java.lang.Iterable<com.liferay.portal.kernel.util.RemotePreference> getRemotePreferences() {
1216                    return _user.getRemotePreferences();
1217            }
1218    
1219            @Override
1220            public long[] getRoleIds() {
1221                    return _user.getRoleIds();
1222            }
1223    
1224            @Override
1225            public java.util.List<com.liferay.portal.model.Role> getRoles() {
1226                    return _user.getRoles();
1227            }
1228    
1229            /**
1230            * Returns the screen name of this user.
1231            *
1232            * @return the screen name of this user
1233            */
1234            @Override
1235            public java.lang.String getScreenName() {
1236                    return _user.getScreenName();
1237            }
1238    
1239            @Override
1240            public java.util.List<com.liferay.portal.model.Group> getSiteGroups()
1241                    throws com.liferay.portal.kernel.exception.PortalException {
1242                    return _user.getSiteGroups();
1243            }
1244    
1245            @Override
1246            public java.util.List<com.liferay.portal.model.Group> getSiteGroups(
1247                    boolean includeAdministrative)
1248                    throws com.liferay.portal.kernel.exception.PortalException {
1249                    return _user.getSiteGroups(includeAdministrative);
1250            }
1251    
1252            /**
1253            * Returns the status of this user.
1254            *
1255            * @return the status of this user
1256            */
1257            @Override
1258            public int getStatus() {
1259                    return _user.getStatus();
1260            }
1261    
1262            @Override
1263            public long[] getTeamIds() {
1264                    return _user.getTeamIds();
1265            }
1266    
1267            @Override
1268            public java.util.List<com.liferay.portal.model.Team> getTeams() {
1269                    return _user.getTeams();
1270            }
1271    
1272            @Override
1273            public java.util.TimeZone getTimeZone() {
1274                    return _user.getTimeZone();
1275            }
1276    
1277            /**
1278            * Returns the time zone ID of this user.
1279            *
1280            * @return the time zone ID of this user
1281            */
1282            @Override
1283            public java.lang.String getTimeZoneId() {
1284                    return _user.getTimeZoneId();
1285            }
1286    
1287            @Override
1288            public Date getUnlockDate()
1289                    throws com.liferay.portal.kernel.exception.PortalException {
1290                    return _user.getUnlockDate();
1291            }
1292    
1293            @Override
1294            public Date getUnlockDate(
1295                    com.liferay.portal.model.PasswordPolicy passwordPolicy) {
1296                    return _user.getUnlockDate(passwordPolicy);
1297            }
1298    
1299            @Override
1300            public long[] getUserGroupIds() {
1301                    return _user.getUserGroupIds();
1302            }
1303    
1304            @Override
1305            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups() {
1306                    return _user.getUserGroups();
1307            }
1308    
1309            /**
1310            * Returns the user ID of this user.
1311            *
1312            * @return the user ID of this user
1313            */
1314            @Override
1315            public long getUserId() {
1316                    return _user.getUserId();
1317            }
1318    
1319            /**
1320            * Returns the user uuid of this user.
1321            *
1322            * @return the user uuid of this user
1323            */
1324            @Override
1325            public java.lang.String getUserUuid() {
1326                    return _user.getUserUuid();
1327            }
1328    
1329            /**
1330            * Returns the uuid of this user.
1331            *
1332            * @return the uuid of this user
1333            */
1334            @Override
1335            public java.lang.String getUuid() {
1336                    return _user.getUuid();
1337            }
1338    
1339            @Override
1340            public java.util.List<com.liferay.portal.model.Website> getWebsites() {
1341                    return _user.getWebsites();
1342            }
1343    
1344            @Override
1345            public boolean hasCompanyMx()
1346                    throws com.liferay.portal.kernel.exception.PortalException {
1347                    return _user.hasCompanyMx();
1348            }
1349    
1350            @Override
1351            public boolean hasCompanyMx(java.lang.String emailAddress)
1352                    throws com.liferay.portal.kernel.exception.PortalException {
1353                    return _user.hasCompanyMx(emailAddress);
1354            }
1355    
1356            @Override
1357            public boolean hasMySites()
1358                    throws com.liferay.portal.kernel.exception.PortalException {
1359                    return _user.hasMySites();
1360            }
1361    
1362            @Override
1363            public boolean hasOrganization() {
1364                    return _user.hasOrganization();
1365            }
1366    
1367            @Override
1368            public boolean hasPrivateLayouts()
1369                    throws com.liferay.portal.kernel.exception.PortalException {
1370                    return _user.hasPrivateLayouts();
1371            }
1372    
1373            @Override
1374            public boolean hasPublicLayouts()
1375                    throws com.liferay.portal.kernel.exception.PortalException {
1376                    return _user.hasPublicLayouts();
1377            }
1378    
1379            @Override
1380            public boolean hasReminderQuery() {
1381                    return _user.hasReminderQuery();
1382            }
1383    
1384            @Override
1385            public int hashCode() {
1386                    return _user.hashCode();
1387            }
1388    
1389            @Override
1390            public boolean isActive() {
1391                    return _user.isActive();
1392            }
1393    
1394            /**
1395            * Returns <code>true</code> if this user is agreed to terms of use.
1396            *
1397            * @return <code>true</code> if this user is agreed to terms of use; <code>false</code> otherwise
1398            */
1399            @Override
1400            public boolean isAgreedToTermsOfUse() {
1401                    return _user.isAgreedToTermsOfUse();
1402            }
1403    
1404            @Override
1405            public boolean isCachedModel() {
1406                    return _user.isCachedModel();
1407            }
1408    
1409            /**
1410            * Returns <code>true</code> if this user is default user.
1411            *
1412            * @return <code>true</code> if this user is default user; <code>false</code> otherwise
1413            */
1414            @Override
1415            public boolean isDefaultUser() {
1416                    return _user.isDefaultUser();
1417            }
1418    
1419            @Override
1420            public boolean isEmailAddressComplete() {
1421                    return _user.isEmailAddressComplete();
1422            }
1423    
1424            @Override
1425            public boolean isEmailAddressVerificationComplete() {
1426                    return _user.isEmailAddressVerificationComplete();
1427            }
1428    
1429            /**
1430            * Returns <code>true</code> if this user is email address verified.
1431            *
1432            * @return <code>true</code> if this user is email address verified; <code>false</code> otherwise
1433            */
1434            @Override
1435            public boolean isEmailAddressVerified() {
1436                    return _user.isEmailAddressVerified();
1437            }
1438    
1439            @Override
1440            public boolean isEscapedModel() {
1441                    return _user.isEscapedModel();
1442            }
1443    
1444            @Override
1445            public boolean isFemale()
1446                    throws com.liferay.portal.kernel.exception.PortalException {
1447                    return _user.isFemale();
1448            }
1449    
1450            /**
1451            * Returns <code>true</code> if this user is lockout.
1452            *
1453            * @return <code>true</code> if this user is lockout; <code>false</code> otherwise
1454            */
1455            @Override
1456            public boolean isLockout() {
1457                    return _user.isLockout();
1458            }
1459    
1460            @Override
1461            public boolean isMale()
1462                    throws com.liferay.portal.kernel.exception.PortalException {
1463                    return _user.isMale();
1464            }
1465    
1466            @Override
1467            public boolean isNew() {
1468                    return _user.isNew();
1469            }
1470    
1471            /**
1472            * Returns <code>true</code> if this user is password encrypted.
1473            *
1474            * @return <code>true</code> if this user is password encrypted; <code>false</code> otherwise
1475            */
1476            @Override
1477            public boolean isPasswordEncrypted() {
1478                    return _user.isPasswordEncrypted();
1479            }
1480    
1481            @Override
1482            public boolean isPasswordModified() {
1483                    return _user.isPasswordModified();
1484            }
1485    
1486            /**
1487            * Returns <code>true</code> if this user is password reset.
1488            *
1489            * @return <code>true</code> if this user is password reset; <code>false</code> otherwise
1490            */
1491            @Override
1492            public boolean isPasswordReset() {
1493                    return _user.isPasswordReset();
1494            }
1495    
1496            @Override
1497            public boolean isReminderQueryComplete() {
1498                    return _user.isReminderQueryComplete();
1499            }
1500    
1501            @Override
1502            public boolean isSetupComplete() {
1503                    return _user.isSetupComplete();
1504            }
1505    
1506            @Override
1507            public boolean isTermsOfUseComplete() {
1508                    return _user.isTermsOfUseComplete();
1509            }
1510    
1511            @Override
1512            public void persist() {
1513                    _user.persist();
1514            }
1515    
1516            /**
1517            * Sets whether this user is agreed to terms of use.
1518            *
1519            * @param agreedToTermsOfUse the agreed to terms of use of this user
1520            */
1521            @Override
1522            public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
1523                    _user.setAgreedToTermsOfUse(agreedToTermsOfUse);
1524            }
1525    
1526            @Override
1527            public void setCachedModel(boolean cachedModel) {
1528                    _user.setCachedModel(cachedModel);
1529            }
1530    
1531            /**
1532            * Sets the comments of this user.
1533            *
1534            * @param comments the comments of this user
1535            */
1536            @Override
1537            public void setComments(java.lang.String comments) {
1538                    _user.setComments(comments);
1539            }
1540    
1541            /**
1542            * Sets the company ID of this user.
1543            *
1544            * @param companyId the company ID of this user
1545            */
1546            @Override
1547            public void setCompanyId(long companyId) {
1548                    _user.setCompanyId(companyId);
1549            }
1550    
1551            /**
1552            * Sets the contact ID of this user.
1553            *
1554            * @param contactId the contact ID of this user
1555            */
1556            @Override
1557            public void setContactId(long contactId) {
1558                    _user.setContactId(contactId);
1559            }
1560    
1561            /**
1562            * Sets the create date of this user.
1563            *
1564            * @param createDate the create date of this user
1565            */
1566            @Override
1567            public void setCreateDate(Date createDate) {
1568                    _user.setCreateDate(createDate);
1569            }
1570    
1571            /**
1572            * Sets whether this user is default user.
1573            *
1574            * @param defaultUser the default user of this user
1575            */
1576            @Override
1577            public void setDefaultUser(boolean defaultUser) {
1578                    _user.setDefaultUser(defaultUser);
1579            }
1580    
1581            /**
1582            * Sets the digest of this user.
1583            *
1584            * @param digest the digest of this user
1585            */
1586            @Override
1587            public void setDigest(java.lang.String digest) {
1588                    _user.setDigest(digest);
1589            }
1590    
1591            /**
1592            * Sets the email address of this user.
1593            *
1594            * @param emailAddress the email address of this user
1595            */
1596            @Override
1597            public void setEmailAddress(java.lang.String emailAddress) {
1598                    _user.setEmailAddress(emailAddress);
1599            }
1600    
1601            /**
1602            * Sets whether this user is email address verified.
1603            *
1604            * @param emailAddressVerified the email address verified of this user
1605            */
1606            @Override
1607            public void setEmailAddressVerified(boolean emailAddressVerified) {
1608                    _user.setEmailAddressVerified(emailAddressVerified);
1609            }
1610    
1611            @Override
1612            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
1613                    _user.setExpandoBridgeAttributes(baseModel);
1614            }
1615    
1616            @Override
1617            public void setExpandoBridgeAttributes(
1618                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1619                    _user.setExpandoBridgeAttributes(expandoBridge);
1620            }
1621    
1622            @Override
1623            public void setExpandoBridgeAttributes(
1624                    com.liferay.portal.service.ServiceContext serviceContext) {
1625                    _user.setExpandoBridgeAttributes(serviceContext);
1626            }
1627    
1628            /**
1629            * Sets the facebook ID of this user.
1630            *
1631            * @param facebookId the facebook ID of this user
1632            */
1633            @Override
1634            public void setFacebookId(long facebookId) {
1635                    _user.setFacebookId(facebookId);
1636            }
1637    
1638            /**
1639            * Sets the failed login attempts of this user.
1640            *
1641            * @param failedLoginAttempts the failed login attempts of this user
1642            */
1643            @Override
1644            public void setFailedLoginAttempts(int failedLoginAttempts) {
1645                    _user.setFailedLoginAttempts(failedLoginAttempts);
1646            }
1647    
1648            /**
1649            * Sets the first name of this user.
1650            *
1651            * @param firstName the first name of this user
1652            */
1653            @Override
1654            public void setFirstName(java.lang.String firstName) {
1655                    _user.setFirstName(firstName);
1656            }
1657    
1658            /**
1659            * Sets the grace login count of this user.
1660            *
1661            * @param graceLoginCount the grace login count of this user
1662            */
1663            @Override
1664            public void setGraceLoginCount(int graceLoginCount) {
1665                    _user.setGraceLoginCount(graceLoginCount);
1666            }
1667    
1668            /**
1669            * Sets the greeting of this user.
1670            *
1671            * @param greeting the greeting of this user
1672            */
1673            @Override
1674            public void setGreeting(java.lang.String greeting) {
1675                    _user.setGreeting(greeting);
1676            }
1677    
1678            /**
1679            * Sets the job title of this user.
1680            *
1681            * @param jobTitle the job title of this user
1682            */
1683            @Override
1684            public void setJobTitle(java.lang.String jobTitle) {
1685                    _user.setJobTitle(jobTitle);
1686            }
1687    
1688            /**
1689            * Sets the language ID of this user.
1690            *
1691            * @param languageId the language ID of this user
1692            */
1693            @Override
1694            public void setLanguageId(java.lang.String languageId) {
1695                    _user.setLanguageId(languageId);
1696            }
1697    
1698            /**
1699            * Sets the last failed login date of this user.
1700            *
1701            * @param lastFailedLoginDate the last failed login date of this user
1702            */
1703            @Override
1704            public void setLastFailedLoginDate(Date lastFailedLoginDate) {
1705                    _user.setLastFailedLoginDate(lastFailedLoginDate);
1706            }
1707    
1708            /**
1709            * Sets the last login date of this user.
1710            *
1711            * @param lastLoginDate the last login date of this user
1712            */
1713            @Override
1714            public void setLastLoginDate(Date lastLoginDate) {
1715                    _user.setLastLoginDate(lastLoginDate);
1716            }
1717    
1718            /**
1719            * Sets the last login i p of this user.
1720            *
1721            * @param lastLoginIP the last login i p of this user
1722            */
1723            @Override
1724            public void setLastLoginIP(java.lang.String lastLoginIP) {
1725                    _user.setLastLoginIP(lastLoginIP);
1726            }
1727    
1728            /**
1729            * Sets the last name of this user.
1730            *
1731            * @param lastName the last name of this user
1732            */
1733            @Override
1734            public void setLastName(java.lang.String lastName) {
1735                    _user.setLastName(lastName);
1736            }
1737    
1738            /**
1739            * Sets the ldap server ID of this user.
1740            *
1741            * @param ldapServerId the ldap server ID of this user
1742            */
1743            @Override
1744            public void setLdapServerId(long ldapServerId) {
1745                    _user.setLdapServerId(ldapServerId);
1746            }
1747    
1748            /**
1749            * Sets whether this user is lockout.
1750            *
1751            * @param lockout the lockout of this user
1752            */
1753            @Override
1754            public void setLockout(boolean lockout) {
1755                    _user.setLockout(lockout);
1756            }
1757    
1758            /**
1759            * Sets the lockout date of this user.
1760            *
1761            * @param lockoutDate the lockout date of this user
1762            */
1763            @Override
1764            public void setLockoutDate(Date lockoutDate) {
1765                    _user.setLockoutDate(lockoutDate);
1766            }
1767    
1768            /**
1769            * Sets the login date of this user.
1770            *
1771            * @param loginDate the login date of this user
1772            */
1773            @Override
1774            public void setLoginDate(Date loginDate) {
1775                    _user.setLoginDate(loginDate);
1776            }
1777    
1778            /**
1779            * Sets the login i p of this user.
1780            *
1781            * @param loginIP the login i p of this user
1782            */
1783            @Override
1784            public void setLoginIP(java.lang.String loginIP) {
1785                    _user.setLoginIP(loginIP);
1786            }
1787    
1788            /**
1789            * Sets the middle name of this user.
1790            *
1791            * @param middleName the middle name of this user
1792            */
1793            @Override
1794            public void setMiddleName(java.lang.String middleName) {
1795                    _user.setMiddleName(middleName);
1796            }
1797    
1798            /**
1799            * Sets the modified date of this user.
1800            *
1801            * @param modifiedDate the modified date of this user
1802            */
1803            @Override
1804            public void setModifiedDate(Date modifiedDate) {
1805                    _user.setModifiedDate(modifiedDate);
1806            }
1807    
1808            /**
1809            * Sets the mvcc version of this user.
1810            *
1811            * @param mvccVersion the mvcc version of this user
1812            */
1813            @Override
1814            public void setMvccVersion(long mvccVersion) {
1815                    _user.setMvccVersion(mvccVersion);
1816            }
1817    
1818            @Override
1819            public void setNew(boolean n) {
1820                    _user.setNew(n);
1821            }
1822    
1823            /**
1824            * Sets the open ID of this user.
1825            *
1826            * @param openId the open ID of this user
1827            */
1828            @Override
1829            public void setOpenId(java.lang.String openId) {
1830                    _user.setOpenId(openId);
1831            }
1832    
1833            /**
1834            * Sets the password of this user.
1835            *
1836            * @param password the password of this user
1837            */
1838            @Override
1839            public void setPassword(java.lang.String password) {
1840                    _user.setPassword(password);
1841            }
1842    
1843            /**
1844            * Sets whether this user is password encrypted.
1845            *
1846            * @param passwordEncrypted the password encrypted of this user
1847            */
1848            @Override
1849            public void setPasswordEncrypted(boolean passwordEncrypted) {
1850                    _user.setPasswordEncrypted(passwordEncrypted);
1851            }
1852    
1853            @Override
1854            public void setPasswordModified(boolean passwordModified) {
1855                    _user.setPasswordModified(passwordModified);
1856            }
1857    
1858            /**
1859            * Sets the password modified date of this user.
1860            *
1861            * @param passwordModifiedDate the password modified date of this user
1862            */
1863            @Override
1864            public void setPasswordModifiedDate(Date passwordModifiedDate) {
1865                    _user.setPasswordModifiedDate(passwordModifiedDate);
1866            }
1867    
1868            /**
1869            * Sets whether this user is password reset.
1870            *
1871            * @param passwordReset the password reset of this user
1872            */
1873            @Override
1874            public void setPasswordReset(boolean passwordReset) {
1875                    _user.setPasswordReset(passwordReset);
1876            }
1877    
1878            @Override
1879            public void setPasswordUnencrypted(java.lang.String passwordUnencrypted) {
1880                    _user.setPasswordUnencrypted(passwordUnencrypted);
1881            }
1882    
1883            /**
1884            * Sets the portrait ID of this user.
1885            *
1886            * @param portraitId the portrait ID of this user
1887            */
1888            @Override
1889            public void setPortraitId(long portraitId) {
1890                    _user.setPortraitId(portraitId);
1891            }
1892    
1893            /**
1894            * Sets the primary key of this user.
1895            *
1896            * @param primaryKey the primary key of this user
1897            */
1898            @Override
1899            public void setPrimaryKey(long primaryKey) {
1900                    _user.setPrimaryKey(primaryKey);
1901            }
1902    
1903            @Override
1904            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1905                    _user.setPrimaryKeyObj(primaryKeyObj);
1906            }
1907    
1908            /**
1909            * Sets the reminder query answer of this user.
1910            *
1911            * @param reminderQueryAnswer the reminder query answer of this user
1912            */
1913            @Override
1914            public void setReminderQueryAnswer(java.lang.String reminderQueryAnswer) {
1915                    _user.setReminderQueryAnswer(reminderQueryAnswer);
1916            }
1917    
1918            /**
1919            * Sets the reminder query question of this user.
1920            *
1921            * @param reminderQueryQuestion the reminder query question of this user
1922            */
1923            @Override
1924            public void setReminderQueryQuestion(java.lang.String reminderQueryQuestion) {
1925                    _user.setReminderQueryQuestion(reminderQueryQuestion);
1926            }
1927    
1928            /**
1929            * Sets the screen name of this user.
1930            *
1931            * @param screenName the screen name of this user
1932            */
1933            @Override
1934            public void setScreenName(java.lang.String screenName) {
1935                    _user.setScreenName(screenName);
1936            }
1937    
1938            /**
1939            * Sets the status of this user.
1940            *
1941            * @param status the status of this user
1942            */
1943            @Override
1944            public void setStatus(int status) {
1945                    _user.setStatus(status);
1946            }
1947    
1948            /**
1949            * Sets the time zone ID of this user.
1950            *
1951            * @param timeZoneId the time zone ID of this user
1952            */
1953            @Override
1954            public void setTimeZoneId(java.lang.String timeZoneId) {
1955                    _user.setTimeZoneId(timeZoneId);
1956            }
1957    
1958            /**
1959            * Sets the user ID of this user.
1960            *
1961            * @param userId the user ID of this user
1962            */
1963            @Override
1964            public void setUserId(long userId) {
1965                    _user.setUserId(userId);
1966            }
1967    
1968            /**
1969            * Sets the user uuid of this user.
1970            *
1971            * @param userUuid the user uuid of this user
1972            */
1973            @Override
1974            public void setUserUuid(java.lang.String userUuid) {
1975                    _user.setUserUuid(userUuid);
1976            }
1977    
1978            /**
1979            * Sets the uuid of this user.
1980            *
1981            * @param uuid the uuid of this user
1982            */
1983            @Override
1984            public void setUuid(java.lang.String uuid) {
1985                    _user.setUuid(uuid);
1986            }
1987    
1988            @Override
1989            public CacheModel<com.liferay.portal.model.User> toCacheModel() {
1990                    return _user.toCacheModel();
1991            }
1992    
1993            @Override
1994            public com.liferay.portal.model.User toEscapedModel() {
1995                    return new UserWrapper(_user.toEscapedModel());
1996            }
1997    
1998            @Override
1999            public java.lang.String toString() {
2000                    return _user.toString();
2001            }
2002    
2003            @Override
2004            public com.liferay.portal.model.User toUnescapedModel() {
2005                    return new UserWrapper(_user.toUnescapedModel());
2006            }
2007    
2008            @Override
2009            public java.lang.String toXmlString() {
2010                    return _user.toXmlString();
2011            }
2012    
2013            @Override
2014            public boolean equals(Object obj) {
2015                    if (this == obj) {
2016                            return true;
2017                    }
2018    
2019                    if (!(obj instanceof UserWrapper)) {
2020                            return false;
2021                    }
2022    
2023                    UserWrapper userWrapper = (UserWrapper)obj;
2024    
2025                    if (Validator.equals(_user, userWrapper._user)) {
2026                            return true;
2027                    }
2028    
2029                    return false;
2030            }
2031    
2032            @Override
2033            public StagedModelType getStagedModelType() {
2034                    return _user.getStagedModelType();
2035            }
2036    
2037            @Override
2038            public User getWrappedModel() {
2039                    return _user;
2040            }
2041    
2042            @Override
2043            public boolean isEntityCacheEnabled() {
2044                    return _user.isEntityCacheEnabled();
2045            }
2046    
2047            @Override
2048            public boolean isFinderCacheEnabled() {
2049                    return _user.isFinderCacheEnabled();
2050            }
2051    
2052            @Override
2053            public void resetOriginalValues() {
2054                    _user.resetOriginalValues();
2055            }
2056    
2057            private final User _user;
2058    }