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