Class User
- java.lang.Object
-
- org.apache.openmeetings.db.entity.HistoricalEntity
-
- org.apache.openmeetings.db.entity.user.User
-
- All Implemented Interfaces:
Serializable,IDataProviderEntity
@Entity public class User extends HistoricalEntity
Entity to store user data, password field isFetchType.LAZY, so that is why there is an extra udpate statement at this moment- Author:
- sebawagner, solomax
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.Rightstatic classUser.Salutationstatic classUser.Type
-
Field Summary
Fields Modifier and Type Field Description static StringDISPLAY_NAME_NAstatic intSALUTATION_DR_IDstatic intSALUTATION_MR_IDstatic intSALUTATION_MRS_IDstatic intSALUTATION_MS_IDstatic intSALUTATION_PROF_ID
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
-
Methods inherited from class org.apache.openmeetings.db.entity.HistoricalEntity
getInserted, getUpdated, isDeleted, setDeleted, setInserted, setUpdated
-
-
-
-
Field Detail
-
DISPLAY_NAME_NA
public static final String DISPLAY_NAME_NA
- See Also:
- Constant Field Values
-
SALUTATION_MR_ID
public static final int SALUTATION_MR_ID
- See Also:
- Constant Field Values
-
SALUTATION_MS_ID
public static final int SALUTATION_MS_ID
- See Also:
- Constant Field Values
-
SALUTATION_MRS_ID
public static final int SALUTATION_MRS_ID
- See Also:
- Constant Field Values
-
SALUTATION_DR_ID
public static final int SALUTATION_DR_ID
- See Also:
- Constant Field Values
-
SALUTATION_PROF_ID
public static final int SALUTATION_PROF_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getAddress
public Address getAddress()
-
setAddress
public void setAddress(Address address)
-
getAge
public LocalDate getAge()
-
setAge
public void setAge(LocalDate age)
-
getFirstname
public String getFirstname()
-
getLastlogin
public Date getLastlogin()
-
setLastlogin
public void setLastlogin(Date lastlogin)
-
getLastname
public String getLastname()
-
getDisplayName
public String getDisplayName()
-
resetDisplayName
public void resetDisplayName()
-
getLogin
public String getLogin()
-
setLogin
public void setLogin(String login)
-
updatePassword
public void updatePassword(String pass) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
For internal use only should not be used directly (for bean usage only)- Parameters:
password- - password to set
-
getRegdate
public Date getRegdate()
-
setRegdate
public void setRegdate(Date regdate)
-
getSalutation
public User.Salutation getSalutation()
-
setSalutation
public void setSalutation(User.Salutation salutation)
-
getPictureUri
public String getPictureUri()
-
setPictureUri
public void setPictureUri(String pictureUri)
-
getLanguageId
public long getLanguageId()
-
setLanguageId
public void setLanguageId(long languageId)
-
addGroup
public void addGroup(Group g)
-
getResethash
public String getResethash()
-
setResethash
public void setResethash(String resethash)
-
getResetDate
public Date getResetDate()
-
setResetDate
public void setResetDate(Date resetDate)
-
getActivatehash
public String getActivatehash()
-
setActivatehash
public void setActivatehash(String activatehash)
-
getExternalId
public String getExternalId()
-
setExternalId
public void setExternalId(String externalId)
-
externalType
public String externalType()
-
getExternalType
@Deprecated(since="5.0") public String getExternalType()
Deprecated.External group should be used instead
-
setExternalType
@Deprecated(since="5.0") public void setExternalType(String externalType)
Deprecated.External group should be used instead
-
getSessionData
public Sessiondata getSessionData()
-
setSessionData
public void setSessionData(Sessiondata sessionData)
-
getSipUser
public AsteriskSipUser getSipUser()
-
setSipUser
public void setSipUser(AsteriskSipUser sipUser)
-
getTimeZoneId
public String getTimeZoneId()
-
setTimeZoneId
public void setTimeZoneId(String timeZoneId)
-
getUserOffers
public String getUserOffers()
-
setUserOffers
public void setUserOffers(String userOffers)
-
getUserSearchs
public String getUserSearchs()
-
setUserSearchs
public void setUserSearchs(String userSearchs)
-
isShowContactData
public boolean isShowContactData()
-
setShowContactData
public void setShowContactData(boolean showContactData)
-
isShowContactDataToContacts
public boolean isShowContactDataToContacts()
-
setShowContactDataToContacts
public void setShowContactDataToContacts(boolean showContactDataToContacts)
-
getType
public User.Type getType()
-
setType
public void setType(User.Type type)
-
getOwnerId
public Long getOwnerId()
-
setOwnerId
public void setOwnerId(Long ownerId)
-
getRights
public Set<User.Right> getRights()
-
setRights
public void setRights(Set<User.Right> rights)
-
getDomainId
public Long getDomainId()
-
setDomainId
public void setDomainId(Long domainId)
-
-