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.
|
Collection<UserConsent> |
getConsents()
Returns the consents.
|
Date |
getCreatedDateTime()
Returns the date-time this user was created.
|
String |
getFriendlyId()
Returns the friendly identifier of this user.
|
String |
getId()
Returns the identifier of this user.
|
String |
getTrackId()
Returns the track identifier of this monitor user.
|
Map<String,List<Object>> |
getTrustedCustomAttributes()
Returns a persistent Map with the trusted values of custom attributes of this user.
|
String |
getTrustedEmail()
Returns the trusted email.
|
String |
getTrustedFirstName()
Returns the trusted first name.
|
String |
getTrustedFullName()
Returns the trusted full name of this user.
|
String |
getTrustedLastName()
Returns the trusted last name.
|
String |
getTrustedMiddleName()
Returns the trusted middle Name.
|
Map<String,List<Object>> |
getUntrustedCustomAttributes()
Returns a persistent Map with the untrusted values of custom attributes of this user.
|
String |
getUntrustedEmail()
Returns the untrusted email of this user.
|
String |
getUntrustedFirstName()
Returns the untrusted first name of this user.
|
String |
getUntrustedFullName()
Returns the untrusted full name of this user.
|
String |
getUntrustedLastName()
Returns the untrusted last name of this user.
|
String |
getUntrustedMiddleName()
Returns the untrusted middle name of this user.
|
long |
getVisitorId()
Returns a auto-increment identifier that offers a simpler way to differentiate visitors.
|
void |
scheduleReindex()
Schedules the reindexing of this monitor user on big data.
|
void |
setFriendlyId(String friendlyId)
Sets the friendly identifier of this user.
|
void |
setTrustedEmail(String tEmail)
Sets the trusted email.
|
void |
setTrustedFirstName(String tFirstName)
Sets the trusted first name.
|
void |
setTrustedLastName(String tLastName)
Sets the trusted last name.
|
void |
setTrustedMiddleName(String tMiddleName)
Sets the trusted middle name.
|
void |
setUntrustedEmail(String email)
Sets the untrusted email of this user.
|
void |
setUntrustedFirstName(String firstName)
Sets the untrusted first name of this user.
|
void |
setUntrustedLastName(String lastName)
Sets the untrusted last name of this user.
|
void |
setUntrustedMiddleName(String middleName)
Sets the untrusted 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) throws PortalException
friendlyId
- the friendly identifier.PortalException
public String getUntrustedFirstName()
null
if it is not set.public void setUntrustedFirstName(String firstName)
untrusted
- firstName the first name.public String getUntrustedMiddleName()
null
if it is not set.public void setUntrustedMiddleName(String middleName)
middleName
- the middle name.public String getUntrustedLastName()
null
if it is not set.public void setUntrustedLastName(String lastName)
lastName
- the last name.public String getUntrustedEmail()
null
if it is not set.public void setUntrustedEmail(String email)
email
- the email.public Map<String,List<Object>> getUntrustedCustomAttributes()
public Map<String,List<Object>> getTrustedCustomAttributes()
public String getUntrustedFullName()
getUntrustedFirstName()
, getUntrustedMiddleName()
and getUntrustedLastName()
.public Collection<UserConsent> getConsents()
public void scheduleReindex() throws PortalException
PortalException
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.public String getTrustedFirstName()
public String getTrustedMiddleName()
public String getTrustedLastName()
public String getTrustedEmail()
public void setTrustedFirstName(String tFirstName)
tFirstName
- the trusted first name value to set.public void setTrustedMiddleName(String tMiddleName)
tMiddleName
- the trusted middle name value to set.public void setTrustedLastName(String tLastName)
tLastName
- the trusted last name value to set.public void setTrustedEmail(String tEmail)
tEmail
- the trusted email value to set.public String getTrustedFullName()
getTrustedFirstName()
, getTrustedMiddleName()
and getTrustedLastName()
.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.