public abstract class LuteceUser extends Object implements Principal, Serializable, Cloneable
Constructor and Description |
---|
LuteceUser(String strUserName,
LuteceAuthentication authenticationService)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addGroups(Collection<String> groups)
add user's groups
|
void |
addRoles(Collection<String> roles)
add user's roles
|
Object |
clone() |
boolean |
equals(Object object)
equals implementation
|
String |
getAuthenticationService()
Returns the authentification service that had authentified the user
|
String |
getAuthenticationType()
Returns the authentification type that had authentified the user
|
String |
getEmail()
Get the users email
|
String[] |
getGroups()
Returns user's groups
|
LuteceAuthentication |
getLuteceAuthenticationService()
"Getter method" for
_luteceAuthenticationService |
String |
getName()
Return the user's name
|
String[] |
getRoles()
Returns user's roles
|
String |
getUserInfo(String key)
Gets a user's info
|
Map<String,String> |
getUserInfos()
Gets the user info map
|
int |
hashCode()
hashCode implementation
|
void |
setAuthenticationService(String strAuthenticationService)
Defines the authentification service that had authentified the user
|
void |
setAuthenticationType(String strAuthenticationType)
Defines the authentification type that had authentified the user
|
void |
setGroups(Collection<String> groups)
Defines user's groups
|
void |
setLuteceAuthenticationService(LuteceAuthentication authenticationService)
"Setter method" for
_luteceAuthenticationService . |
void |
setName(String strName)
Sets the user's name
|
void |
setRoles(Collection<String> roles)
Defines user's roles
|
void |
setUserInfo(String key,
String value)
Add an user's info
|
String |
toString()
toString implementation
|
public static final String BDATE
public static final String GENDER
public static final String EMPLOYER
public static final String DEPARTMENT
public static final String JOBTITLE
public static final String PREFIX
public static final String DATE_LAST_LOGIN
public static final String NAME_GIVEN
public static final String NAME_FAMILY
public static final String NAME_MIDDLE
public static final String NAME_SUFFIX
public static final String NAME_NICKNAME
public static final String NAME_CIVILITY
public static final String HOME_INFO_POSTAL_NAME
public static final String HOME_INFO_POSTAL_STREET
public static final String HOME_INFO_POSTAL_STREET_NUMBER
public static final String HOME_INFO_POSTAL_STREET_SUFFIX
public static final String HOME_INFO_POSTAL_STREET_NAME
public static final String HOME_INFO_POSTAL_STREET_TYPE
public static final String HOME_INFO_POSTAL_STREET_URBAN_DISTRICT
public static final String HOME_INFO_POSTAL_CITY
public static final String HOME_INFO_POSTAL_STATEPROV
public static final String HOME_INFO_POSTAL_POSTALCODE
public static final String HOME_INFO_POSTAL_COUNTRY
public static final String HOME_INFO_POSTAL_ORGANIZATION
public static final String HOME_INFO_TELECOM_TELEPHONE_INTCODE
public static final String HOME_INFO_TELECOM_TELEPHONE_LOCCODE
public static final String HOME_INFO_TELECOM_TELEPHONE_NUMBER
public static final String HOME_INFO_TELECOM_TELEPHONE_EXT
public static final String HOME_INFO_TELECOM_TELEPHONE_COMMENT
public static final String HOME_INFO_TELECOM_FAX_INT
public static final String HOME_INFO_TELECOM_FAX_LOCCODE
public static final String HOME_INFO_TELECOM_FAX_NUMBER
public static final String HOME_INFO_TELECOM_FAX_EXT
public static final String HOME_INFO_TELECOM_FAX_COMMENT
public static final String HOME_INFO_TELECOM_MOBILE_INTCODE
public static final String HOME_INFO_TELECOM_MOBILE_LOCCODE
public static final String HOME_INFO_TELECOM_MOBILE_NUMBER
public static final String HOME_INFO_TELECOM_MOBILE_EXT
public static final String HOME_INFO_TELECOM_MOBILE_COMMENT
public static final String HOME_INFO_TELECOM_PAGER_INTCODE
public static final String HOME_INFO_TELECOM_PAGER_LOCCODE
public static final String HOME_INFO_TELECOM_PAGER_NUMBER
public static final String HOME_INFO_TELECOM_PAGER_EXT
public static final String HOME_INFO_TELECOM_PAGER_COMMENT
public static final String HOME_INFO_ONLINE_EMAIL
public static final String HOME_INFO_ONLINE_URI
public static final String BUSINESS_INFO_POSTAL_NAME
public static final String BUSINESS_INFO_POSTAL_STREET
public static final String BUSINESS_INFO_POSTAL_CITY
public static final String BUSINESS_INFO_POSTAL_STATEPROV
public static final String BUSINESS_INFO_POSTAL_POSTALCODE
public static final String BUSINESS_INFO_POSTAL_COUNTRY
public static final String BUSINESS_INFO_POSTAL_ORGANIZATION
public static final String BUSINESS_INFO_TELECOM_TELEPHONE_INTCODE
public static final String BUSINESS_INFO_TELECOM_TELEPHONE_LOCCODE
public static final String BUSINESS_INFO_TELECOM_TELEPHONE_NUMBER
public static final String BUSINESS_INFO_TELECOM_TELEPHONE_EXT
public static final String BUSINESS_INFO_TELECOM_TELEPHONE_COMMENT
public static final String BUSINESS_INFO_TELECOM_FAX_INTCODE
public static final String BUSINESS_INFO_TELECOM_FAX_LOCCODE
public static final String BUSINESS_INFO_TELECOM_FAX_NUMBER
public static final String BUSINESS_INFO_TELECOM_FAX_EXT
public static final String BUSINESS_INFO_TELECOM_FAX_COMMENT
public static final String BUSINESS_INFO_TELECOM_MOBILE_INTCODE
public static final String BUSINESS_INFO_TELECOM_MOBILE_LOCCODE
public static final String BUSINESS_INFO_TELECOM_MOBILE_NUMBER
public static final String BUSINESS_INFO_TELECOM_MOBILE_EXT
public static final String BUSINESS_INFO_TELECOM_MOBILE_COMMENT
public static final String BUSINESS_INFO_TELECOM_PAGER_INTCODE
public static final String BUSINESS_INFO_TELECOM_PAGER_LOCCODE
public static final String BUSINESS_INFO_TELECOM_PAGER_NUMBER
public static final String BUSINESS_INFO_TELECOM_PAGER_EXT
public static final String BUSINESS_INFO_TELECOM_PAGER_COMMENT
public static final String BUSINESS_INFO_ONLINE_EMAIL
public static final String BUSINESS_INFO_ONLINE_URI
public static final String ANONYMOUS_USERNAME
public LuteceUser(String strUserName, LuteceAuthentication authenticationService)
strUserName
- The User NameauthenticationService
- The PortalAuthentication objectpublic final Map<String,String> getUserInfos()
public final void setUserInfo(String key, String value)
key
- The info keyvalue
- The info valuepublic final String getUserInfo(String key)
key
- The info keypublic boolean equals(Object object)
public String toString()
public int hashCode()
public String getName()
public void setName(String strName)
strName
- The User namepublic String[] getRoles()
public void addRoles(Collection<String> roles)
roles
- The User rolespublic void setRoles(Collection<String> roles)
roles
- The User rolespublic String[] getGroups()
public void addGroups(Collection<String> groups)
groups
- The User groupspublic void setGroups(Collection<String> groups)
groups
- The User groupspublic void setAuthenticationService(String strAuthenticationService)
strAuthenticationService
- The authentification servicepublic String getAuthenticationService()
public void setAuthenticationType(String strAuthenticationType)
strAuthenticationType
- The authentification typepublic String getAuthenticationType()
public LuteceAuthentication getLuteceAuthenticationService()
_luteceAuthenticationService
_luteceAuthenticationService
public void setLuteceAuthenticationService(LuteceAuthentication authenticationService)
_luteceAuthenticationService
.authenticationService
- new value of _luteceAuthenticationService
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getEmail()
Copyright © 2020 City of Paris. All rights reserved.