public class UserImpl extends UserBaseImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, CONTACTID_COLUMN_BITMASK, CREATEDATE_COLUMN_BITMASK, DATA_SOURCE, DEFAULTUSER_COLUMN_BITMASK, 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, USERID_COLUMN_BITMASK, UUID_COLUMN_BITMASK
Constructor and Description |
---|
UserImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addRemotePreference(com.liferay.portal.kernel.util.RemotePreference remotePreference) |
com.liferay.portal.kernel.model.Contact |
fetchContact() |
java.lang.String |
fetchPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
java.util.List<com.liferay.portal.kernel.model.Address> |
getAddresses()
Returns the user's addresses.
|
java.util.Date |
getBirthday()
Returns the user's birth date.
|
java.lang.String |
getCompanyMx()
Returns the user's company's mail domain.
|
com.liferay.portal.kernel.model.Contact |
getContact()
Returns the user's associated contact.
|
java.lang.String |
getDigest()
Returns the user's digest.
|
java.lang.String |
getDigest(java.lang.String password)
Returns a digest for the user, incorporating the password.
|
java.lang.String |
getDisplayEmailAddress()
Returns the user's primary email address, or a blank string if the
address is fake.
|
java.lang.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.
|
java.lang.String |
getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
boolean privateLayout)
Returns the user's display URL based on the theme display.
|
java.util.List<com.liferay.portal.kernel.model.EmailAddress> |
getEmailAddresses()
Returns the user's email addresses.
|
boolean |
getFemale()
Returns
true if the user is female. |
java.lang.String |
getFullName()
Returns the user's full name.
|
java.lang.String |
getFullName(boolean usePrefix,
boolean useSuffix)
Returns the user's full name.
|
com.liferay.portal.kernel.model.Group |
getGroup() |
long |
getGroupId() |
long[] |
getGroupIds() |
java.util.List<com.liferay.portal.kernel.model.Group> |
getGroups() |
java.lang.String |
getInitials() |
java.util.Locale |
getLocale() |
java.lang.String |
getLogin() |
boolean |
getMale()
Returns
true if the user is male. |
java.util.List<com.liferay.portal.kernel.model.Group> |
getMySiteGroups() |
java.util.List<com.liferay.portal.kernel.model.Group> |
getMySiteGroups(int max) |
java.util.List<com.liferay.portal.kernel.model.Group> |
getMySiteGroups(java.lang.String[] classNames,
int max) |
long[] |
getOrganizationIds() |
long[] |
getOrganizationIds(boolean includeAdministrative) |
java.util.List<com.liferay.portal.kernel.model.Organization> |
getOrganizations() |
java.util.List<com.liferay.portal.kernel.model.Organization> |
getOrganizations(boolean includeAdministrative) |
java.lang.String |
getOriginalEmailAddress() |
boolean |
getPasswordModified() |
com.liferay.portal.kernel.model.PasswordPolicy |
getPasswordPolicy() |
java.lang.String |
getPasswordUnencrypted() |
java.util.List<com.liferay.portal.kernel.model.Phone> |
getPhones() |
java.lang.String |
getPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
int |
getPrivateLayoutsPageCount() |
protected java.lang.String |
getProfileFriendlyURL() |
int |
getPublicLayoutsPageCount() |
java.util.Set<java.lang.String> |
getReminderQueryQuestions() |
com.liferay.portal.kernel.util.RemotePreference |
getRemotePreference(java.lang.String name) |
java.lang.Iterable<com.liferay.portal.kernel.util.RemotePreference> |
getRemotePreferences() |
long[] |
getRoleIds() |
java.util.List<com.liferay.portal.kernel.model.Role> |
getRoles() |
java.util.List<com.liferay.portal.kernel.model.Group> |
getSiteGroups() |
java.util.List<com.liferay.portal.kernel.model.Group> |
getSiteGroups(boolean includeAdministrative) |
long[] |
getTeamIds() |
java.util.List<com.liferay.portal.kernel.model.Team> |
getTeams() |
java.util.TimeZone |
getTimeZone() |
java.util.Date |
getUnlockDate() |
java.util.Date |
getUnlockDate(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy) |
long[] |
getUserGroupIds() |
java.util.List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups() |
java.util.List<com.liferay.portal.kernel.model.Website> |
getWebsites() |
boolean |
hasCompanyMx() |
boolean |
hasCompanyMx(java.lang.String emailAddress) |
boolean |
hasMySites() |
boolean |
hasOrganization() |
boolean |
hasPrivateLayouts() |
boolean |
hasPublicLayouts() |
boolean |
hasReminderQuery() |
boolean |
isActive() |
boolean |
isEmailAddressComplete() |
boolean |
isEmailAddressVerificationComplete() |
boolean |
isFemale() |
boolean |
isMale() |
boolean |
isPasswordModified() |
boolean |
isReminderQueryComplete() |
boolean |
isSetupComplete() |
boolean |
isTermsOfUseComplete() |
void |
setLanguageId(java.lang.String languageId) |
void |
setPasswordModified(boolean passwordModified) |
void |
setPasswordUnencrypted(java.lang.String passwordUnencrypted) |
void |
setTimeZoneId(java.lang.String timeZoneId) |
persist
clone, compareTo, equals, getAgreedToTermsOfUse, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getColumnBitmask, getColumnBitmask, getColumnOriginalValue, getColumnValue, getComments, getCompanyId, getContactId, getCreateDate, getCtCollectionId, getDefaultUser, 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, getOriginalDefaultUser, getOriginalExternalReferenceCode, getOriginalFacebookId, getOriginalGoogleUserId, getOriginalModifiedDate, getOriginalOpenId, getOriginalPortraitId, getOriginalScreenName, getOriginalStatus, getOriginalUserId, getOriginalUuid, getPassword, getPasswordEncrypted, getPasswordModifiedDate, getPasswordReset, getPortraitId, getPrimaryKey, getPrimaryKeyObj, getReminderQueryAnswer, getReminderQueryQuestion, getScreenName, getStagedModelType, getStatus, getTimeZoneId, getUserId, getUserUuid, getUuid, hashCode, hasSetModifiedDate, isAgreedToTermsOfUse, isDefaultUser, isEmailAddressVerified, isEntityCacheEnabled, isFinderCacheEnabled, isLockout, isPasswordEncrypted, isPasswordReset, resetOriginalValues, setAgreedToTermsOfUse, setComments, setCompanyId, setContactId, setCreateDate, setCtCollectionId, setDefaultUser, setDigest, 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, setUserId, setUserUuid, setUuid, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
finalize, getClass, notify, notifyAll, wait, wait, wait
getAgreedToTermsOfUse, getComments, getCompanyId, getContactId, getCreateDate, getCtCollectionId, getDefaultUser, 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, getUserId, getUserUuid, getUuid, isAgreedToTermsOfUse, isDefaultUser, isEmailAddressVerified, isLockout, isPasswordEncrypted, isPasswordReset, setAgreedToTermsOfUse, setComments, setCompanyId, setContactId, setCreateDate, setCtCollectionId, setDefaultUser, setDigest, 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, setUserId, setUserUuid, setUuid
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public void addRemotePreference(com.liferay.portal.kernel.util.RemotePreference remotePreference)
public com.liferay.portal.kernel.model.Contact fetchContact()
public java.lang.String fetchPortraitURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public java.util.List<com.liferay.portal.kernel.model.Address> getAddresses()
public java.util.Date getBirthday() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.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
public java.lang.String getDigest()
getDigest
in interface com.liferay.portal.kernel.model.UserModel
getDigest
in class UserModelImpl
public java.lang.String getDigest(java.lang.String password)
password
- a password to incorporate with the digestpublic java.lang.String getDisplayEmailAddress()
public java.lang.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 java.lang.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 java.util.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 java.lang.String getFullName()
@AutoEscape public java.lang.String getFullName(boolean usePrefix, boolean useSuffix)
public com.liferay.portal.kernel.model.Group getGroup()
public long getGroupId()
public long[] getGroupIds()
public java.util.List<com.liferay.portal.kernel.model.Group> getGroups()
public java.lang.String getInitials()
public java.util.Locale getLocale()
public java.lang.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 java.util.List<com.liferay.portal.kernel.model.Group> getMySiteGroups() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.model.Group> getMySiteGroups(int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.model.Group> getMySiteGroups(java.lang.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 java.util.List<com.liferay.portal.kernel.model.Organization> getOrganizations() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.model.Organization> getOrganizations(boolean includeAdministrative) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.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 java.lang.String getPasswordUnencrypted()
public java.util.List<com.liferay.portal.kernel.model.Phone> getPhones()
public java.lang.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 java.util.Set<java.lang.String> getReminderQueryQuestions() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.RemotePreference getRemotePreference(java.lang.String name)
public java.lang.Iterable<com.liferay.portal.kernel.util.RemotePreference> getRemotePreferences()
public long[] getRoleIds()
public java.util.List<com.liferay.portal.kernel.model.Role> getRoles()
public java.util.List<com.liferay.portal.kernel.model.Group> getSiteGroups() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.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 java.util.List<com.liferay.portal.kernel.model.Team> getTeams()
public java.util.TimeZone getTimeZone()
public java.util.Date getUnlockDate() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.Date getUnlockDate(com.liferay.portal.kernel.model.PasswordPolicy passwordPolicy)
public long[] getUserGroupIds()
public java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserGroups()
public java.util.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(java.lang.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()
public boolean isEmailAddressComplete()
public boolean isEmailAddressVerificationComplete()
public boolean isFemale() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isMale() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isPasswordModified()
public boolean isReminderQueryComplete()
public boolean isSetupComplete()
public boolean isTermsOfUseComplete()
public void setLanguageId(java.lang.String languageId)
setLanguageId
in interface com.liferay.portal.kernel.model.UserModel
setLanguageId
in class UserModelImpl
public void setPasswordModified(boolean passwordModified)
public void setPasswordUnencrypted(java.lang.String passwordUnencrypted)
public void setTimeZoneId(java.lang.String timeZoneId)
setTimeZoneId
in interface com.liferay.portal.kernel.model.UserModel
setTimeZoneId
in class UserModelImpl
protected java.lang.String getProfileFriendlyURL()