com.liferay.portal.model.impl
Class UserImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.User>
      extended by com.liferay.portal.model.impl.UserModelImpl
          extended by com.liferay.portal.model.impl.UserImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel<com.liferay.portal.model.User>, com.liferay.portal.model.User, com.liferay.portal.model.UserModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.User>

public class UserImpl
extends UserModelImpl
implements com.liferay.portal.model.User

View Source

Author:
Brian Wing Shun Chan, Jorge Ferrer, Wesley Gong
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.liferay.portal.model.impl.UserModelImpl
DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FINDER_CACHE_ENABLED_USERS_GROUPS, FINDER_CACHE_ENABLED_USERS_ORGS, FINDER_CACHE_ENABLED_USERS_PERMISSIONS, FINDER_CACHE_ENABLED_USERS_ROLES, FINDER_CACHE_ENABLED_USERS_TEAMS, FINDER_CACHE_ENABLED_USERS_USERGROUPS, 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_PERMISSIONS_COLUMNS, MAPPING_TABLE_USERS_PERMISSIONS_NAME, MAPPING_TABLE_USERS_PERMISSIONS_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, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
Constructor Summary
UserImpl()
           
 
Method Summary
 java.util.Date getBirthday()
           
 java.lang.String getCompanyMx()
           
 com.liferay.portal.model.Contact getContact()
           
 java.lang.String getDisplayEmailAddress()
           
 java.lang.String getDisplayURL(java.lang.String portalURL, java.lang.String mainPath)
           
 java.lang.String getDisplayURL(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 boolean getFemale()
           
 java.lang.String getFullName()
           
 com.liferay.portal.model.Group getGroup()
           
 long[] getGroupIds()
           
 java.util.List<com.liferay.portal.model.Group> getGroups()
           
 java.util.Locale getLocale()
           
 java.lang.String getLogin()
           
 boolean getMale()
           
 java.util.List<com.liferay.portal.model.Group> getMyPlaces()
           
 java.util.List<com.liferay.portal.model.Group> getMyPlaces(int max)
           
 long[] getOrganizationIds()
           
 java.util.List<com.liferay.portal.model.Organization> getOrganizations()
           
 boolean getPasswordModified()
           
 com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
           
 java.lang.String getPasswordUnencrypted()
           
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 java.util.Set<java.lang.String> getReminderQueryQuestions()
           
 long[] getRoleIds()
           
 java.util.List<com.liferay.portal.model.Role> getRoles()
           
 long[] getTeamIds()
           
 java.util.List<com.liferay.portal.model.Team> getTeams()
           
 java.util.TimeZone getTimeZone()
           
 long[] getUserGroupIds()
           
 java.util.List<com.liferay.portal.model.UserGroup> getUserGroups()
           
 boolean hasCompanyMx()
           
 boolean hasCompanyMx(java.lang.String emailAddress)
           
 boolean hasMyPlaces()
           
 boolean hasOrganization()
           
 boolean hasPrivateLayouts()
           
 boolean hasPublicLayouts()
           
 boolean hasReminderQuery()
           
 boolean isFemale()
           
 boolean isMale()
           
 boolean isPasswordModified()
           
 void setLanguageId(java.lang.String languageId)
           
 void setPasswordModified(boolean passwordModified)
           
 void setPasswordUnencrypted(java.lang.String passwordUnencrypted)
           
 void setTimeZoneId(java.lang.String timeZoneId)
           
 
Methods inherited from class com.liferay.portal.model.impl.UserModelImpl
clone, compareTo, equals, getActive, getAgreedToTermsOfUse, getComments, getCompanyId, getContactId, getCreateDate, getDefaultUser, getEmailAddress, getExpandoBridge, getFailedLoginAttempts, getFirstName, getGraceLoginCount, getGreeting, getJobTitle, getLanguageId, getLastFailedLoginDate, getLastLoginDate, getLastLoginIP, getLastName, getLockout, getLockoutDate, getLoginDate, getLoginIP, getMiddleName, getModifiedDate, getOpenId, getOriginalCompanyId, getOriginalContactId, getOriginalDefaultUser, getOriginalEmailAddress, getOriginalOpenId, getOriginalPortraitId, getOriginalScreenName, getOriginalUserId, getPassword, getPasswordEncrypted, getPasswordModifiedDate, getPasswordReset, getPortraitId, getPrimaryKey, getPrimaryKeyObj, getReminderQueryAnswer, getReminderQueryQuestion, getScreenName, getSocialContributionEquity, getSocialParticipationEquity, getSocialPersonalEquity, getTimeZoneId, getUserId, getUserUuid, getUuid, hashCode, isActive, isAgreedToTermsOfUse, isDefaultUser, isLockout, isPasswordEncrypted, isPasswordReset, setActive, setAgreedToTermsOfUse, setComments, setCompanyId, setContactId, setCreateDate, setDefaultUser, setEmailAddress, setExpandoBridgeAttributes, setFailedLoginAttempts, setFirstName, setGraceLoginCount, setGreeting, setJobTitle, setLastFailedLoginDate, setLastLoginDate, setLastLoginIP, setLastName, setLockout, setLockoutDate, setLoginDate, setLoginIP, setMiddleName, setModifiedDate, setOpenId, setPassword, setPasswordEncrypted, setPasswordModifiedDate, setPasswordReset, setPortraitId, setPrimaryKey, setReminderQueryAnswer, setReminderQueryQuestion, setScreenName, setSocialContributionEquity, setSocialParticipationEquity, setSocialPersonalEquity, setUserId, setUserUuid, setUuid, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.UserModel
clone, compareTo, getActive, getAgreedToTermsOfUse, getComments, getCompanyId, getContactId, getCreateDate, getDefaultUser, getEmailAddress, getExpandoBridge, getFailedLoginAttempts, getFirstName, getGraceLoginCount, getGreeting, getJobTitle, getLanguageId, getLastFailedLoginDate, getLastLoginDate, getLastLoginIP, getLastName, getLockout, getLockoutDate, getLoginDate, getLoginIP, getMiddleName, getModifiedDate, getOpenId, getPassword, getPasswordEncrypted, getPasswordModifiedDate, getPasswordReset, getPortraitId, getPrimaryKey, getPrimaryKeyObj, getReminderQueryAnswer, getReminderQueryQuestion, getScreenName, getSocialContributionEquity, getSocialParticipationEquity, getSocialPersonalEquity, getTimeZoneId, getUserId, getUserUuid, getUuid, hashCode, isActive, isAgreedToTermsOfUse, isCachedModel, isDefaultUser, isEscapedModel, isLockout, isNew, isPasswordEncrypted, isPasswordReset, setActive, setAgreedToTermsOfUse, setCachedModel, setComments, setCompanyId, setContactId, setCreateDate, setDefaultUser, setEmailAddress, setEscapedModel, setExpandoBridgeAttributes, setFailedLoginAttempts, setFirstName, setGraceLoginCount, setGreeting, setJobTitle, setLastFailedLoginDate, setLastLoginDate, setLastLoginIP, setLastName, setLockout, setLockoutDate, setLoginDate, setLoginIP, setMiddleName, setModifiedDate, setNew, setOpenId, setPassword, setPasswordEncrypted, setPasswordModifiedDate, setPasswordReset, setPortraitId, setPrimaryKey, setReminderQueryAnswer, setReminderQueryQuestion, setScreenName, setSocialContributionEquity, setSocialParticipationEquity, setSocialPersonalEquity, setUserId, setUserUuid, setUuid, toEscapedModel, toString, toXmlString
 

Constructor Detail

UserImpl

public UserImpl()
Method Detail

getBirthday

public java.util.Date getBirthday()
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Specified by:
getBirthday in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getCompanyMx

public java.lang.String getCompanyMx()
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Specified by:
getCompanyMx in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getContact

public com.liferay.portal.model.Contact getContact()
                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                   com.liferay.portal.kernel.exception.SystemException
Specified by:
getContact in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getDisplayEmailAddress

public java.lang.String getDisplayEmailAddress()
Specified by:
getDisplayEmailAddress in interface com.liferay.portal.model.User

getDisplayURL

public java.lang.String getDisplayURL(com.liferay.portal.theme.ThemeDisplay themeDisplay)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Specified by:
getDisplayURL in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getDisplayURL

public java.lang.String getDisplayURL(java.lang.String portalURL,
                                      java.lang.String mainPath)
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Specified by:
getDisplayURL in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFemale

public boolean getFemale()
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Specified by:
getFemale in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface com.liferay.portal.model.User

getGroup

public com.liferay.portal.model.Group getGroup()
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Specified by:
getGroup in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupIds

public long[] getGroupIds()
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Specified by:
getGroupIds in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups()
                                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                                com.liferay.portal.kernel.exception.SystemException
Specified by:
getGroups in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface com.liferay.portal.model.User

getLogin

public java.lang.String getLogin()
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
getLogin in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMale

public boolean getMale()
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Specified by:
getMale in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMyPlaces

public java.util.List<com.liferay.portal.model.Group> getMyPlaces()
                                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Specified by:
getMyPlaces in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getMyPlaces

public java.util.List<com.liferay.portal.model.Group> getMyPlaces(int max)
                                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Specified by:
getMyPlaces in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getOrganizationIds

public long[] getOrganizationIds()
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
getOrganizationIds in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getOrganizations

public java.util.List<com.liferay.portal.model.Organization> getOrganizations()
                                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Specified by:
getOrganizations in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getPasswordModified

public boolean getPasswordModified()
Specified by:
getPasswordModified in interface com.liferay.portal.model.User

getPasswordPolicy

public com.liferay.portal.model.PasswordPolicy getPasswordPolicy()
                                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
getPasswordPolicy in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getPasswordUnencrypted

public java.lang.String getPasswordUnencrypted()
Specified by:
getPasswordUnencrypted in interface com.liferay.portal.model.User

getPrivateLayoutsPageCount

public int getPrivateLayoutsPageCount()
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Specified by:
getPrivateLayoutsPageCount in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getPublicLayoutsPageCount

public int getPublicLayoutsPageCount()
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Specified by:
getPublicLayoutsPageCount in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getReminderQueryQuestions

public java.util.Set<java.lang.String> getReminderQueryQuestions()
                                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
getReminderQueryQuestions in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getRoleIds

public long[] getRoleIds()
                  throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getRoleIds in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

getRoles

public java.util.List<com.liferay.portal.model.Role> getRoles()
                                                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getRoles in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

getTeamIds

public long[] getTeamIds()
                  throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getTeamIds in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

getTeams

public java.util.List<com.liferay.portal.model.Team> getTeams()
                                                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getTeams in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

getUserGroupIds

public long[] getUserGroupIds()
                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserGroupIds in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

getUserGroups

public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups()
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserGroups in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

getTimeZone

public java.util.TimeZone getTimeZone()
Specified by:
getTimeZone in interface com.liferay.portal.model.User

hasCompanyMx

public boolean hasCompanyMx()
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Specified by:
hasCompanyMx in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasCompanyMx

public boolean hasCompanyMx(java.lang.String emailAddress)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Specified by:
hasCompanyMx in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasMyPlaces

public boolean hasMyPlaces()
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
hasMyPlaces in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.SystemException

hasOrganization

public boolean hasOrganization()
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Specified by:
hasOrganization in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasPrivateLayouts

public boolean hasPrivateLayouts()
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
hasPrivateLayouts in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasPublicLayouts

public boolean hasPublicLayouts()
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Specified by:
hasPublicLayouts in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasReminderQuery

public boolean hasReminderQuery()
Specified by:
hasReminderQuery in interface com.liferay.portal.model.User

isFemale

public boolean isFemale()
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Specified by:
isFemale in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

isMale

public boolean isMale()
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Specified by:
isMale in interface com.liferay.portal.model.User
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

isPasswordModified

public boolean isPasswordModified()
Specified by:
isPasswordModified in interface com.liferay.portal.model.User

setLanguageId

public void setLanguageId(java.lang.String languageId)
Specified by:
setLanguageId in interface com.liferay.portal.model.User
Specified by:
setLanguageId in interface com.liferay.portal.model.UserModel
Overrides:
setLanguageId in class UserModelImpl

setPasswordModified

public void setPasswordModified(boolean passwordModified)
Specified by:
setPasswordModified in interface com.liferay.portal.model.User

setPasswordUnencrypted

public void setPasswordUnencrypted(java.lang.String passwordUnencrypted)
Specified by:
setPasswordUnencrypted in interface com.liferay.portal.model.User

setTimeZoneId

public void setTimeZoneId(java.lang.String timeZoneId)
Specified by:
setTimeZoneId in interface com.liferay.portal.model.User
Specified by:
setTimeZoneId in interface com.liferay.portal.model.UserModel
Overrides:
setTimeZoneId in class UserModelImpl