Package org.javlo.user
Class UserInfo
- java.lang.Object
-
- org.javlo.user.UserInfo
-
- All Implemented Interfaces:
Serializable
,Comparable<IUserInfo>
,IUserInfo
- Direct Known Subclasses:
AdminUserInfo
public class UserInfo extends Object implements Comparable<IUserInfo>, IUserInfo, Serializable
- Author:
- pvandermaesen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.javlo.user.IUserInfo
PREFERRED_LANGUAGE_SEPARATOR, ROLES_SEPARATOR
-
-
Method Summary
-
-
-
Field Detail
-
login
protected String login
-
encryptLogin
protected String encryptLogin
-
password
protected String password
-
title
protected String title
-
url
protected String url
-
firstName
protected String firstName
-
lastName
protected String lastName
-
gender
protected String gender
-
email
protected String email
-
organization
protected String organization
-
vat
protected String vat
-
department
protected String department
-
function
protected String function
-
specialFunction
protected String specialFunction
-
experience
protected String experience
-
recommendation
protected String recommendation
-
parent
protected String parent
-
address
protected String address
-
postCode
protected String postCode
-
city
protected String city
-
country
protected String country
-
region
protected String region
-
phone
protected String phone
-
mobile
protected String mobile
-
info
protected String info
-
token
protected String token
-
accountType
protected String accountType
-
avatarURL
protected String avatarURL
-
birthdate
protected String birthdate
-
memberdate
protected String memberdate
-
site
protected String site
-
idNumber
protected String idNumber
-
nationalRegister
protected String nationalRegister
-
nickname
protected String nickname
-
health
protected String health
-
food
protected String food
-
preferredLanguage
protected String[] preferredLanguage
-
creationDate
protected Date creationDate
-
modificationDate
protected Date modificationDate
-
taxonomy
protected String[] taxonomy
-
-
Method Detail
-
getNationalRegister
public String getNationalRegister()
- Specified by:
getNationalRegister
in interfaceIUserInfo
-
setNationalRegister
public void setNationalRegister(String nationalRegister)
- Specified by:
setNationalRegister
in interfaceIUserInfo
-
getFirstName
public String getFirstName()
- Specified by:
getFirstName
in interfaceIUserInfo
- Returns:
-
getLastName
public String getLastName()
- Specified by:
getLastName
in interfaceIUserInfo
- Returns:
-
setEmail
public void setEmail(String string)
-
setFirstName
public void setFirstName(String string)
- Specified by:
setFirstName
in interfaceIUserInfo
- Parameters:
string
-
-
setLastName
public void setLastName(String string)
- Specified by:
setLastName
in interfaceIUserInfo
- Parameters:
string
-
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceIUserInfo
- Returns:
-
setLogin
public void setLogin(String login)
-
encryptPassword
public String encryptPassword(String pwd)
- Specified by:
encryptPassword
in interfaceIUserInfo
-
setPassword
public void setPassword(String inPwd)
- Specified by:
setPassword
in interfaceIUserInfo
- Parameters:
String
-
-
getPreferredLanguage
public String[] getPreferredLanguage()
- Specified by:
getPreferredLanguage
in interfaceIUserInfo
-
getPreferredLanguageRaw
public String getPreferredLanguageRaw()
-
setPreferredLanguage
public void setPreferredLanguage(String[] preferredLanguage)
- Specified by:
setPreferredLanguage
in interfaceIUserInfo
-
setPreferredLanguageRaw
public void setPreferredLanguageRaw(String preferredLanguageRaw)
-
getRolesRaw
public String getRolesRaw()
-
setRolesRaw
public void setRolesRaw(String rolesRaw)
-
setValue
public void setValue(String field, String value) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
- Specified by:
setValue
in interfaceIUserInfo
- Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException
-
getAllLabels
public String[] getAllLabels()
- Specified by:
getAllLabels
in interfaceIUserInfo
-
getAllValues
public String[] getAllValues()
- Specified by:
getAllValues
in interfaceIUserInfo
-
compareTo
public int compareTo(IUserInfo other)
compare on last name- Specified by:
compareTo
in interfaceComparable<IUserInfo>
-
getOrganization
public String getOrganization()
- Specified by:
getOrganization
in interfaceIUserInfo
-
setOrganization
public void setOrganization(String organization)
-
getAddress
public String getAddress()
- Specified by:
getAddress
in interfaceIUserInfo
-
setAddress
public void setAddress(String address)
- Specified by:
setAddress
in interfaceIUserInfo
-
getPostCode
public String getPostCode()
- Specified by:
getPostCode
in interfaceIUserInfo
-
setPostCode
public void setPostCode(String postCode)
- Specified by:
setPostCode
in interfaceIUserInfo
-
getCountry
public String getCountry()
- Specified by:
getCountry
in interfaceIUserInfo
-
setCountry
public void setCountry(String country)
- Specified by:
setCountry
in interfaceIUserInfo
-
setCreationDate
public void setCreationDate(String dateStr)
-
setCreationDate
public void setCreationDate(Date creationDate)
- Specified by:
setCreationDate
in interfaceIUserInfo
-
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate
in interfaceIUserInfo
-
getCreationDateLabel
public String getCreationDateLabel()
-
setModificationDate
public void setModificationDate(String dateStr)
-
setModificationDate
public void setModificationDate(Date modificationDate)
- Specified by:
setModificationDate
in interfaceIUserInfo
-
getModificationDate
public Date getModificationDate()
- Specified by:
getModificationDate
in interfaceIUserInfo
-
getBirthdate
public String getBirthdate()
- Specified by:
getBirthdate
in interfaceIUserInfo
-
setBirthdate
public void setBirthdate(String date)
- Specified by:
setBirthdate
in interfaceIUserInfo
-
removeRoles
public void removeRoles(Set<String> strings)
- Specified by:
removeRoles
in interfaceIUserInfo
-
getMobile
public String getMobile()
-
setMobile
public void setMobile(String mobile)
-
getFunction
public String getFunction()
-
setFunction
public void setFunction(String function)
-
getTokenCreateIfNotExist
public String getTokenCreateIfNotExist()
- Specified by:
getTokenCreateIfNotExist
in interfaceIUserInfo
-
resetToken
public void resetToken()
- Specified by:
resetToken
in interfaceIUserInfo
-
getEncryptLogin
public String getEncryptLogin()
return the encrypt login the encrypt login can change when we restart.- Specified by:
getEncryptLogin
in interfaceIUserInfo
-
getAccountType
public String getAccountType()
Description copied from interface:IUserInfo
get the type of account (default, facebook, google account...)- Specified by:
getAccountType
in interfaceIUserInfo
- Returns:
-
setAccountType
public void setAccountType(String accountType)
-
setExternalLoginUser
public void setExternalLoginUser()
Description copied from interface:IUserInfo
define user as outside loged, as facebook or google login.- Specified by:
setExternalLoginUser
in interfaceIUserInfo
-
isExternalLoginUser
public boolean isExternalLoginUser()
Description copied from interface:IUserInfo
check if user is logged from external module (as facebook ou google).- Specified by:
isExternalLoginUser
in interfaceIUserInfo
- Returns:
- true if user logged from external module.
-
getVat
public String getVat()
-
setVat
public void setVat(String vat)
-
setUrl
public void setUrl(String url)
-
getAvatarURL
public String getAvatarURL()
- Specified by:
getAvatarURL
in interfaceIUserInfo
-
setAvatarURL
public void setAvatarURL(String avatarURL)
- Specified by:
setAvatarURL
in interfaceIUserInfo
-
getExperience
public String getExperience()
-
setExperience
public void setExperience(String experience)
-
getRecommendation
public String getRecommendation()
-
setRecommendation
public void setRecommendation(String recommendation)
-
getParent
public String getParent()
Description copied from interface:IUserInfo
get the parent of the user, a parent can be a manager.
-
setParent
public void setParent(String parent)
-
getSpecialFunction
public String getSpecialFunction()
-
setSpecialFunction
public void setSpecialFunction(String specialFunction)
-
setGender
public void setGender(String gender)
-
getUserFolder
public String getUserFolder()
- Specified by:
getUserFolder
in interfaceIUserInfo
-
getDepartment
public String getDepartment()
-
setDepartment
public void setDepartment(String department)
-
getMemberdate
public String getMemberdate()
-
setMemberdate
public void setMemberdate(String memberdate)
-
getInternetAddress
public javax.mail.internet.InternetAddress getInternetAddress()
- Specified by:
getInternetAddress
in interfaceIUserInfo
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
-
getIdNumber
public String getIdNumber()
-
setIdNumber
public void setIdNumber(String idNumber)
-
getNickname
public String getNickname()
-
setNickname
public void setNickname(String nickname)
-
getHealth
public String getHealth()
-
setHealth
public void setHealth(String health)
-
getFood
public String getFood()
-
setFood
public void setFood(String food)
-
getTaxonomyRaw
public String getTaxonomyRaw()
-
setTaxonomyRaw
public void setTaxonomyRaw(String taxonomyRaw)
-
getTaxonomy
public String[] getTaxonomy()
- Specified by:
getTaxonomy
in interfaceIUserInfo
-
setTaxonomy
public void setTaxonomy(String[] taxonomy)
- Specified by:
setTaxonomy
in interfaceIUserInfo
-
-