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 Contact fetchContact();
060
061
066 public java.util.List<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 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<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 Group getGroup();
276
277 public long getGroupId();
278
279 public long[] getGroupIds();
280
281 public java.util.List<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<Group> getMySiteGroups()
300 throws com.liferay.portal.kernel.exception.PortalException;
301
302 public java.util.List<Group> getMySiteGroups(int max)
303 throws com.liferay.portal.kernel.exception.PortalException;
304
305 public java.util.List<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<Organization> getOrganizations()
316 throws com.liferay.portal.kernel.exception.PortalException;
317
318 public java.util.List<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 PasswordPolicy getPasswordPolicy()
327 throws com.liferay.portal.kernel.exception.PortalException;
328
329 public java.lang.String getPasswordUnencrypted();
330
331 public java.util.List<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<Role> getRoles();
354
355 public java.util.List<Group> getSiteGroups()
356 throws com.liferay.portal.kernel.exception.PortalException;
357
358 public java.util.List<Group> getSiteGroups(boolean includeAdministrative)
359 throws com.liferay.portal.kernel.exception.PortalException;
360
361 public long[] getTeamIds();
362
363 public java.util.List<Team> getTeams();
364
365 public java.util.TimeZone getTimeZone();
366
367 public java.util.Date getUnlockDate()
368 throws com.liferay.portal.kernel.exception.PortalException;
369
370 public java.util.Date getUnlockDate(PasswordPolicy passwordPolicy);
371
372 public long[] getUserGroupIds();
373
374 public java.util.List<UserGroup> getUserGroups();
375
376 public java.util.List<Website> getWebsites();
377
378 public boolean hasCompanyMx()
379 throws com.liferay.portal.kernel.exception.PortalException;
380
381 public boolean hasCompanyMx(java.lang.String emailAddress)
382 throws com.liferay.portal.kernel.exception.PortalException;
383
384 public boolean hasMySites()
385 throws com.liferay.portal.kernel.exception.PortalException;
386
387 public boolean hasOrganization();
388
389 public boolean hasPrivateLayouts()
390 throws com.liferay.portal.kernel.exception.PortalException;
391
392 public boolean hasPublicLayouts()
393 throws com.liferay.portal.kernel.exception.PortalException;
394
395 public boolean hasReminderQuery();
396
397 public boolean isActive();
398
399 public boolean isEmailAddressComplete();
400
401 public boolean isEmailAddressVerificationComplete();
402
403 public boolean isFemale()
404 throws com.liferay.portal.kernel.exception.PortalException;
405
406 public boolean isMale()
407 throws com.liferay.portal.kernel.exception.PortalException;
408
409 public boolean isPasswordModified();
410
411 public boolean isReminderQueryComplete();
412
413 public boolean isSetupComplete();
414
415 public boolean isTermsOfUseComplete();
416
417 public void setPasswordModified(boolean passwordModified);
418
419 public void setPasswordUnencrypted(java.lang.String passwordUnencrypted);
420 }