Module org.elasticsearch.xcore
Record Class Profile.ProfileUser
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.security.action.profile.Profile.ProfileUser
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent
- Enclosing class:
Profile
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedomainNamerecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therealmNamerecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) username()Returns the value of theusernamerecord component.voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Constructor Details
-
ProfileUser
- Throws:
IOException
-
ProfileUser
public ProfileUser(String username, List<String> roles, String realmName, @Nullable String domainName, String email, String fullName) Creates an instance of aProfileUserrecord class.- Parameters:
username- the value for theusernamerecord componentroles- the value for therolesrecord componentrealmName- the value for therealmNamerecord componentdomainName- the value for thedomainNamerecord componentemail- the value for theemailrecord componentfullName- the value for thefullNamerecord component
-
-
Method Details
-
qualifiedName
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
realmName
Returns the value of therealmNamerecord component.- Returns:
- the value of the
realmNamerecord component
-
domainName
Returns the value of thedomainNamerecord component.- Returns:
- the value of the
domainNamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-