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