Liferay 6.0.3

com.liferay.portal.model.impl
Class UserModelImpl

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

public class UserModelImpl
extends BaseModelImpl<User>
implements UserModel

This interface is a model that represents the User_ table in the database.

See Also:
UserImpl, User, UserModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED_USERS_GROUPS
           
static boolean FINDER_CACHE_ENABLED_USERS_ORGS
           
static boolean FINDER_CACHE_ENABLED_USERS_PERMISSIONS
           
static boolean FINDER_CACHE_ENABLED_USERS_ROLES
           
static boolean FINDER_CACHE_ENABLED_USERS_TEAMS
           
static boolean FINDER_CACHE_ENABLED_USERS_USERGROUPS
           
static long LOCK_EXPIRATION_TIME
           
static Object[][] MAPPING_TABLE_USERS_GROUPS_COLUMNS
           
static String MAPPING_TABLE_USERS_GROUPS_NAME
           
static String MAPPING_TABLE_USERS_GROUPS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_ORGS_COLUMNS
           
static String MAPPING_TABLE_USERS_ORGS_NAME
           
static String MAPPING_TABLE_USERS_ORGS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_PERMISSIONS_COLUMNS
           
static String MAPPING_TABLE_USERS_PERMISSIONS_NAME
           
static String MAPPING_TABLE_USERS_PERMISSIONS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS
           
static String MAPPING_TABLE_USERS_ROLES_NAME
           
static String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_TEAMS_COLUMNS
           
static String MAPPING_TABLE_USERS_TEAMS_NAME
           
static String MAPPING_TABLE_USERS_TEAMS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_USERGROUPS_COLUMNS
           
static String MAPPING_TABLE_USERS_USERGROUPS_NAME
           
static String MAPPING_TABLE_USERS_USERGROUPS_SQL_CREATE
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
UserModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(User user)
           
 boolean equals(Object obj)
           
 boolean getActive()
           
 boolean getAgreedToTermsOfUse()
           
 String getComments()
           
 long getCompanyId()
           
 long getContactId()
           
 Date getCreateDate()
           
 boolean getDefaultUser()
           
 String getEmailAddress()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getFacebookId()
           
 int getFailedLoginAttempts()
           
 String getFirstName()
           
 int getGraceLoginCount()
           
 String getGreeting()
           
 String getJobTitle()
           
 String getLanguageId()
           
 Date getLastFailedLoginDate()
           
 Date getLastLoginDate()
           
 String getLastLoginIP()
           
 String getLastName()
           
 boolean getLockout()
           
 Date getLockoutDate()
           
 Date getLoginDate()
           
 String getLoginIP()
           
 String getMiddleName()
           
 Date getModifiedDate()
           
 String getOpenId()
           
 long getOriginalCompanyId()
           
 long getOriginalContactId()
           
 boolean getOriginalDefaultUser()
           
 String getOriginalEmailAddress()
           
 long getOriginalFacebookId()
           
 String getOriginalOpenId()
           
 long getOriginalPortraitId()
           
 String getOriginalScreenName()
           
 long getOriginalUserId()
           
 String getPassword()
           
 boolean getPasswordEncrypted()
           
 Date getPasswordModifiedDate()
           
 boolean getPasswordReset()
           
 long getPortraitId()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 String getReminderQueryAnswer()
           
 String getReminderQueryQuestion()
           
 String getScreenName()
           
 String getTimeZoneId()
           
 long getUserId()
           
 String getUserUuid()
           
 String getUuid()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isAgreedToTermsOfUse()
           
 boolean isDefaultUser()
           
 boolean isLockout()
           
 boolean isPasswordEncrypted()
           
 boolean isPasswordReset()
           
 void setActive(boolean active)
           
 void setAgreedToTermsOfUse(boolean agreedToTermsOfUse)
           
 void setComments(String comments)
           
 void setCompanyId(long companyId)
           
 void setContactId(long contactId)
           
 void setCreateDate(Date createDate)
           
 void setDefaultUser(boolean defaultUser)
           
 void setEmailAddress(String emailAddress)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFacebookId(long facebookId)
           
 void setFailedLoginAttempts(int failedLoginAttempts)
           
 void setFirstName(String firstName)
           
 void setGraceLoginCount(int graceLoginCount)
           
 void setGreeting(String greeting)
           
 void setJobTitle(String jobTitle)
           
 void setLanguageId(String languageId)
           
 void setLastFailedLoginDate(Date lastFailedLoginDate)
           
 void setLastLoginDate(Date lastLoginDate)
           
 void setLastLoginIP(String lastLoginIP)
           
 void setLastName(String lastName)
           
 void setLockout(boolean lockout)
           
 void setLockoutDate(Date lockoutDate)
           
 void setLoginDate(Date loginDate)
           
 void setLoginIP(String loginIP)
           
 void setMiddleName(String middleName)
           
 void setModifiedDate(Date modifiedDate)
           
 void setOpenId(String openId)
           
 void setPassword(String password)
           
 void setPasswordEncrypted(boolean passwordEncrypted)
           
 void setPasswordModifiedDate(Date passwordModifiedDate)
           
 void setPasswordReset(boolean passwordReset)
           
 void setPortraitId(long portraitId)
           
 void setPrimaryKey(long pk)
           
 void setReminderQueryAnswer(String reminderQueryAnswer)
           
 void setReminderQueryQuestion(String reminderQueryQuestion)
           
 void setScreenName(String screenName)
           
 void setTimeZoneId(String timeZoneId)
           
 void setUserId(long userId)
           
 void setUserUuid(String userUuid)
           
 void setUuid(String uuid)
           
 User toEscapedModel()
           
static User toModel(UserSoap soapModel)
           
static List<User> toModels(UserSoap[] soapModels)
           
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
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, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.UserModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

MAPPING_TABLE_USERS_GROUPS_NAME

public static final String MAPPING_TABLE_USERS_GROUPS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_GROUPS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_GROUPS_COLUMNS

MAPPING_TABLE_USERS_GROUPS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_GROUPS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_GROUPS

public static final boolean FINDER_CACHE_ENABLED_USERS_GROUPS

MAPPING_TABLE_USERS_ORGS_NAME

public static final String MAPPING_TABLE_USERS_ORGS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_ORGS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_ORGS_COLUMNS

MAPPING_TABLE_USERS_ORGS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_ORGS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_ORGS

public static final boolean FINDER_CACHE_ENABLED_USERS_ORGS

MAPPING_TABLE_USERS_PERMISSIONS_NAME

public static final String MAPPING_TABLE_USERS_PERMISSIONS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_PERMISSIONS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_PERMISSIONS_COLUMNS

MAPPING_TABLE_USERS_PERMISSIONS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_PERMISSIONS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_PERMISSIONS

public static final boolean FINDER_CACHE_ENABLED_USERS_PERMISSIONS

MAPPING_TABLE_USERS_ROLES_NAME

public static final String MAPPING_TABLE_USERS_ROLES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_ROLES_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_ROLES_COLUMNS

MAPPING_TABLE_USERS_ROLES_SQL_CREATE

public static final String MAPPING_TABLE_USERS_ROLES_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_ROLES

public static final boolean FINDER_CACHE_ENABLED_USERS_ROLES

MAPPING_TABLE_USERS_TEAMS_NAME

public static final String MAPPING_TABLE_USERS_TEAMS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_TEAMS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_TEAMS_COLUMNS

MAPPING_TABLE_USERS_TEAMS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_TEAMS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_TEAMS

public static final boolean FINDER_CACHE_ENABLED_USERS_TEAMS

MAPPING_TABLE_USERS_USERGROUPS_NAME

public static final String MAPPING_TABLE_USERS_USERGROUPS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_USERGROUPS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_USERGROUPS_COLUMNS

MAPPING_TABLE_USERS_USERGROUPS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_USERGROUPS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_USERGROUPS

public static final boolean FINDER_CACHE_ENABLED_USERS_USERGROUPS

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

UserModelImpl

public UserModelImpl()
Method Detail

toModel

public static User toModel(UserSoap soapModel)

toModels

public static List<User> toModels(UserSoap[] soapModels)

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface UserModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface UserModel

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key for this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<User>
Specified by:
getPrimaryKeyObj in interface UserModel
Returns:
the primary key

getUuid

public String getUuid()
Specified by:
getUuid in interface UserModel

setUuid

public void setUuid(String uuid)
Specified by:
setUuid in interface UserModel

getUserId

public long getUserId()
Specified by:
getUserId in interface UserModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface UserModel

getUserUuid

public String getUserUuid()
                   throws SystemException
Specified by:
getUserUuid in interface UserModel
Throws:
SystemException

setUserUuid

public void setUserUuid(String userUuid)
Specified by:
setUserUuid in interface UserModel

getOriginalUserId

public long getOriginalUserId()

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface UserModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface UserModel

getOriginalCompanyId

public long getOriginalCompanyId()

getCreateDate

public Date getCreateDate()
Specified by:
getCreateDate in interface UserModel

setCreateDate

public void setCreateDate(Date createDate)
Specified by:
setCreateDate in interface UserModel

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface UserModel

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Specified by:
setModifiedDate in interface UserModel

getDefaultUser

public boolean getDefaultUser()
Specified by:
getDefaultUser in interface UserModel

isDefaultUser

public boolean isDefaultUser()
Specified by:
isDefaultUser in interface UserModel

setDefaultUser

public void setDefaultUser(boolean defaultUser)
Specified by:
setDefaultUser in interface UserModel

getOriginalDefaultUser

public boolean getOriginalDefaultUser()

getContactId

public long getContactId()
Specified by:
getContactId in interface UserModel

setContactId

public void setContactId(long contactId)
Specified by:
setContactId in interface UserModel

getOriginalContactId

public long getOriginalContactId()

getPassword

public String getPassword()
Specified by:
getPassword in interface UserModel

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface UserModel

getPasswordEncrypted

public boolean getPasswordEncrypted()
Specified by:
getPasswordEncrypted in interface UserModel

isPasswordEncrypted

public boolean isPasswordEncrypted()
Specified by:
isPasswordEncrypted in interface UserModel

setPasswordEncrypted

public void setPasswordEncrypted(boolean passwordEncrypted)
Specified by:
setPasswordEncrypted in interface UserModel

getPasswordReset

public boolean getPasswordReset()
Specified by:
getPasswordReset in interface UserModel

isPasswordReset

public boolean isPasswordReset()
Specified by:
isPasswordReset in interface UserModel

setPasswordReset

public void setPasswordReset(boolean passwordReset)
Specified by:
setPasswordReset in interface UserModel

getPasswordModifiedDate

public Date getPasswordModifiedDate()
Specified by:
getPasswordModifiedDate in interface UserModel

setPasswordModifiedDate

public void setPasswordModifiedDate(Date passwordModifiedDate)
Specified by:
setPasswordModifiedDate in interface UserModel

getReminderQueryQuestion

public String getReminderQueryQuestion()
Specified by:
getReminderQueryQuestion in interface UserModel

setReminderQueryQuestion

public void setReminderQueryQuestion(String reminderQueryQuestion)
Specified by:
setReminderQueryQuestion in interface UserModel

getReminderQueryAnswer

public String getReminderQueryAnswer()
Specified by:
getReminderQueryAnswer in interface UserModel

setReminderQueryAnswer

public void setReminderQueryAnswer(String reminderQueryAnswer)
Specified by:
setReminderQueryAnswer in interface UserModel

getGraceLoginCount

public int getGraceLoginCount()
Specified by:
getGraceLoginCount in interface UserModel

setGraceLoginCount

public void setGraceLoginCount(int graceLoginCount)
Specified by:
setGraceLoginCount in interface UserModel

getScreenName

public String getScreenName()
Specified by:
getScreenName in interface UserModel

setScreenName

public void setScreenName(String screenName)
Specified by:
setScreenName in interface UserModel

getOriginalScreenName

public String getOriginalScreenName()

getEmailAddress

public String getEmailAddress()
Specified by:
getEmailAddress in interface UserModel

setEmailAddress

public void setEmailAddress(String emailAddress)
Specified by:
setEmailAddress in interface UserModel

getOriginalEmailAddress

public String getOriginalEmailAddress()

getFacebookId

public long getFacebookId()
Specified by:
getFacebookId in interface UserModel

setFacebookId

public void setFacebookId(long facebookId)
Specified by:
setFacebookId in interface UserModel

getOriginalFacebookId

public long getOriginalFacebookId()

getOpenId

public String getOpenId()
Specified by:
getOpenId in interface UserModel

setOpenId

public void setOpenId(String openId)
Specified by:
setOpenId in interface UserModel

getOriginalOpenId

public String getOriginalOpenId()

getPortraitId

public long getPortraitId()
Specified by:
getPortraitId in interface UserModel

setPortraitId

public void setPortraitId(long portraitId)
Specified by:
setPortraitId in interface UserModel

getOriginalPortraitId

public long getOriginalPortraitId()

getLanguageId

public String getLanguageId()
Specified by:
getLanguageId in interface UserModel

setLanguageId

public void setLanguageId(String languageId)
Specified by:
setLanguageId in interface UserModel

getTimeZoneId

public String getTimeZoneId()
Specified by:
getTimeZoneId in interface UserModel

setTimeZoneId

public void setTimeZoneId(String timeZoneId)
Specified by:
setTimeZoneId in interface UserModel

getGreeting

public String getGreeting()
Specified by:
getGreeting in interface UserModel

setGreeting

public void setGreeting(String greeting)
Specified by:
setGreeting in interface UserModel

getComments

public String getComments()
Specified by:
getComments in interface UserModel

setComments

public void setComments(String comments)
Specified by:
setComments in interface UserModel

getFirstName

public String getFirstName()
Specified by:
getFirstName in interface UserModel

setFirstName

public void setFirstName(String firstName)
Specified by:
setFirstName in interface UserModel

getMiddleName

public String getMiddleName()
Specified by:
getMiddleName in interface UserModel

setMiddleName

public void setMiddleName(String middleName)
Specified by:
setMiddleName in interface UserModel

getLastName

public String getLastName()
Specified by:
getLastName in interface UserModel

setLastName

public void setLastName(String lastName)
Specified by:
setLastName in interface UserModel

getJobTitle

public String getJobTitle()
Specified by:
getJobTitle in interface UserModel

setJobTitle

public void setJobTitle(String jobTitle)
Specified by:
setJobTitle in interface UserModel

getLoginDate

public Date getLoginDate()
Specified by:
getLoginDate in interface UserModel

setLoginDate

public void setLoginDate(Date loginDate)
Specified by:
setLoginDate in interface UserModel

getLoginIP

public String getLoginIP()
Specified by:
getLoginIP in interface UserModel

setLoginIP

public void setLoginIP(String loginIP)
Specified by:
setLoginIP in interface UserModel

getLastLoginDate

public Date getLastLoginDate()
Specified by:
getLastLoginDate in interface UserModel

setLastLoginDate

public void setLastLoginDate(Date lastLoginDate)
Specified by:
setLastLoginDate in interface UserModel

getLastLoginIP

public String getLastLoginIP()
Specified by:
getLastLoginIP in interface UserModel

setLastLoginIP

public void setLastLoginIP(String lastLoginIP)
Specified by:
setLastLoginIP in interface UserModel

getLastFailedLoginDate

public Date getLastFailedLoginDate()
Specified by:
getLastFailedLoginDate in interface UserModel

setLastFailedLoginDate

public void setLastFailedLoginDate(Date lastFailedLoginDate)
Specified by:
setLastFailedLoginDate in interface UserModel

getFailedLoginAttempts

public int getFailedLoginAttempts()
Specified by:
getFailedLoginAttempts in interface UserModel

setFailedLoginAttempts

public void setFailedLoginAttempts(int failedLoginAttempts)
Specified by:
setFailedLoginAttempts in interface UserModel

getLockout

public boolean getLockout()
Specified by:
getLockout in interface UserModel

isLockout

public boolean isLockout()
Specified by:
isLockout in interface UserModel

setLockout

public void setLockout(boolean lockout)
Specified by:
setLockout in interface UserModel

getLockoutDate

public Date getLockoutDate()
Specified by:
getLockoutDate in interface UserModel

setLockoutDate

public void setLockoutDate(Date lockoutDate)
Specified by:
setLockoutDate in interface UserModel

getAgreedToTermsOfUse

public boolean getAgreedToTermsOfUse()
Specified by:
getAgreedToTermsOfUse in interface UserModel

isAgreedToTermsOfUse

public boolean isAgreedToTermsOfUse()
Specified by:
isAgreedToTermsOfUse in interface UserModel

setAgreedToTermsOfUse

public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse)
Specified by:
setAgreedToTermsOfUse in interface UserModel

getActive

public boolean getActive()
Specified by:
getActive in interface UserModel

isActive

public boolean isActive()
Specified by:
isActive in interface UserModel

setActive

public void setActive(boolean active)
Specified by:
setActive in interface UserModel

toEscapedModel

public User toEscapedModel()
Specified by:
toEscapedModel in interface UserModel

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<User>
Specified by:
getExpandoBridge in interface UserModel
Overrides:
getExpandoBridge in class BaseModelImpl<User>
Returns:
the expando bridge

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<User>
Specified by:
setExpandoBridgeAttributes in interface UserModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<User>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<User>
Specified by:
clone in interface UserModel
Specified by:
clone in class BaseModelImpl<User>
Returns:
the clone

compareTo

public int compareTo(User user)
Specified by:
compareTo in interface UserModel
Specified by:
compareTo in interface Comparable<User>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface UserModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface UserModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<User>
Specified by:
toXmlString in interface UserModel
Returns:
the XML representation of this model instance

Liferay 6.0.3