Class RaygunIdentifier
- java.lang.Object
-
- com.mindscapehq.raygun4java.core.messages.RaygunIdentifier
-
public class RaygunIdentifier extends Object
-
-
Constructor Summary
Constructors Constructor Description RaygunIdentifier(String uniqueUserIdentifier)Creates a representation of the current user info by specifying just their unique identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEmail()StringgetFirstName()StringgetFullName()StringgetIdentifier()BooleangetIsAnonymous()StringgetUuid()RaygunIdentifierwithAnonymous(Boolean isAnonymous)RaygunIdentifierwithEmail(String email)RaygunIdentifierwithFirstName(String firstName)RaygunIdentifierwithFullName(String fullName)RaygunIdentifierwithIdentifier(String identifier)RaygunIdentifierwithUuid(String uuid)
-
-
-
Constructor Detail
-
RaygunIdentifier
public RaygunIdentifier(String uniqueUserIdentifier)
Creates a representation of the current user info by specifying just their unique identifier. This can be an email address or an internal unique ID. If it is an email address you should also set Email. All other properties are optional with this overload/- Parameters:
uniqueUserIdentifier- The email address or unique ID representing the current user.
-
-
Method Detail
-
getIsAnonymous
public Boolean getIsAnonymous()
-
withAnonymous
public RaygunIdentifier withAnonymous(Boolean isAnonymous)
- Parameters:
isAnonymous- Whether this user withData represents an anonymous user- Returns:
- this
-
getEmail
public String getEmail()
-
withEmail
public RaygunIdentifier withEmail(String email)
- Parameters:
email- User's email address- Returns:
- this
-
getFullName
public String getFullName()
-
withFullName
public RaygunIdentifier withFullName(String fullName)
- Parameters:
fullName- The user's full name - if setting the first name you should set this too- Returns:
-
getFirstName
public String getFirstName()
-
withFirstName
public RaygunIdentifier withFirstName(String firstName)
- Parameters:
firstName- The user's first name- Returns:
- this
-
getUuid
public String getUuid()
-
withUuid
public RaygunIdentifier withUuid(String uuid)
- Parameters:
uuid- Device identifier - if this is null we will attempt to generate it automatically (legacy behavior).- Returns:
- this
-
getIdentifier
public String getIdentifier()
-
withIdentifier
public RaygunIdentifier withIdentifier(String identifier)
- Parameters:
identifier- Unique identifier for this user. Set this to the internal identifier you use to look up users, or a correlation ID for anonymous users if you have one. It doesn't have to be unique, but we will treat any duplicated values as the same user. If you use their email address here, pass it in as the 'emailAddress' parameter too.- Returns:
- this
-
-