public class MonitorUser extends Object
Constructor and Description |
---|
MonitorUser(String id)
Creates a new monitor user with the specified identifier.
|
MonitorUser(String id,
String trackId)
Creates a new monitor user with the specified identifier and track identifier.
|
Modifier and Type | Method and Description |
---|---|
static MonitorUser |
find(String monitorUserId)
Returns the monitor user that corresponds to the given identifier.
|
static MonitorUser |
findByTrackId(String trackId)
Return the monitor user by its track identifier if it exists.
|
static MonitorUser |
findMonitorUserByFriendlyId(String friendlyId)
Return monitor user by its friendly identifier if it exists.
|
static MonitorUser |
findMonitorUserByVisitorId(long visitorId)
Return monitor user by its visitor identifier if it exists.
|
Date |
getCreatedDateTime()
Returns the date-time this user was created.
|
Map<String,List<Object>> |
getCustomAttributes()
Returns a persistent Map with the values of custom attributes of this user.
|
String |
getEmail()
Returns the email of this user.
|
String |
getFirstName()
Returns the first name of this user.
|
String |
getFriendlyId()
Returns the friendly identifier of this user.
|
String |
getFullName()
Returns the full name of this user.
|
String |
getId()
Returns the identifier of this user.
|
String |
getLastName()
Returns the last name of this user.
|
String |
getMiddleName()
Returns the middle name of this user.
|
String |
getTrackId()
Returns the track identifier of this monitor user.
|
long |
getVisitorId()
Returns a auto-increment identifier that offers a simpler way to differentiate visitors.
|
void |
setEmail(String email)
Sets the email of this user.
|
void |
setFirstName(String firstName)
Sets the first name of this user.
|
void |
setFriendlyId(String friendlyId)
Sets the friendly identifier of this user.
|
void |
setLastName(String lastName)
Sets the last name of this user.
|
void |
setMiddleName(String middleName)
Sets the middle name of this user.
|
public MonitorUser(String id, String trackId)
id
- the identifier.trackId
- the track identifier.public MonitorUser(String id)
id
- the identifier.public String getId()
public String getTrackId()
public long getVisitorId()
NullPointerException
- if the value for this field is not available. This may happen if this method is
called on a entity that was not read from the database.public Date getCreatedDateTime()
public String getFriendlyId()
null
if it is not set.public void setFriendlyId(String friendlyId)
friendlyId
- the friendly identifier.public String getFirstName()
null
if it is not set.public void setFirstName(String firstName)
firstName
- the first name.public String getMiddleName()
null
if it is not set.public void setMiddleName(String middleName)
middleName
- the middle name.public String getLastName()
null
if it is not set.public void setLastName(String lastName)
lastName
- the last name.public String getEmail()
null
if it is not set.public void setEmail(String email)
email
- the email.public Map<String,List<Object>> getCustomAttributes()
public String getFullName()
getFirstName()
, getMiddleName()
and getLastName()
.public static MonitorUser find(String monitorUserId)
This method is intended to be used as a replacement of
entityManager.find(MonitorUser.class, monitorUserId)
when monitor user identifier mapping is to be taken
into account.
monitorUserId
- the monitor user identifier.null
if no monitor user corresponds to the given identifier.public static MonitorUser findMonitorUserByFriendlyId(String friendlyId)
friendlyId
- the friendly identifier.public static MonitorUser findMonitorUserByVisitorId(long visitorId)
visitorId
- the visitor identifier.public static MonitorUser findByTrackId(String trackId)
trackId
- the track identifier.null
if no user with the given track identifier was found.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.