001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class UserWrapper implements User, ModelWrapper<User> {
033 public UserWrapper(User user) {
034 _user = user;
035 }
036
037 public Class<?> getModelClass() {
038 return User.class;
039 }
040
041 public String getModelClassName() {
042 return User.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("userId", getUserId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("createDate", getCreateDate());
052 attributes.put("modifiedDate", getModifiedDate());
053 attributes.put("defaultUser", getDefaultUser());
054 attributes.put("contactId", getContactId());
055 attributes.put("password", getPassword());
056 attributes.put("passwordEncrypted", getPasswordEncrypted());
057 attributes.put("passwordReset", getPasswordReset());
058 attributes.put("passwordModifiedDate", getPasswordModifiedDate());
059 attributes.put("digest", getDigest());
060 attributes.put("reminderQueryQuestion", getReminderQueryQuestion());
061 attributes.put("reminderQueryAnswer", getReminderQueryAnswer());
062 attributes.put("graceLoginCount", getGraceLoginCount());
063 attributes.put("screenName", getScreenName());
064 attributes.put("emailAddress", getEmailAddress());
065 attributes.put("facebookId", getFacebookId());
066 attributes.put("openId", getOpenId());
067 attributes.put("portraitId", getPortraitId());
068 attributes.put("languageId", getLanguageId());
069 attributes.put("timeZoneId", getTimeZoneId());
070 attributes.put("greeting", getGreeting());
071 attributes.put("comments", getComments());
072 attributes.put("firstName", getFirstName());
073 attributes.put("middleName", getMiddleName());
074 attributes.put("lastName", getLastName());
075 attributes.put("jobTitle", getJobTitle());
076 attributes.put("loginDate", getLoginDate());
077 attributes.put("loginIP", getLoginIP());
078 attributes.put("lastLoginDate", getLastLoginDate());
079 attributes.put("lastLoginIP", getLastLoginIP());
080 attributes.put("lastFailedLoginDate", getLastFailedLoginDate());
081 attributes.put("failedLoginAttempts", getFailedLoginAttempts());
082 attributes.put("lockout", getLockout());
083 attributes.put("lockoutDate", getLockoutDate());
084 attributes.put("agreedToTermsOfUse", getAgreedToTermsOfUse());
085 attributes.put("emailAddressVerified", getEmailAddressVerified());
086 attributes.put("status", getStatus());
087
088 return attributes;
089 }
090
091 public void setModelAttributes(Map<String, Object> attributes) {
092 String uuid = (String)attributes.get("uuid");
093
094 if (uuid != null) {
095 setUuid(uuid);
096 }
097
098 Long userId = (Long)attributes.get("userId");
099
100 if (userId != null) {
101 setUserId(userId);
102 }
103
104 Long companyId = (Long)attributes.get("companyId");
105
106 if (companyId != null) {
107 setCompanyId(companyId);
108 }
109
110 Date createDate = (Date)attributes.get("createDate");
111
112 if (createDate != null) {
113 setCreateDate(createDate);
114 }
115
116 Date modifiedDate = (Date)attributes.get("modifiedDate");
117
118 if (modifiedDate != null) {
119 setModifiedDate(modifiedDate);
120 }
121
122 Boolean defaultUser = (Boolean)attributes.get("defaultUser");
123
124 if (defaultUser != null) {
125 setDefaultUser(defaultUser);
126 }
127
128 Long contactId = (Long)attributes.get("contactId");
129
130 if (contactId != null) {
131 setContactId(contactId);
132 }
133
134 String password = (String)attributes.get("password");
135
136 if (password != null) {
137 setPassword(password);
138 }
139
140 Boolean passwordEncrypted = (Boolean)attributes.get("passwordEncrypted");
141
142 if (passwordEncrypted != null) {
143 setPasswordEncrypted(passwordEncrypted);
144 }
145
146 Boolean passwordReset = (Boolean)attributes.get("passwordReset");
147
148 if (passwordReset != null) {
149 setPasswordReset(passwordReset);
150 }
151
152 Date passwordModifiedDate = (Date)attributes.get("passwordModifiedDate");
153
154 if (passwordModifiedDate != null) {
155 setPasswordModifiedDate(passwordModifiedDate);
156 }
157
158 String digest = (String)attributes.get("digest");
159
160 if (digest != null) {
161 setDigest(digest);
162 }
163
164 String reminderQueryQuestion = (String)attributes.get(
165 "reminderQueryQuestion");
166
167 if (reminderQueryQuestion != null) {
168 setReminderQueryQuestion(reminderQueryQuestion);
169 }
170
171 String reminderQueryAnswer = (String)attributes.get(
172 "reminderQueryAnswer");
173
174 if (reminderQueryAnswer != null) {
175 setReminderQueryAnswer(reminderQueryAnswer);
176 }
177
178 Integer graceLoginCount = (Integer)attributes.get("graceLoginCount");
179
180 if (graceLoginCount != null) {
181 setGraceLoginCount(graceLoginCount);
182 }
183
184 String screenName = (String)attributes.get("screenName");
185
186 if (screenName != null) {
187 setScreenName(screenName);
188 }
189
190 String emailAddress = (String)attributes.get("emailAddress");
191
192 if (emailAddress != null) {
193 setEmailAddress(emailAddress);
194 }
195
196 Long facebookId = (Long)attributes.get("facebookId");
197
198 if (facebookId != null) {
199 setFacebookId(facebookId);
200 }
201
202 String openId = (String)attributes.get("openId");
203
204 if (openId != null) {
205 setOpenId(openId);
206 }
207
208 Long portraitId = (Long)attributes.get("portraitId");
209
210 if (portraitId != null) {
211 setPortraitId(portraitId);
212 }
213
214 String languageId = (String)attributes.get("languageId");
215
216 if (languageId != null) {
217 setLanguageId(languageId);
218 }
219
220 String timeZoneId = (String)attributes.get("timeZoneId");
221
222 if (timeZoneId != null) {
223 setTimeZoneId(timeZoneId);
224 }
225
226 String greeting = (String)attributes.get("greeting");
227
228 if (greeting != null) {
229 setGreeting(greeting);
230 }
231
232 String comments = (String)attributes.get("comments");
233
234 if (comments != null) {
235 setComments(comments);
236 }
237
238 String firstName = (String)attributes.get("firstName");
239
240 if (firstName != null) {
241 setFirstName(firstName);
242 }
243
244 String middleName = (String)attributes.get("middleName");
245
246 if (middleName != null) {
247 setMiddleName(middleName);
248 }
249
250 String lastName = (String)attributes.get("lastName");
251
252 if (lastName != null) {
253 setLastName(lastName);
254 }
255
256 String jobTitle = (String)attributes.get("jobTitle");
257
258 if (jobTitle != null) {
259 setJobTitle(jobTitle);
260 }
261
262 Date loginDate = (Date)attributes.get("loginDate");
263
264 if (loginDate != null) {
265 setLoginDate(loginDate);
266 }
267
268 String loginIP = (String)attributes.get("loginIP");
269
270 if (loginIP != null) {
271 setLoginIP(loginIP);
272 }
273
274 Date lastLoginDate = (Date)attributes.get("lastLoginDate");
275
276 if (lastLoginDate != null) {
277 setLastLoginDate(lastLoginDate);
278 }
279
280 String lastLoginIP = (String)attributes.get("lastLoginIP");
281
282 if (lastLoginIP != null) {
283 setLastLoginIP(lastLoginIP);
284 }
285
286 Date lastFailedLoginDate = (Date)attributes.get("lastFailedLoginDate");
287
288 if (lastFailedLoginDate != null) {
289 setLastFailedLoginDate(lastFailedLoginDate);
290 }
291
292 Integer failedLoginAttempts = (Integer)attributes.get(
293 "failedLoginAttempts");
294
295 if (failedLoginAttempts != null) {
296 setFailedLoginAttempts(failedLoginAttempts);
297 }
298
299 Boolean lockout = (Boolean)attributes.get("lockout");
300
301 if (lockout != null) {
302 setLockout(lockout);
303 }
304
305 Date lockoutDate = (Date)attributes.get("lockoutDate");
306
307 if (lockoutDate != null) {
308 setLockoutDate(lockoutDate);
309 }
310
311 Boolean agreedToTermsOfUse = (Boolean)attributes.get(
312 "agreedToTermsOfUse");
313
314 if (agreedToTermsOfUse != null) {
315 setAgreedToTermsOfUse(agreedToTermsOfUse);
316 }
317
318 Boolean emailAddressVerified = (Boolean)attributes.get(
319 "emailAddressVerified");
320
321 if (emailAddressVerified != null) {
322 setEmailAddressVerified(emailAddressVerified);
323 }
324
325 Integer status = (Integer)attributes.get("status");
326
327 if (status != null) {
328 setStatus(status);
329 }
330 }
331
332
337 public long getPrimaryKey() {
338 return _user.getPrimaryKey();
339 }
340
341
346 public void setPrimaryKey(long primaryKey) {
347 _user.setPrimaryKey(primaryKey);
348 }
349
350
355 public java.lang.String getUuid() {
356 return _user.getUuid();
357 }
358
359
364 public void setUuid(java.lang.String uuid) {
365 _user.setUuid(uuid);
366 }
367
368
373 public long getUserId() {
374 return _user.getUserId();
375 }
376
377
382 public void setUserId(long userId) {
383 _user.setUserId(userId);
384 }
385
386
392 public java.lang.String getUserUuid()
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return _user.getUserUuid();
395 }
396
397
402 public void setUserUuid(java.lang.String userUuid) {
403 _user.setUserUuid(userUuid);
404 }
405
406
411 public long getCompanyId() {
412 return _user.getCompanyId();
413 }
414
415
420 public void setCompanyId(long companyId) {
421 _user.setCompanyId(companyId);
422 }
423
424
429 public java.util.Date getCreateDate() {
430 return _user.getCreateDate();
431 }
432
433
438 public void setCreateDate(java.util.Date createDate) {
439 _user.setCreateDate(createDate);
440 }
441
442
447 public java.util.Date getModifiedDate() {
448 return _user.getModifiedDate();
449 }
450
451
456 public void setModifiedDate(java.util.Date modifiedDate) {
457 _user.setModifiedDate(modifiedDate);
458 }
459
460
465 public boolean getDefaultUser() {
466 return _user.getDefaultUser();
467 }
468
469
474 public boolean isDefaultUser() {
475 return _user.isDefaultUser();
476 }
477
478
483 public void setDefaultUser(boolean defaultUser) {
484 _user.setDefaultUser(defaultUser);
485 }
486
487
492 public long getContactId() {
493 return _user.getContactId();
494 }
495
496
501 public void setContactId(long contactId) {
502 _user.setContactId(contactId);
503 }
504
505
510 public java.lang.String getPassword() {
511 return _user.getPassword();
512 }
513
514
519 public void setPassword(java.lang.String password) {
520 _user.setPassword(password);
521 }
522
523
528 public boolean getPasswordEncrypted() {
529 return _user.getPasswordEncrypted();
530 }
531
532
537 public boolean isPasswordEncrypted() {
538 return _user.isPasswordEncrypted();
539 }
540
541
546 public void setPasswordEncrypted(boolean passwordEncrypted) {
547 _user.setPasswordEncrypted(passwordEncrypted);
548 }
549
550
555 public boolean getPasswordReset() {
556 return _user.getPasswordReset();
557 }
558
559
564 public boolean isPasswordReset() {
565 return _user.isPasswordReset();
566 }
567
568
573 public void setPasswordReset(boolean passwordReset) {
574 _user.setPasswordReset(passwordReset);
575 }
576
577
582 public java.util.Date getPasswordModifiedDate() {
583 return _user.getPasswordModifiedDate();
584 }
585
586
591 public void setPasswordModifiedDate(java.util.Date passwordModifiedDate) {
592 _user.setPasswordModifiedDate(passwordModifiedDate);
593 }
594
595
600 public java.lang.String getDigest() {
601 return _user.getDigest();
602 }
603
604
609 public void setDigest(java.lang.String digest) {
610 _user.setDigest(digest);
611 }
612
613
618 public java.lang.String getReminderQueryQuestion() {
619 return _user.getReminderQueryQuestion();
620 }
621
622
627 public void setReminderQueryQuestion(java.lang.String reminderQueryQuestion) {
628 _user.setReminderQueryQuestion(reminderQueryQuestion);
629 }
630
631
636 public java.lang.String getReminderQueryAnswer() {
637 return _user.getReminderQueryAnswer();
638 }
639
640
645 public void setReminderQueryAnswer(java.lang.String reminderQueryAnswer) {
646 _user.setReminderQueryAnswer(reminderQueryAnswer);
647 }
648
649
654 public int getGraceLoginCount() {
655 return _user.getGraceLoginCount();
656 }
657
658
663 public void setGraceLoginCount(int graceLoginCount) {
664 _user.setGraceLoginCount(graceLoginCount);
665 }
666
667
672 public java.lang.String getScreenName() {
673 return _user.getScreenName();
674 }
675
676
681 public void setScreenName(java.lang.String screenName) {
682 _user.setScreenName(screenName);
683 }
684
685
690 public java.lang.String getEmailAddress() {
691 return _user.getEmailAddress();
692 }
693
694
699 public void setEmailAddress(java.lang.String emailAddress) {
700 _user.setEmailAddress(emailAddress);
701 }
702
703
708 public long getFacebookId() {
709 return _user.getFacebookId();
710 }
711
712
717 public void setFacebookId(long facebookId) {
718 _user.setFacebookId(facebookId);
719 }
720
721
726 public java.lang.String getOpenId() {
727 return _user.getOpenId();
728 }
729
730
735 public void setOpenId(java.lang.String openId) {
736 _user.setOpenId(openId);
737 }
738
739
744 public long getPortraitId() {
745 return _user.getPortraitId();
746 }
747
748
753 public void setPortraitId(long portraitId) {
754 _user.setPortraitId(portraitId);
755 }
756
757
762 public java.lang.String getLanguageId() {
763 return _user.getLanguageId();
764 }
765
766
771 public void setLanguageId(java.lang.String languageId) {
772 _user.setLanguageId(languageId);
773 }
774
775
780 public java.lang.String getTimeZoneId() {
781 return _user.getTimeZoneId();
782 }
783
784
789 public void setTimeZoneId(java.lang.String timeZoneId) {
790 _user.setTimeZoneId(timeZoneId);
791 }
792
793
798 public java.lang.String getGreeting() {
799 return _user.getGreeting();
800 }
801
802
807 public void setGreeting(java.lang.String greeting) {
808 _user.setGreeting(greeting);
809 }
810
811
816 public java.lang.String getComments() {
817 return _user.getComments();
818 }
819
820
825 public void setComments(java.lang.String comments) {
826 _user.setComments(comments);
827 }
828
829
834 public java.lang.String getFirstName() {
835 return _user.getFirstName();
836 }
837
838
843 public void setFirstName(java.lang.String firstName) {
844 _user.setFirstName(firstName);
845 }
846
847
852 public java.lang.String getMiddleName() {
853 return _user.getMiddleName();
854 }
855
856
861 public void setMiddleName(java.lang.String middleName) {
862 _user.setMiddleName(middleName);
863 }
864
865
870 public java.lang.String getLastName() {
871 return _user.getLastName();
872 }
873
874
879 public void setLastName(java.lang.String lastName) {
880 _user.setLastName(lastName);
881 }
882
883
888 public java.lang.String getJobTitle() {
889 return _user.getJobTitle();
890 }
891
892
897 public void setJobTitle(java.lang.String jobTitle) {
898 _user.setJobTitle(jobTitle);
899 }
900
901
906 public java.util.Date getLoginDate() {
907 return _user.getLoginDate();
908 }
909
910
915 public void setLoginDate(java.util.Date loginDate) {
916 _user.setLoginDate(loginDate);
917 }
918
919
924 public java.lang.String getLoginIP() {
925 return _user.getLoginIP();
926 }
927
928
933 public void setLoginIP(java.lang.String loginIP) {
934 _user.setLoginIP(loginIP);
935 }
936
937
942 public java.util.Date getLastLoginDate() {
943 return _user.getLastLoginDate();
944 }
945
946
951 public void setLastLoginDate(java.util.Date lastLoginDate) {
952 _user.setLastLoginDate(lastLoginDate);
953 }
954
955
960 public java.lang.String getLastLoginIP() {
961 return _user.getLastLoginIP();
962 }
963
964
969 public void setLastLoginIP(java.lang.String lastLoginIP) {
970 _user.setLastLoginIP(lastLoginIP);
971 }
972
973
978 public java.util.Date getLastFailedLoginDate() {
979 return _user.getLastFailedLoginDate();
980 }
981
982
987 public void setLastFailedLoginDate(java.util.Date lastFailedLoginDate) {
988 _user.setLastFailedLoginDate(lastFailedLoginDate);
989 }
990
991
996 public int getFailedLoginAttempts() {
997 return _user.getFailedLoginAttempts();
998 }
999
1000
1005 public void setFailedLoginAttempts(int failedLoginAttempts) {
1006 _user.setFailedLoginAttempts(failedLoginAttempts);
1007 }
1008
1009
1014 public boolean getLockout() {
1015 return _user.getLockout();
1016 }
1017
1018
1023 public boolean isLockout() {
1024 return _user.isLockout();
1025 }
1026
1027
1032 public void setLockout(boolean lockout) {
1033 _user.setLockout(lockout);
1034 }
1035
1036
1041 public java.util.Date getLockoutDate() {
1042 return _user.getLockoutDate();
1043 }
1044
1045
1050 public void setLockoutDate(java.util.Date lockoutDate) {
1051 _user.setLockoutDate(lockoutDate);
1052 }
1053
1054
1059 public boolean getAgreedToTermsOfUse() {
1060 return _user.getAgreedToTermsOfUse();
1061 }
1062
1063
1068 public boolean isAgreedToTermsOfUse() {
1069 return _user.isAgreedToTermsOfUse();
1070 }
1071
1072
1077 public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse) {
1078 _user.setAgreedToTermsOfUse(agreedToTermsOfUse);
1079 }
1080
1081
1086 public boolean getEmailAddressVerified() {
1087 return _user.getEmailAddressVerified();
1088 }
1089
1090
1095 public boolean isEmailAddressVerified() {
1096 return _user.isEmailAddressVerified();
1097 }
1098
1099
1104 public void setEmailAddressVerified(boolean emailAddressVerified) {
1105 _user.setEmailAddressVerified(emailAddressVerified);
1106 }
1107
1108
1113 public int getStatus() {
1114 return _user.getStatus();
1115 }
1116
1117
1122 public void setStatus(int status) {
1123 _user.setStatus(status);
1124 }
1125
1126 public boolean isNew() {
1127 return _user.isNew();
1128 }
1129
1130 public void setNew(boolean n) {
1131 _user.setNew(n);
1132 }
1133
1134 public boolean isCachedModel() {
1135 return _user.isCachedModel();
1136 }
1137
1138 public void setCachedModel(boolean cachedModel) {
1139 _user.setCachedModel(cachedModel);
1140 }
1141
1142 public boolean isEscapedModel() {
1143 return _user.isEscapedModel();
1144 }
1145
1146 public java.io.Serializable getPrimaryKeyObj() {
1147 return _user.getPrimaryKeyObj();
1148 }
1149
1150 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1151 _user.setPrimaryKeyObj(primaryKeyObj);
1152 }
1153
1154 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1155 return _user.getExpandoBridge();
1156 }
1157
1158 public void setExpandoBridgeAttributes(
1159 com.liferay.portal.service.ServiceContext serviceContext) {
1160 _user.setExpandoBridgeAttributes(serviceContext);
1161 }
1162
1163 @Override
1164 public java.lang.Object clone() {
1165 return new UserWrapper((User)_user.clone());
1166 }
1167
1168 public int compareTo(com.liferay.portal.model.User user) {
1169 return _user.compareTo(user);
1170 }
1171
1172 @Override
1173 public int hashCode() {
1174 return _user.hashCode();
1175 }
1176
1177 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.User> toCacheModel() {
1178 return _user.toCacheModel();
1179 }
1180
1181 public com.liferay.portal.model.User toEscapedModel() {
1182 return new UserWrapper(_user.toEscapedModel());
1183 }
1184
1185 public com.liferay.portal.model.User toUnescapedModel() {
1186 return new UserWrapper(_user.toUnescapedModel());
1187 }
1188
1189 @Override
1190 public java.lang.String toString() {
1191 return _user.toString();
1192 }
1193
1194 public java.lang.String toXmlString() {
1195 return _user.toXmlString();
1196 }
1197
1198 public void persist()
1199 throws com.liferay.portal.kernel.exception.SystemException {
1200 _user.persist();
1201 }
1202
1203 public java.util.List<com.liferay.portal.model.Address> getAddresses()
1204 throws com.liferay.portal.kernel.exception.SystemException {
1205 return _user.getAddresses();
1206 }
1207
1208 public java.util.Date getBirthday()
1209 throws com.liferay.portal.kernel.exception.PortalException,
1210 com.liferay.portal.kernel.exception.SystemException {
1211 return _user.getBirthday();
1212 }
1213
1214 public java.lang.String getCompanyMx()
1215 throws com.liferay.portal.kernel.exception.PortalException,
1216 com.liferay.portal.kernel.exception.SystemException {
1217 return _user.getCompanyMx();
1218 }
1219
1220 public com.liferay.portal.model.Contact getContact()
1221 throws com.liferay.portal.kernel.exception.PortalException,
1222 com.liferay.portal.kernel.exception.SystemException {
1223 return _user.getContact();
1224 }
1225
1226 public java.lang.String getDigest(java.lang.String password) {
1227 return _user.getDigest(password);
1228 }
1229
1230 public java.lang.String getDisplayEmailAddress() {
1231 return _user.getDisplayEmailAddress();
1232 }
1233
1234 public java.lang.String getDisplayURL(java.lang.String portalURL,
1235 java.lang.String mainPath)
1236 throws com.liferay.portal.kernel.exception.PortalException,
1237 com.liferay.portal.kernel.exception.SystemException {
1238 return _user.getDisplayURL(portalURL, mainPath);
1239 }
1240
1241 public java.lang.String getDisplayURL(java.lang.String portalURL,
1242 java.lang.String mainPath, boolean privateLayout)
1243 throws com.liferay.portal.kernel.exception.PortalException,
1244 com.liferay.portal.kernel.exception.SystemException {
1245 return _user.getDisplayURL(portalURL, mainPath, privateLayout);
1246 }
1247
1248 public java.lang.String getDisplayURL(
1249 com.liferay.portal.theme.ThemeDisplay themeDisplay)
1250 throws com.liferay.portal.kernel.exception.PortalException,
1251 com.liferay.portal.kernel.exception.SystemException {
1252 return _user.getDisplayURL(themeDisplay);
1253 }
1254
1255 public java.lang.String getDisplayURL(
1256 com.liferay.portal.theme.ThemeDisplay themeDisplay,
1257 boolean privateLayout)
1258 throws com.liferay.portal.kernel.exception.PortalException,
1259 com.liferay.portal.kernel.exception.SystemException {
1260 return _user.getDisplayURL(themeDisplay, privateLayout);
1261 }
1262
1263 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses()
1264 throws com.liferay.portal.kernel.exception.SystemException {
1265 return _user.getEmailAddresses();
1266 }
1267
1268 public boolean getFemale()
1269 throws com.liferay.portal.kernel.exception.PortalException,
1270 com.liferay.portal.kernel.exception.SystemException {
1271 return _user.getFemale();
1272 }
1273
1274 public java.lang.String getFullName() {
1275 return _user.getFullName();
1276 }
1277
1278 public com.liferay.portal.model.Group getGroup()
1279 throws com.liferay.portal.kernel.exception.PortalException,
1280 com.liferay.portal.kernel.exception.SystemException {
1281 return _user.getGroup();
1282 }
1283
1284 public long getGroupId()
1285 throws com.liferay.portal.kernel.exception.PortalException,
1286 com.liferay.portal.kernel.exception.SystemException {
1287 return _user.getGroupId();
1288 }
1289
1290 public long[] getGroupIds()
1291 throws com.liferay.portal.kernel.exception.PortalException,
1292 com.liferay.portal.kernel.exception.SystemException {
1293 return _user.getGroupIds();
1294 }
1295
1296 public java.util.List<com.liferay.portal.model.Group> getGroups()
1297 throws com.liferay.portal.kernel.exception.PortalException,
1298 com.liferay.portal.kernel.exception.SystemException {
1299 return _user.getGroups();
1300 }
1301
1302 public java.util.Locale getLocale() {
1303 return _user.getLocale();
1304 }
1305
1306 public java.lang.String getLogin()
1307 throws com.liferay.portal.kernel.exception.PortalException,
1308 com.liferay.portal.kernel.exception.SystemException {
1309 return _user.getLogin();
1310 }
1311
1312 public boolean getMale()
1313 throws com.liferay.portal.kernel.exception.PortalException,
1314 com.liferay.portal.kernel.exception.SystemException {
1315 return _user.getMale();
1316 }
1317
1318 public java.util.List<com.liferay.portal.model.Group> getMySites()
1319 throws com.liferay.portal.kernel.exception.PortalException,
1320 com.liferay.portal.kernel.exception.SystemException {
1321 return _user.getMySites();
1322 }
1323
1324 public java.util.List<com.liferay.portal.model.Group> getMySites(
1325 boolean includeControlPanel, int max)
1326 throws com.liferay.portal.kernel.exception.PortalException,
1327 com.liferay.portal.kernel.exception.SystemException {
1328 return _user.getMySites(includeControlPanel, max);
1329 }
1330
1331 public java.util.List<com.liferay.portal.model.Group> getMySites(int max)
1332 throws com.liferay.portal.kernel.exception.PortalException,
1333 com.liferay.portal.kernel.exception.SystemException {
1334 return _user.getMySites(max);
1335 }
1336
1337 public java.util.List<com.liferay.portal.model.Group> getMySites(
1338 java.lang.String[] classNames, boolean includeControlPanel, int max)
1339 throws com.liferay.portal.kernel.exception.PortalException,
1340 com.liferay.portal.kernel.exception.SystemException {
1341 return _user.getMySites(classNames, includeControlPanel, max);
1342 }
1343
1344 public java.util.List<com.liferay.portal.model.Group> getMySites(
1345 java.lang.String[] classNames, int max)
1346 throws com.liferay.portal.kernel.exception.PortalException,
1347 com.liferay.portal.kernel.exception.SystemException {
1348 return _user.getMySites(classNames, max);
1349 }
1350
1351 public long[] getOrganizationIds()
1352 throws com.liferay.portal.kernel.exception.PortalException,
1353 com.liferay.portal.kernel.exception.SystemException {
1354 return _user.getOrganizationIds();
1355 }
1356
1357 public long[] getOrganizationIds(boolean includeAdministrative)
1358 throws com.liferay.portal.kernel.exception.PortalException,
1359 com.liferay.portal.kernel.exception.SystemException {
1360 return _user.getOrganizationIds(includeAdministrative);
1361 }
1362
1363 public java.util.List<com.liferay.portal.model.Organization> getOrganizations()
1364 throws com.liferay.portal.kernel.exception.PortalException,
1365 com.liferay.portal.kernel.exception.SystemException {
1366 return _user.getOrganizations();
1367 }
1368
1369 public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1370 boolean includeAdministrative)
1371 throws com.liferay.portal.kernel.exception.PortalException,
1372 com.liferay.portal.kernel.exception.SystemException {
1373 return _user.getOrganizations(includeAdministrative);
1374 }
1375
1376 public boolean getPasswordModified() {
1377 return _user.getPasswordModified();
1378 }
1379
1380 public com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
1381 throws com.liferay.portal.kernel.exception.PortalException,
1382 com.liferay.portal.kernel.exception.SystemException {
1383 return _user.getPasswordPolicy();
1384 }
1385
1386 public java.lang.String getPasswordUnencrypted() {
1387 return _user.getPasswordUnencrypted();
1388 }
1389
1390 public java.util.List<com.liferay.portal.model.Phone> getPhones()
1391 throws com.liferay.portal.kernel.exception.SystemException {
1392 return _user.getPhones();
1393 }
1394
1395 public java.lang.String getPortraitURL(
1396 com.liferay.portal.theme.ThemeDisplay themeDisplay)
1397 throws com.liferay.portal.kernel.exception.PortalException,
1398 com.liferay.portal.kernel.exception.SystemException {
1399 return _user.getPortraitURL(themeDisplay);
1400 }
1401
1402 public int getPrivateLayoutsPageCount()
1403 throws com.liferay.portal.kernel.exception.PortalException,
1404 com.liferay.portal.kernel.exception.SystemException {
1405 return _user.getPrivateLayoutsPageCount();
1406 }
1407
1408 public int getPublicLayoutsPageCount()
1409 throws com.liferay.portal.kernel.exception.PortalException,
1410 com.liferay.portal.kernel.exception.SystemException {
1411 return _user.getPublicLayoutsPageCount();
1412 }
1413
1414 public java.util.Set<java.lang.String> getReminderQueryQuestions()
1415 throws com.liferay.portal.kernel.exception.PortalException,
1416 com.liferay.portal.kernel.exception.SystemException {
1417 return _user.getReminderQueryQuestions();
1418 }
1419
1420 public long[] getRoleIds()
1421 throws com.liferay.portal.kernel.exception.SystemException {
1422 return _user.getRoleIds();
1423 }
1424
1425 public java.util.List<com.liferay.portal.model.Role> getRoles()
1426 throws com.liferay.portal.kernel.exception.SystemException {
1427 return _user.getRoles();
1428 }
1429
1430 public long[] getTeamIds()
1431 throws com.liferay.portal.kernel.exception.SystemException {
1432 return _user.getTeamIds();
1433 }
1434
1435 public java.util.List<com.liferay.portal.model.Team> getTeams()
1436 throws com.liferay.portal.kernel.exception.SystemException {
1437 return _user.getTeams();
1438 }
1439
1440 public java.util.TimeZone getTimeZone() {
1441 return _user.getTimeZone();
1442 }
1443
1444 public long[] getUserGroupIds()
1445 throws com.liferay.portal.kernel.exception.SystemException {
1446 return _user.getUserGroupIds();
1447 }
1448
1449 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups()
1450 throws com.liferay.portal.kernel.exception.SystemException {
1451 return _user.getUserGroups();
1452 }
1453
1454 public java.util.List<com.liferay.portal.model.Website> getWebsites()
1455 throws com.liferay.portal.kernel.exception.SystemException {
1456 return _user.getWebsites();
1457 }
1458
1459 public boolean hasCompanyMx()
1460 throws com.liferay.portal.kernel.exception.PortalException,
1461 com.liferay.portal.kernel.exception.SystemException {
1462 return _user.hasCompanyMx();
1463 }
1464
1465 public boolean hasCompanyMx(java.lang.String emailAddress)
1466 throws com.liferay.portal.kernel.exception.PortalException,
1467 com.liferay.portal.kernel.exception.SystemException {
1468 return _user.hasCompanyMx(emailAddress);
1469 }
1470
1471 public boolean hasMySites()
1472 throws com.liferay.portal.kernel.exception.PortalException,
1473 com.liferay.portal.kernel.exception.SystemException {
1474 return _user.hasMySites();
1475 }
1476
1477 public boolean hasOrganization()
1478 throws com.liferay.portal.kernel.exception.PortalException,
1479 com.liferay.portal.kernel.exception.SystemException {
1480 return _user.hasOrganization();
1481 }
1482
1483 public boolean hasPrivateLayouts()
1484 throws com.liferay.portal.kernel.exception.PortalException,
1485 com.liferay.portal.kernel.exception.SystemException {
1486 return _user.hasPrivateLayouts();
1487 }
1488
1489 public boolean hasPublicLayouts()
1490 throws com.liferay.portal.kernel.exception.PortalException,
1491 com.liferay.portal.kernel.exception.SystemException {
1492 return _user.hasPublicLayouts();
1493 }
1494
1495 public boolean hasReminderQuery() {
1496 return _user.hasReminderQuery();
1497 }
1498
1499 public boolean isActive() {
1500 return _user.isActive();
1501 }
1502
1503 public boolean isFemale()
1504 throws com.liferay.portal.kernel.exception.PortalException,
1505 com.liferay.portal.kernel.exception.SystemException {
1506 return _user.isFemale();
1507 }
1508
1509 public boolean isMale()
1510 throws com.liferay.portal.kernel.exception.PortalException,
1511 com.liferay.portal.kernel.exception.SystemException {
1512 return _user.isMale();
1513 }
1514
1515 public boolean isPasswordModified() {
1516 return _user.isPasswordModified();
1517 }
1518
1519 public void setPasswordModified(boolean passwordModified) {
1520 _user.setPasswordModified(passwordModified);
1521 }
1522
1523 public void setPasswordUnencrypted(java.lang.String passwordUnencrypted) {
1524 _user.setPasswordUnencrypted(passwordUnencrypted);
1525 }
1526
1527 @Override
1528 public boolean equals(Object obj) {
1529 if (this == obj) {
1530 return true;
1531 }
1532
1533 if (!(obj instanceof UserWrapper)) {
1534 return false;
1535 }
1536
1537 UserWrapper userWrapper = (UserWrapper)obj;
1538
1539 if (Validator.equals(_user, userWrapper._user)) {
1540 return true;
1541 }
1542
1543 return false;
1544 }
1545
1546
1549 public User getWrappedUser() {
1550 return _user;
1551 }
1552
1553 public User getWrappedModel() {
1554 return _user;
1555 }
1556
1557 public void resetOriginalValues() {
1558 _user.resetOriginalValues();
1559 }
1560
1561 private User _user;
1562 }