Class LuteceUser
java.lang.Object
fr.paris.lutece.portal.service.security.LuteceUser
- All Implemented Interfaces:
fr.paris.lutece.api.user.User,Serializable,Cloneable,Principal
- Direct Known Subclasses:
BasicLuteceUser
public abstract class LuteceUser
extends Object
implements Principal, Serializable, Cloneable, fr.paris.lutece.api.user.User
This Interface defines all methods required for a Lutece user implementation
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringUSER REALM TYPE -
Constructor Summary
ConstructorsConstructorDescriptionLuteceUser(String strUserName, LuteceAuthentication authenticationService) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroups(Collection<String> groups) add user's groupsvoidaddRoles(Collection<String> roles) add user's rolesclone()booleanequals implementationReturns the authentification service that had authentified the userReturns the authentification type that had authentified the usergetEmail()Get the users emailString[]Returns user's groups"Getter method" for_luteceAuthenticationService.getName()Return the user's namegetRealm()String[]getRoles()Returns user's rolesfinal StringgetUserInfo(String key) Gets the user info valueGets the user info mapinthashCode()hashCode implementationvoidsetAuthenticationService(String strAuthenticationService) Defines the authentification service that had authentified the uservoidsetAuthenticationType(String strAuthenticationType) Defines the authentification type that had authentified the uservoidsetGroups(Collection<String> groups) Defines user's groupsvoidsetLuteceAuthenticationService(LuteceAuthentication authenticationService) "Setter method" for_luteceAuthenticationService.voidSets the user's namevoidsetRoles(Collection<String> roles) Defines user's rolesfinal voidsetUserInfo(String key, String value) Add an user's infotoString()toString implementation
-
Field Details
-
BDATE
- See Also:
-
GENDER
- See Also:
-
EMPLOYER
- See Also:
-
DEPARTMENT
- See Also:
-
JOBTITLE
- See Also:
-
PREFIX
- See Also:
-
DATE_LAST_LOGIN
- See Also:
-
NAME_GIVEN
- See Also:
-
NAME_FAMILY
- See Also:
-
NAME_MIDDLE
- See Also:
-
NAME_SUFFIX
- See Also:
-
NAME_NICKNAME
- See Also:
-
NAME_CIVILITY
- See Also:
-
HOME_INFO_POSTAL_NAME
- See Also:
-
HOME_INFO_POSTAL_STREET
- See Also:
-
HOME_INFO_POSTAL_STREET_NUMBER
- See Also:
-
HOME_INFO_POSTAL_STREET_SUFFIX
- See Also:
-
HOME_INFO_POSTAL_STREET_NAME
- See Also:
-
HOME_INFO_POSTAL_STREET_TYPE
- See Also:
-
HOME_INFO_POSTAL_STREET_URBAN_DISTRICT
- See Also:
-
HOME_INFO_POSTAL_CITY
- See Also:
-
HOME_INFO_POSTAL_STATEPROV
- See Also:
-
HOME_INFO_POSTAL_POSTALCODE
- See Also:
-
HOME_INFO_POSTAL_COUNTRY
- See Also:
-
HOME_INFO_POSTAL_ORGANIZATION
- See Also:
-
HOME_INFO_TELECOM_TELEPHONE_INTCODE
- See Also:
-
HOME_INFO_TELECOM_TELEPHONE_LOCCODE
- See Also:
-
HOME_INFO_TELECOM_TELEPHONE_NUMBER
- See Also:
-
HOME_INFO_TELECOM_TELEPHONE_EXT
- See Also:
-
HOME_INFO_TELECOM_TELEPHONE_COMMENT
- See Also:
-
HOME_INFO_TELECOM_FAX_INT
- See Also:
-
HOME_INFO_TELECOM_FAX_LOCCODE
- See Also:
-
HOME_INFO_TELECOM_FAX_NUMBER
- See Also:
-
HOME_INFO_TELECOM_FAX_EXT
- See Also:
-
HOME_INFO_TELECOM_FAX_COMMENT
- See Also:
-
HOME_INFO_TELECOM_MOBILE_INTCODE
- See Also:
-
HOME_INFO_TELECOM_MOBILE_LOCCODE
- See Also:
-
HOME_INFO_TELECOM_MOBILE_NUMBER
- See Also:
-
HOME_INFO_TELECOM_MOBILE_EXT
- See Also:
-
HOME_INFO_TELECOM_MOBILE_COMMENT
- See Also:
-
HOME_INFO_TELECOM_PAGER_INTCODE
- See Also:
-
HOME_INFO_TELECOM_PAGER_LOCCODE
- See Also:
-
HOME_INFO_TELECOM_PAGER_NUMBER
- See Also:
-
HOME_INFO_TELECOM_PAGER_EXT
- See Also:
-
HOME_INFO_TELECOM_PAGER_COMMENT
- See Also:
-
HOME_INFO_ONLINE_EMAIL
- See Also:
-
HOME_INFO_ONLINE_URI
- See Also:
-
BUSINESS_INFO_POSTAL_NAME
- See Also:
-
BUSINESS_INFO_POSTAL_STREET
- See Also:
-
BUSINESS_INFO_POSTAL_CITY
- See Also:
-
BUSINESS_INFO_POSTAL_STATEPROV
- See Also:
-
BUSINESS_INFO_POSTAL_POSTALCODE
- See Also:
-
BUSINESS_INFO_POSTAL_COUNTRY
- See Also:
-
BUSINESS_INFO_POSTAL_ORGANIZATION
- See Also:
-
BUSINESS_INFO_TELECOM_TELEPHONE_INTCODE
- See Also:
-
BUSINESS_INFO_TELECOM_TELEPHONE_LOCCODE
- See Also:
-
BUSINESS_INFO_TELECOM_TELEPHONE_NUMBER
- See Also:
-
BUSINESS_INFO_TELECOM_TELEPHONE_EXT
- See Also:
-
BUSINESS_INFO_TELECOM_TELEPHONE_COMMENT
- See Also:
-
BUSINESS_INFO_TELECOM_FAX_INTCODE
- See Also:
-
BUSINESS_INFO_TELECOM_FAX_LOCCODE
- See Also:
-
BUSINESS_INFO_TELECOM_FAX_NUMBER
- See Also:
-
BUSINESS_INFO_TELECOM_FAX_EXT
- See Also:
-
BUSINESS_INFO_TELECOM_FAX_COMMENT
- See Also:
-
BUSINESS_INFO_TELECOM_MOBILE_INTCODE
- See Also:
-
BUSINESS_INFO_TELECOM_MOBILE_LOCCODE
- See Also:
-
BUSINESS_INFO_TELECOM_MOBILE_NUMBER
- See Also:
-
BUSINESS_INFO_TELECOM_MOBILE_EXT
- See Also:
-
BUSINESS_INFO_TELECOM_MOBILE_COMMENT
- See Also:
-
BUSINESS_INFO_TELECOM_PAGER_INTCODE
- See Also:
-
BUSINESS_INFO_TELECOM_PAGER_LOCCODE
- See Also:
-
BUSINESS_INFO_TELECOM_PAGER_NUMBER
- See Also:
-
BUSINESS_INFO_TELECOM_PAGER_EXT
- See Also:
-
BUSINESS_INFO_TELECOM_PAGER_COMMENT
- See Also:
-
BUSINESS_INFO_ONLINE_EMAIL
- See Also:
-
BUSINESS_INFO_ONLINE_URI
- See Also:
-
ANONYMOUS_USERNAME
- See Also:
-
USER_REALM
USER REALM TYPE- See Also:
-
-
Constructor Details
-
LuteceUser
Constructor- Parameters:
strUserName- The User NameauthenticationService- The PortalAuthentication object
-
-
Method Details
-
getUserInfos
Gets the user info map- Returns:
- The user info map
-
setUserInfo
Add an user's info- Parameters:
key- The info keyvalue- The info value
-
getUserInfo
Gets the user info value- Parameters:
key- The info key- Returns:
- the user info value
-
equals
equals implementation -
toString
toString implementation -
hashCode
public int hashCode()hashCode implementation -
getName
Return the user's name -
setName
Sets the user's name- Parameters:
strName- The User name
-
getRoles
Returns user's roles- Returns:
- Returns user's roles
-
getUserRoles
- Specified by:
getUserRolesin interfacefr.paris.lutece.api.user.User
-
addRoles
add user's roles- Parameters:
roles- The User roles
-
setRoles
Defines user's roles- Parameters:
roles- The User roles
-
getGroups
Returns user's groups- Returns:
- Returns user's groups
-
addGroups
add user's groups- Parameters:
groups- The User groups
-
setGroups
Defines user's groups- Parameters:
groups- The User groups
-
setAuthenticationService
Defines the authentification service that had authentified the user- Parameters:
strAuthenticationService- The authentification service
-
getAuthenticationService
Returns the authentification service that had authentified the user- Returns:
- the authentification service that had authentified the user
-
setAuthenticationType
Defines the authentification type that had authentified the user- Parameters:
strAuthenticationType- The authentification type
-
getAuthenticationType
Returns the authentification type that had authentified the user- Returns:
- the authentification type that had authentified the user
-
getLuteceAuthenticationService
"Getter method" for_luteceAuthenticationService.Since the field is
transient(not replicated across instances), it is lazily reloaded fromSecurityServiceafter session deserialization. The name stored in_strAuthenticationServiceis used as a consistency check to ensure the resolved service matches the one originally used to authenticate this user.- Returns:
- value of
_luteceAuthenticationService
-
setLuteceAuthenticationService
"Setter method" for_luteceAuthenticationService.- Parameters:
authenticationService- new value of_luteceAuthenticationService
-
clone
- Throws:
CloneNotSupportedException
-
getEmail
Get the users email- Specified by:
getEmailin interfacefr.paris.lutece.api.user.User- Returns:
- The email
-
getAccessCode
- Specified by:
getAccessCodein interfacefr.paris.lutece.api.user.User
-
getLastName
- Specified by:
getLastNamein interfacefr.paris.lutece.api.user.User
-
getFirstName
- Specified by:
getFirstNamein interfacefr.paris.lutece.api.user.User
-
getUserWorkgroups
- Specified by:
getUserWorkgroupsin interfacefr.paris.lutece.api.user.User
-
getRealm
- Specified by:
getRealmin interfacefr.paris.lutece.api.user.User
-