001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Accessor;
020
021
030 @ProviderType
031 public interface User extends UserModel, PersistedModel {
032
037 public static final Accessor<User, Long> USER_ID_ACCESSOR = new Accessor<User, Long>() {
038 @Override
039 public Long get(User user) {
040 return user.getUserId();
041 }
042
043 @Override
044 public Class<Long> getAttributeClass() {
045 return Long.class;
046 }
047
048 @Override
049 public Class<User> getTypeClass() {
050 return User.class;
051 }
052 };
053
054 public void addRemotePreference(
055 com.liferay.portal.kernel.util.RemotePreference remotePreference);
056
057 public com.liferay.portal.model.Contact fetchContact();
058
059
064 public java.util.List<com.liferay.portal.model.Address> getAddresses();
065
066
071 public java.util.Date getBirthday()
072 throws com.liferay.portal.kernel.exception.PortalException;
073
074
079 public java.lang.String getCompanyMx()
080 throws com.liferay.portal.kernel.exception.PortalException;
081
082
088 public com.liferay.portal.model.Contact getContact()
089 throws com.liferay.portal.kernel.exception.PortalException;
090
091
097 public java.lang.String getDigest(java.lang.String password);
098
099
106 public java.lang.String getDisplayEmailAddress();
107
108
134 @java.lang.Deprecated()
135 public java.lang.String getDisplayURL(java.lang.String portalURL,
136 java.lang.String mainPath)
137 throws com.liferay.portal.kernel.exception.PortalException;
138
139
172 @java.lang.Deprecated()
173 public java.lang.String getDisplayURL(java.lang.String portalURL,
174 java.lang.String mainPath, boolean privateLayout)
175 throws com.liferay.portal.kernel.exception.PortalException;
176
177
201 public java.lang.String getDisplayURL(
202 com.liferay.portal.theme.ThemeDisplay themeDisplay)
203 throws com.liferay.portal.kernel.exception.PortalException;
204
205
236 public java.lang.String getDisplayURL(
237 com.liferay.portal.theme.ThemeDisplay themeDisplay,
238 boolean privateLayout)
239 throws com.liferay.portal.kernel.exception.PortalException;
240
241
246 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses();
247
248
254 public boolean getFemale()
255 throws com.liferay.portal.kernel.exception.PortalException;
256
257
262 @com.liferay.portal.kernel.bean.AutoEscape()
263 public java.lang.String getFullName();
264
265
270 @com.liferay.portal.kernel.bean.AutoEscape()
271 public java.lang.String getFullName(boolean usePrefix, boolean useSuffix);
272
273 public com.liferay.portal.model.Group getGroup();
274
275 public long getGroupId();
276
277 public long[] getGroupIds();
278
279 public java.util.List<com.liferay.portal.model.Group> getGroups();
280
281 public java.util.Locale getLocale();
282
283 public java.lang.String getLogin()
284 throws com.liferay.portal.kernel.exception.PortalException;
285
286
292 public boolean getMale()
293 throws com.liferay.portal.kernel.exception.PortalException;
294
295 public java.util.List<com.liferay.portal.model.Group> getMySiteGroups()
296 throws com.liferay.portal.kernel.exception.PortalException;
297
298 public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
299 int max) throws com.liferay.portal.kernel.exception.PortalException;
300
301 public java.util.List<com.liferay.portal.model.Group> getMySiteGroups(
302 java.lang.String[] classNames, int max)
303 throws com.liferay.portal.kernel.exception.PortalException;
304
305
308 @java.lang.Deprecated()
309 public java.util.List<com.liferay.portal.model.Group> getMySites()
310 throws com.liferay.portal.kernel.exception.PortalException;
311
312
315 @java.lang.Deprecated()
316 public java.util.List<com.liferay.portal.model.Group> getMySites(
317 boolean includeControlPanel, int max)
318 throws com.liferay.portal.kernel.exception.PortalException;
319
320
323 @java.lang.Deprecated()
324 public java.util.List<com.liferay.portal.model.Group> getMySites(int max)
325 throws com.liferay.portal.kernel.exception.PortalException;
326
327
331 @java.lang.Deprecated()
332 public java.util.List<com.liferay.portal.model.Group> getMySites(
333 java.lang.String[] classNames, boolean includeControlPanel, int max)
334 throws com.liferay.portal.kernel.exception.PortalException;
335
336
340 @java.lang.Deprecated()
341 public java.util.List<com.liferay.portal.model.Group> getMySites(
342 java.lang.String[] classNames, int max)
343 throws com.liferay.portal.kernel.exception.PortalException;
344
345 public long[] getOrganizationIds()
346 throws com.liferay.portal.kernel.exception.PortalException;
347
348 public long[] getOrganizationIds(boolean includeAdministrative)
349 throws com.liferay.portal.kernel.exception.PortalException;
350
351 public java.util.List<com.liferay.portal.model.Organization> getOrganizations()
352 throws com.liferay.portal.kernel.exception.PortalException;
353
354 public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
355 boolean includeAdministrative)
356 throws com.liferay.portal.kernel.exception.PortalException;
357
358 public java.lang.String getOriginalEmailAddress();
359
360 public boolean getPasswordModified();
361
362 public com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
363 throws com.liferay.portal.kernel.exception.PortalException;
364
365 public java.lang.String getPasswordUnencrypted();
366
367 public java.util.List<com.liferay.portal.model.Phone> getPhones();
368
369 public java.lang.String getPortraitURL(
370 com.liferay.portal.theme.ThemeDisplay themeDisplay)
371 throws com.liferay.portal.kernel.exception.PortalException;
372
373 public int getPrivateLayoutsPageCount()
374 throws com.liferay.portal.kernel.exception.PortalException;
375
376 public int getPublicLayoutsPageCount()
377 throws com.liferay.portal.kernel.exception.PortalException;
378
379 public java.util.Set<java.lang.String> getReminderQueryQuestions()
380 throws com.liferay.portal.kernel.exception.PortalException;
381
382 public com.liferay.portal.kernel.util.RemotePreference getRemotePreference(
383 java.lang.String name);
384
385 public java.lang.Iterable<com.liferay.portal.kernel.util.RemotePreference> getRemotePreferences();
386
387 public long[] getRoleIds();
388
389 public java.util.List<com.liferay.portal.model.Role> getRoles();
390
391 public java.util.List<com.liferay.portal.model.Group> getSiteGroups()
392 throws com.liferay.portal.kernel.exception.PortalException;
393
394 public java.util.List<com.liferay.portal.model.Group> getSiteGroups(
395 boolean includeAdministrative)
396 throws com.liferay.portal.kernel.exception.PortalException;
397
398 public long[] getTeamIds();
399
400 public java.util.List<com.liferay.portal.model.Team> getTeams();
401
402 public java.util.TimeZone getTimeZone();
403
404 public java.util.Date getUnlockDate()
405 throws com.liferay.portal.kernel.exception.PortalException;
406
407 public java.util.Date getUnlockDate(
408 com.liferay.portal.model.PasswordPolicy passwordPolicy);
409
410 public long[] getUserGroupIds();
411
412 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups();
413
414 public java.util.List<com.liferay.portal.model.Website> getWebsites();
415
416 public boolean hasCompanyMx()
417 throws com.liferay.portal.kernel.exception.PortalException;
418
419 public boolean hasCompanyMx(java.lang.String emailAddress)
420 throws com.liferay.portal.kernel.exception.PortalException;
421
422 public boolean hasMySites()
423 throws com.liferay.portal.kernel.exception.PortalException;
424
425 public boolean hasOrganization();
426
427 public boolean hasPrivateLayouts()
428 throws com.liferay.portal.kernel.exception.PortalException;
429
430 public boolean hasPublicLayouts()
431 throws com.liferay.portal.kernel.exception.PortalException;
432
433 public boolean hasReminderQuery();
434
435 public boolean isActive();
436
437 public boolean isEmailAddressComplete();
438
439 public boolean isEmailAddressVerificationComplete();
440
441 public boolean isFemale()
442 throws com.liferay.portal.kernel.exception.PortalException;
443
444 public boolean isMale()
445 throws com.liferay.portal.kernel.exception.PortalException;
446
447 public boolean isPasswordModified();
448
449 public boolean isReminderQueryComplete();
450
451 public boolean isSetupComplete();
452
453 public boolean isTermsOfUseComplete();
454
455 public void setPasswordModified(boolean passwordModified);
456
457 public void setPasswordUnencrypted(java.lang.String passwordUnencrypted);
458 }