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