public class UserImpl extends UserBaseImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, CONTACTID_COLUMN_BITMASK, CREATEDATE_COLUMN_BITMASK, DATA_SOURCE, EMAILADDRESS_COLUMN_BITMASK, ENTITY_CACHE_ENABLED, EXTERNALREFERENCECODE_COLUMN_BITMASK, FACEBOOKID_COLUMN_BITMASK, FINDER_CACHE_ENABLED, FINDER_CACHE_ENABLED_USERS_GROUPS, FINDER_CACHE_ENABLED_USERS_ORGS, FINDER_CACHE_ENABLED_USERS_ROLES, FINDER_CACHE_ENABLED_USERS_TEAMS, FINDER_CACHE_ENABLED_USERS_USERGROUPS, GOOGLEUSERID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, MAPPING_TABLE_USERS_GROUPS_COLUMNS, MAPPING_TABLE_USERS_GROUPS_NAME, MAPPING_TABLE_USERS_GROUPS_SQL_CREATE, MAPPING_TABLE_USERS_ORGS_COLUMNS, MAPPING_TABLE_USERS_ORGS_NAME, MAPPING_TABLE_USERS_ORGS_SQL_CREATE, MAPPING_TABLE_USERS_ROLES_COLUMNS, MAPPING_TABLE_USERS_ROLES_NAME, MAPPING_TABLE_USERS_ROLES_SQL_CREATE, MAPPING_TABLE_USERS_TEAMS_COLUMNS, MAPPING_TABLE_USERS_TEAMS_NAME, MAPPING_TABLE_USERS_TEAMS_SQL_CREATE, MAPPING_TABLE_USERS_USERGROUPS_COLUMNS, MAPPING_TABLE_USERS_USERGROUPS_NAME, MAPPING_TABLE_USERS_USERGROUPS_SQL_CREATE, MODIFIEDDATE_COLUMN_BITMASK, OPENID_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, PORTRAITID_COLUMN_BITMASK, SCREENNAME_COLUMN_BITMASK, SESSION_FACTORY, STATUS_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, TYPE_COLUMN_BITMASK, USERID_COLUMN_BITMASK, UUID_COLUMN_BITMASK
Constructor and Description |
---|
UserImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.model.Contact |
fetchContact() |
String |
fetchPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
List<com.liferay.portal.kernel.model.Address> |
getAddresses()
Returns the user's addresses.
|
Date |
getBirthday()
Returns the user's birth date.
|
String |
getCompanyMx()
Returns the user's company's mail domain.
|
com.liferay.portal.kernel.model.Contact |
getContact()
Returns the user's associated contact.
|
String |
getDigest(String password)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
String |
getDisplayEmailAddress()
Returns the user's primary email address, or a blank string if the
address is fake.
|
String |
getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
Returns the user's display URL based on the theme display, discounting
the URL of the user's default intranet site home page.
|
String |
getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
boolean privateLayout)
Returns the user's display URL based on the theme display.
|
List<com.liferay.portal.kernel.model.EmailAddress> |
getEmailAddresses()
Returns the user's email addresses.
|
boolean |
getFemale()
Returns
true if the user is female. |
String |
getFullName()
Returns the user's full name.
|
String |
getFullName(boolean usePrefix,
boolean useSuffix)
Returns the user's full name.
|
com.liferay.portal.kernel.model.Group |
getGroup() |
long |
getGroupId() |
long[] |
getGroupIds() |
List<com.liferay.portal.kernel.model.Group> |
getGroups() |
String |
getInitials() |
Locale |
getLocale() |
String |
getLogin() |
boolean |
getMale()
Returns
true if the user is male. |
List<com.liferay.portal.kernel.model.Group> |
getMySiteGroups() |
List<com.liferay.portal.kernel.model.Group> |
getMySiteGroups(int max) |
List<com.liferay.portal.kernel.model.Group> |
getMySiteGroups(String[] classNames,
int max) |
long[] |
getOrganizationIds() |
long[] |
getOrganizationIds(boolean includeAdministrative) |
List<com.liferay.portal.kernel.model.Organization> |
getOrganizations() |
List<com.liferay.portal.kernel.model.Organization> |
getOrganizations(boolean includeAdministrative) |
String |
getOriginalEmailAddress() |
boolean |
getPasswordModified() |
com.liferay.portal.kernel.model.PasswordPolicy |
getPasswordPolicy() |
String |
getPasswordUnencrypted() |
List<com.liferay.portal.kernel.model.Phone> |
getPhones() |
String |
getPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
int |
getPrivateLayoutsPageCount() |
protected String |
getProfileFriendlyURL() |
int |
getPublicLayoutsPageCount() |
Set<String> |
getReminderQueryQuestions() |
long[] |
getRoleIds() |
List<com.liferay.portal.kernel.model.Role> |
getRoles() |
List<com.liferay.portal.kernel.model.Group> |
getSiteGroups() |
List<com.liferay.portal.kernel.model.Group> |
getSiteGroups(boolean includeAdministrative) |
long[] |
getTeamIds() |
List<com.liferay.portal.kernel.model.Team> |
getTeams() |
TimeZone |
getTimeZone() |
Date |
getUnlockDate() |
Date |
getUnlockDate(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) |
long[] |
getUserGroupIds() |
List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups() |
List<com.liferay.portal.kernel.model.Website> |
getWebsites() |
boolean |
hasCompanyMx() |
boolean |
hasCompanyMx(String emailAddress) |
boolean |
hasMySites() |
boolean |
hasOrganization() |
boolean |
hasPrivateLayouts() |
boolean |
hasPublicLayouts() |
boolean |
hasReminderQuery() |
boolean |
isActive() |
boolean |
isDefaultUser()
Deprecated.
As of Cavanaugh (7.4.x), replaced by
isGuestUser() |
boolean |
isEmailAddressComplete() |
boolean |
isEmailAddressVerificationComplete() |
boolean |
isFemale() |
boolean |
isGuestUser() |
boolean |
isMale() |
boolean |
isOnDemandUser() |
boolean |
isPasswordModified() |
boolean |
isPasswordResetRequired() |
boolean |
isReminderQueryComplete() |
boolean |
isServiceAccountUser() |
boolean |
isSetupComplete() |
boolean |
isTermsOfUseComplete() |
void |
setContact(com.liferay.portal.kernel.model.Contact contact) |
void |
setDigest(String digest)
Deprecated.
As of Cavanaugh (7.4.x), with no direct replacement
|
void |
setGroupIds(long[] groupIds) |
void |
setLanguageId(String languageId) |
void |
setOrganizationIds(long[] organizationIds) |
void |
setPasswordModified(boolean passwordModified) |
void |
setPasswordUnencrypted(String passwordUnencrypted) |
void |
setRoleIds(long[] roleIds) |
void |
setTeamIds(long[] teamIds) |
void |
setTimeZoneId(String timeZoneId) |
void |
setUserGroupIds(long[] userGroupIds) |
persist
clone, cloneWithOriginalValues, compareTo, equals, getAgreedToTermsOfUse, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getColumnBitmask, getColumnBitmask, getColumnOriginalValue, getColumnValue, getComments, getCompanyId, getContactId, getCreateDate, getCtCollectionId, getDigest, getEmailAddress, getEmailAddressVerified, getExpandoBridge, getExternalReferenceCode, getFacebookId, getFailedLoginAttempts, getFirstName, getGoogleUserId, getGraceLoginCount, getGreeting, getJobTitle, getLanguageId, getLastFailedLoginDate, getLastLoginDate, getLastLoginIP, getLastName, getLdapServerId, getLockout, getLockoutDate, getLoginDate, getLoginIP, getMiddleName, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getMvccVersion, getOpenId, getOriginalCompanyId, getOriginalContactId, getOriginalCreateDate, getOriginalExternalReferenceCode, getOriginalFacebookId, getOriginalGoogleUserId, getOriginalModifiedDate, getOriginalOpenId, getOriginalPortraitId, getOriginalScreenName, getOriginalStatus, getOriginalType, getOriginalUserId, getOriginalUuid, getPassword, getPasswordEncrypted, getPasswordModifiedDate, getPasswordReset, getPortraitId, getPrimaryKey, getPrimaryKeyObj, getReminderQueryAnswer, getReminderQueryQuestion, getScreenName, getStagedModelType, getStatus, getTimeZoneId, getType, getUserId, getUserUuid, getUuid, hashCode, hasSetModifiedDate, isAgreedToTermsOfUse, isEmailAddressVerified, isEntityCacheEnabled, isFinderCacheEnabled, isLockout, isPasswordEncrypted, isPasswordReset, resetOriginalValues, setAgreedToTermsOfUse, setComments, setCompanyId, setContactId, setCreateDate, setCtCollectionId, setEmailAddress, setEmailAddressVerified, setExpandoBridgeAttributes, setExternalReferenceCode, setFacebookId, setFailedLoginAttempts, setFirstName, setGoogleUserId, setGraceLoginCount, setGreeting, setJobTitle, setLastFailedLoginDate, setLastLoginDate, setLastLoginIP, setLastName, setLdapServerId, setLockout, setLockoutDate, setLoginDate, setLoginIP, setMiddleName, setModelAttributes, setModifiedDate, setMvccVersion, setOpenId, setPassword, setPasswordEncrypted, setPasswordModifiedDate, setPasswordReset, setPortraitId, setPrimaryKey, setPrimaryKeyObj, setReminderQueryAnswer, setReminderQueryQuestion, setScreenName, setStatus, setType, setUserId, setUserUuid, setUuid, toCacheModel, toEscapedModel, toString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
cloneWithOriginalValues, getAgreedToTermsOfUse, getComments, getCompanyId, getContactId, getCreateDate, getCtCollectionId, getDigest, getEmailAddress, getEmailAddressVerified, getExternalReferenceCode, getFacebookId, getFailedLoginAttempts, getFirstName, getGoogleUserId, getGraceLoginCount, getGreeting, getJobTitle, getLanguageId, getLastFailedLoginDate, getLastLoginDate, getLastLoginIP, getLastName, getLdapServerId, getLockout, getLockoutDate, getLoginDate, getLoginIP, getMiddleName, getModifiedDate, getMvccVersion, getOpenId, getPassword, getPasswordEncrypted, getPasswordModifiedDate, getPasswordReset, getPortraitId, getPrimaryKey, getReminderQueryAnswer, getReminderQueryQuestion, getScreenName, getStatus, getTimeZoneId, getType, getUserId, getUserUuid, getUuid, isAgreedToTermsOfUse, isEmailAddressVerified, isLockout, isPasswordEncrypted, isPasswordReset, setAgreedToTermsOfUse, setComments, setCompanyId, setContactId, setCreateDate, setCtCollectionId, setEmailAddress, setEmailAddressVerified, setExternalReferenceCode, setFacebookId, setFailedLoginAttempts, setFirstName, setGoogleUserId, setGraceLoginCount, setGreeting, setJobTitle, setLastFailedLoginDate, setLastLoginDate, setLastLoginIP, setLastName, setLdapServerId, setLockout, setLockoutDate, setLoginDate, setLoginIP, setMiddleName, setModifiedDate, setMvccVersion, setOpenId, setPassword, setPasswordEncrypted, setPasswordModifiedDate, setPasswordReset, setPortraitId, setPrimaryKey, setReminderQueryAnswer, setReminderQueryQuestion, setScreenName, setStatus, setType, setUserId, setUserUuid, setUuid, toXmlString
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
public com.liferay.portal.kernel.model.Contact fetchContact()
public String fetchPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public List<com.liferay.portal.kernel.model.Address> getAddresses()
public Date getBirthday() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getCompanyMx() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Contact getContact() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
Contact
@Deprecated public String getDigest(String password)
password
- a password to incorporate with the digestpublic String getDisplayEmailAddress()
public String getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
The logic for the display URL to return is as follows:
themeDisplay
- the theme displaycom.liferay.portal.kernel.exception.PortalException
public String getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
The logic for the display URL to return is as follows:
privateLayout
is true
, return the URL
of the user's default intranet site home page.
themeDisplay
- the theme displayprivateLayout
- whether to use the URL of the user's default
intranet (versus extranet) site home page, if no friendly URL is
available for the user's profilecom.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.EmailAddress> getEmailAddresses()
public boolean getFemale() throws com.liferay.portal.kernel.exception.PortalException
true
if the user is female.true
if the user is female; false
otherwisecom.liferay.portal.kernel.exception.PortalException
@AutoEscape public String getFullName()
@AutoEscape public String getFullName(boolean usePrefix, boolean useSuffix)
public com.liferay.portal.kernel.model.Group getGroup()
public long getGroupId()
public long[] getGroupIds()
public List<com.liferay.portal.kernel.model.Group> getGroups()
public String getInitials()
public Locale getLocale()
public String getLogin() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean getMale() throws com.liferay.portal.kernel.exception.PortalException
true
if the user is male.true
if the user is male; false
otherwisecom.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Group> getMySiteGroups() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Group> getMySiteGroups(int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Group> getMySiteGroups(String[] classNames, int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long[] getOrganizationIds() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long[] getOrganizationIds(boolean includeAdministrative) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Organization> getOrganizations() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Organization> getOrganizations(boolean includeAdministrative) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getOriginalEmailAddress()
getOriginalEmailAddress
in interface com.liferay.portal.kernel.model.User
getOriginalEmailAddress
in class UserModelImpl
public boolean getPasswordModified()
public com.liferay.portal.kernel.model.PasswordPolicy getPasswordPolicy() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getPasswordUnencrypted()
public List<com.liferay.portal.kernel.model.Phone> getPhones()
public String getPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public int getPrivateLayoutsPageCount() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public int getPublicLayoutsPageCount() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public Set<String> getReminderQueryQuestions() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long[] getRoleIds()
public List<com.liferay.portal.kernel.model.Role> getRoles()
public List<com.liferay.portal.kernel.model.Group> getSiteGroups() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Group> getSiteGroups(boolean includeAdministrative) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long[] getTeamIds()
public List<com.liferay.portal.kernel.model.Team> getTeams()
public TimeZone getTimeZone()
public Date getUnlockDate() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public Date getUnlockDate(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
public long[] getUserGroupIds()
public List<com.liferay.portal.kernel.model.UserGroup> getUserGroups()
public List<com.liferay.portal.kernel.model.Website> getWebsites()
public boolean hasCompanyMx() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasCompanyMx(String emailAddress) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasMySites() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasOrganization()
public boolean hasPrivateLayouts() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasPublicLayouts() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasReminderQuery()
public boolean isActive()
@Deprecated public boolean isDefaultUser()
isGuestUser()
public boolean isEmailAddressComplete()
public boolean isEmailAddressVerificationComplete()
public boolean isFemale() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isGuestUser()
public boolean isMale() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isOnDemandUser()
public boolean isPasswordModified()
public boolean isPasswordResetRequired()
public boolean isReminderQueryComplete()
public boolean isServiceAccountUser()
public boolean isSetupComplete()
public boolean isTermsOfUseComplete()
public void setContact(com.liferay.portal.kernel.model.Contact contact)
@Deprecated public void setDigest(String digest)
setDigest
in interface com.liferay.portal.kernel.model.UserModel
setDigest
in class UserModelImpl
public void setGroupIds(long[] groupIds)
public void setLanguageId(String languageId)
setLanguageId
in interface com.liferay.portal.kernel.model.UserModel
setLanguageId
in class UserModelImpl
public void setOrganizationIds(long[] organizationIds)
public void setPasswordModified(boolean passwordModified)
public void setPasswordUnencrypted(String passwordUnencrypted)
public void setRoleIds(long[] roleIds)
public void setTeamIds(long[] teamIds)
public void setTimeZoneId(String timeZoneId)
setTimeZoneId
in interface com.liferay.portal.kernel.model.UserModel
setTimeZoneId
in class UserModelImpl
public void setUserGroupIds(long[] userGroupIds)
protected String getProfileFriendlyURL()