Package lumis.portal.user
Class UserProperties
- java.lang.Object
-
- lumis.portal.user.UserProperties
-
- All Implemented Interfaces:
Cloneable
,IUserProperties
,IUserPropertiesReadOnly
public class UserProperties extends Object implements IUserProperties, Cloneable
IUserProperties
implementation.- Since:
- 12.0.0
- Version:
- $Revision: 24175 $ $Date: 2020-10-09 14:46:18 -0300 (Fri, 09 Oct 2020) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserProperties
clone()
Map<String,List<Object>>
getCustomAttributes()
Returns a mutable map of the global custom attributes - the local attributes will not be returned.Map<String,Map<String,List<Object>>>
getCustomAttributesMap()
Returns custom attributes map for each service instance identifier.String
getEmail()
Returns the e-mail.String
getFirstName()
Returns the first name.String
getFullName()
Returns the full name.String
getLastName()
Returns the last name.String
getMiddleName()
Returns the middle name.void
setEmail(String email)
Sets the e-mail.void
setFirstName(String firstName)
Sets the first name.void
setLastName(String lastName)
Sets the last name.void
setMiddleName(String middleName)
Sets the middle name.
-
-
-
Constructor Detail
-
UserProperties
public UserProperties(Map<String,Map<String,String>> customAttributes)
Creates a new user properties instance with its custom attributes initialized with the content of the given map.- Parameters:
customAttributes
- the custom attributes values to use for initialization.- Since:
- 12.0.0
-
-
Method Detail
-
getEmail
public String getEmail()
Description copied from interface:IUserPropertiesReadOnly
Returns the e-mail.- Specified by:
getEmail
in interfaceIUserPropertiesReadOnly
- Returns:
- the e-mail or
null
if no e-mail is set.
-
setEmail
public void setEmail(String email)
Description copied from interface:IUserProperties
Sets the e-mail.- Specified by:
setEmail
in interfaceIUserProperties
- Parameters:
email
- the e-mail.
-
getFirstName
public String getFirstName()
Description copied from interface:IUserPropertiesReadOnly
Returns the first name.- Specified by:
getFirstName
in interfaceIUserPropertiesReadOnly
- Returns:
- the first name or
null
if no first name is set.
-
setFirstName
public void setFirstName(String firstName)
Description copied from interface:IUserProperties
Sets the first name.- Specified by:
setFirstName
in interfaceIUserProperties
- Parameters:
firstName
- the first name.
-
getMiddleName
public String getMiddleName()
Description copied from interface:IUserPropertiesReadOnly
Returns the middle name.- Specified by:
getMiddleName
in interfaceIUserPropertiesReadOnly
- Returns:
- the middle name or
null
if no middle name is set.
-
setMiddleName
public void setMiddleName(String middleName)
Description copied from interface:IUserProperties
Sets the middle name.- Specified by:
setMiddleName
in interfaceIUserProperties
- Parameters:
middleName
- the middle name.
-
getLastName
public String getLastName()
Description copied from interface:IUserPropertiesReadOnly
Returns the last name.- Specified by:
getLastName
in interfaceIUserPropertiesReadOnly
- Returns:
- the last name or
null
if no last name is set.
-
setLastName
public void setLastName(String lastName)
Description copied from interface:IUserProperties
Sets the last name.- Specified by:
setLastName
in interfaceIUserProperties
- Parameters:
lastName
- the last name.
-
getCustomAttributes
public Map<String,List<Object>> getCustomAttributes()
Description copied from interface:IUserProperties
Returns a mutable map of the global custom attributes - the local attributes will not be returned.- Specified by:
getCustomAttributes
in interfaceIUserProperties
- Specified by:
getCustomAttributes
in interfaceIUserPropertiesReadOnly
- Returns:
- a map where the key is the user attribute identifier and the value is the list with the values for that attribute.
-
getFullName
public String getFullName()
Description copied from interface:IUserPropertiesReadOnly
Returns the full name.- Specified by:
getFullName
in interfaceIUserPropertiesReadOnly
- Returns:
- the full name or
null
if no IUserPropertiesReadOnly.getFirstName()first name is set.
-
clone
public UserProperties clone()
-
getCustomAttributesMap
public Map<String,Map<String,List<Object>>> getCustomAttributesMap()
Description copied from interface:IUserProperties
Returns custom attributes map for each service instance identifier. The global user attribute values will be in null key.- Specified by:
getCustomAttributesMap
in interfaceIUserProperties
- Specified by:
getCustomAttributesMap
in interfaceIUserPropertiesReadOnly
- Returns:
- custom attributes map for each service instance identifier. The global user attribute values will be in null key.
-
-