001
014
015 package com.liferay.portal.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.annotation.ImplementationClassName;
020 import com.liferay.portal.kernel.util.Accessor;
021
022
031 @ImplementationClassName("com.liferay.portal.model.impl.UserImpl")
032 @ProviderType
033 public interface User extends UserModel, PersistedModel {
034
039 public static final Accessor<User, Long> USER_ID_ACCESSOR = new Accessor<User, Long>() {
040 @Override
041 public Long get(User user) {
042 return user.getUserId();
043 }
044
045 @Override
046 public Class<Long> getAttributeClass() {
047 return Long.class;
048 }
049
050 @Override
051 public Class<User> getTypeClass() {
052 return User.class;
053 }
054 };
055
056 public void addRemotePreference(
057 com.liferay.portal.kernel.util.RemotePreference remotePreference);
058
059 public com.liferay.portal.kernel.model.Contact fetchContact();
060
061
066 public java.util.List<com.liferay.portal.kernel.model.Address> getAddresses();
067
068
073 public java.util.Date getBirthday()
074 throws com.liferay.portal.kernel.exception.PortalException;
075
076
081 public java.lang.String getCompanyMx()
082 throws com.liferay.portal.kernel.exception.PortalException;
083
084
090 public com.liferay.portal.kernel.model.Contact getContact()
091 throws com.liferay.portal.kernel.exception.PortalException;
092
093
099 public java.lang.String getDigest(java.lang.String password);
100
101
108 public java.lang.String getDisplayEmailAddress();
109
110
136 @java.lang.Deprecated()
137 public java.lang.String getDisplayURL(java.lang.String portalURL,
138 java.lang.String mainPath)
139 throws com.liferay.portal.kernel.exception.PortalException;
140
141
174 @java.lang.Deprecated()
175 public java.lang.String getDisplayURL(java.lang.String portalURL,
176 java.lang.String mainPath, boolean privateLayout)
177 throws com.liferay.portal.kernel.exception.PortalException;
178
179
203 public java.lang.String getDisplayURL(
204 com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
205 throws com.liferay.portal.kernel.exception.PortalException;
206
207
238 public java.lang.String getDisplayURL(
239 com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
240 boolean privateLayout)
241 throws com.liferay.portal.kernel.exception.PortalException;
242
243
248 public java.util.List<com.liferay.portal.kernel.model.EmailAddress> getEmailAddresses();
249
250
256 public boolean getFemale()
257 throws com.liferay.portal.kernel.exception.PortalException;
258
259
264 @com.liferay.portal.kernel.bean.AutoEscape()
265 public java.lang.String getFullName();
266
267
272 @com.liferay.portal.kernel.bean.AutoEscape()
273 public java.lang.String getFullName(boolean usePrefix, boolean useSuffix);
274
275 public com.liferay.portal.kernel.model.Group getGroup();
276
277 public long getGroupId();
278
279 public long[] getGroupIds();
280
281 public java.util.List<com.liferay.portal.kernel.model.Group> getGroups();
282
283 public java.lang.String getInitials();
284
285 public java.util.Locale getLocale();
286
287 public java.lang.String getLogin()
288 throws com.liferay.portal.kernel.exception.PortalException;
289
290
296 public boolean getMale()
297 throws com.liferay.portal.kernel.exception.PortalException;
298
299 public java.util.List<com.liferay.portal.kernel.model.Group> getMySiteGroups()
300 throws com.liferay.portal.kernel.exception.PortalException;
301
302 public java.util.List<com.liferay.portal.kernel.model.Group> getMySiteGroups(
303 int max) throws com.liferay.portal.kernel.exception.PortalException;
304
305 public java.util.List<com.liferay.portal.kernel.model.Group> getMySiteGroups(
306 java.lang.String[] classNames, int max)
307 throws com.liferay.portal.kernel.exception.PortalException;
308
309 public long[] getOrganizationIds()
310 throws com.liferay.portal.kernel.exception.PortalException;
311
312 public long[] getOrganizationIds(boolean includeAdministrative)
313 throws com.liferay.portal.kernel.exception.PortalException;
314
315 public java.util.List<com.liferay.portal.kernel.model.Organization> getOrganizations()
316 throws com.liferay.portal.kernel.exception.PortalException;
317
318 public java.util.List<com.liferay.portal.kernel.model.Organization> getOrganizations(
319 boolean includeAdministrative)
320 throws com.liferay.portal.kernel.exception.PortalException;
321
322 public java.lang.String getOriginalEmailAddress();
323
324 public boolean getPasswordModified();
325
326 public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicy()
327 throws com.liferay.portal.kernel.exception.PortalException;
328
329 public java.lang.String getPasswordUnencrypted();
330
331 public java.util.List<com.liferay.portal.kernel.model.Phone> getPhones();
332
333 public java.lang.String getPortraitURL(
334 com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
335 throws com.liferay.portal.kernel.exception.PortalException;
336
337 public int getPrivateLayoutsPageCount()
338 throws com.liferay.portal.kernel.exception.PortalException;
339
340 public int getPublicLayoutsPageCount()
341 throws com.liferay.portal.kernel.exception.PortalException;
342
343 public java.util.Set<java.lang.String> getReminderQueryQuestions()
344 throws com.liferay.portal.kernel.exception.PortalException;
345
346 public com.liferay.portal.kernel.util.RemotePreference getRemotePreference(
347 java.lang.String name);
348
349 public java.lang.Iterable<com.liferay.portal.kernel.util.RemotePreference> getRemotePreferences();
350
351 public long[] getRoleIds();
352
353 public java.util.List<com.liferay.portal.kernel.model.Role> getRoles();
354
355 public java.util.List<com.liferay.portal.kernel.model.Group> getSiteGroups()
356 throws com.liferay.portal.kernel.exception.PortalException;
357
358 public java.util.List<com.liferay.portal.kernel.model.Group> getSiteGroups(
359 boolean includeAdministrative)
360 throws com.liferay.portal.kernel.exception.PortalException;
361
362 public long[] getTeamIds();
363
364 public java.util.List<com.liferay.portal.kernel.model.Team> getTeams();
365
366 public java.util.TimeZone getTimeZone();
367
368 public java.util.Date getUnlockDate()
369 throws com.liferay.portal.kernel.exception.PortalException;
370
371 public java.util.Date getUnlockDate(
372 com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy);
373
374 public long[] getUserGroupIds();
375
376 public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups();
377
378 public java.util.List<com.liferay.portal.kernel.model.Website> getWebsites();
379
380 public boolean hasCompanyMx()
381 throws com.liferay.portal.kernel.exception.PortalException;
382
383 public boolean hasCompanyMx(java.lang.String emailAddress)
384 throws com.liferay.portal.kernel.exception.PortalException;
385
386 public boolean hasMySites()
387 throws com.liferay.portal.kernel.exception.PortalException;
388
389 public boolean hasOrganization();
390
391 public boolean hasPrivateLayouts()
392 throws com.liferay.portal.kernel.exception.PortalException;
393
394 public boolean hasPublicLayouts()
395 throws com.liferay.portal.kernel.exception.PortalException;
396
397 public boolean hasReminderQuery();
398
399 public boolean isActive();
400
401 public boolean isEmailAddressComplete();
402
403 public boolean isEmailAddressVerificationComplete();
404
405 public boolean isFemale()
406 throws com.liferay.portal.kernel.exception.PortalException;
407
408 public boolean isMale()
409 throws com.liferay.portal.kernel.exception.PortalException;
410
411 public boolean isPasswordModified();
412
413 public boolean isReminderQueryComplete();
414
415 public boolean isSetupComplete();
416
417 public boolean isTermsOfUseComplete();
418
419 public void setPasswordModified(boolean passwordModified);
420
421 public void setPasswordUnencrypted(java.lang.String passwordUnencrypted);
422 }