Class User
- java.lang.Object
-
- co.elastic.apm.agent.impl.context.User
-
- All Implemented Interfaces:
Recyclable
public class User extends java.lang.Object implements Recyclable
UserDescribes the authenticated User for a request.
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(User other)java.lang.StringgetDomain()Domain of the logged in userjava.lang.StringgetEmail()Email of the logged in userjava.lang.StringgetId()Identifier of the logged in user, e.g.java.lang.StringgetUsername()The username of the logged in userbooleanhasContent()voidresetState()resets pooled object state so it can be reusedUserwithDomain(java.lang.String domain)Domain of the logged in userUserwithEmail(java.lang.String email)Email of the logged in userUserwithId(java.lang.String id)Identifier of the logged in user, e.g.UserwithUsername(java.lang.String username)The username of the logged in user
-
-
-
Method Detail
-
getDomain
@Nullable public java.lang.String getDomain()
Domain of the logged in user
-
withDomain
public User withDomain(@Nullable java.lang.String domain)
Domain of the logged in user
-
getId
@Nullable public java.lang.String getId()
Identifier of the logged in user, e.g. the primary key of the user
-
withId
public User withId(@Nullable java.lang.String id)
Identifier of the logged in user, e.g. the primary key of the user
-
getEmail
@Nullable public java.lang.String getEmail()
Email of the logged in user
-
withEmail
public User withEmail(@Nullable java.lang.String email)
Email of the logged in user
-
getUsername
@Nullable public java.lang.String getUsername()
The username of the logged in user
-
withUsername
public User withUsername(@Nullable java.lang.String username)
The username of the logged in user
-
resetState
public void resetState()
Description copied from interface:Recyclableresets pooled object state so it can be reused- Specified by:
resetStatein interfaceRecyclable
-
copyFrom
public void copyFrom(User other)
-
hasContent
public boolean hasContent()
-
-