Record Class ProfileDocument
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.security.profile.ProfileDocument
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.xcontent.ConstructingObjectParser<org.elasticsearch.xpack.core.security.authc.Authentication.RealmRef,Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionProfileDocument(String uid, boolean enabled, long lastSynchronized, ProfileDocument.ProfileDocumentUser user, Map<String, Object> access, org.elasticsearch.common.bytes.BytesReference applicationData) Creates an instance of aProfileDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccess()Returns the value of theaccessrecord component.org.elasticsearch.common.bytes.BytesReferenceReturns the value of theapplicationDatarecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.static ProfileDocumentfromXContent(org.elasticsearch.xcontent.XContentParser parser) final inthashCode()Returns a hash code value for this object.longReturns the value of thelastSynchronizedrecord 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) uid()Returns the value of theuidrecord component.user()Returns the value of theuserrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
REALM_REF_PARSER
public static org.elasticsearch.xcontent.ConstructingObjectParser<org.elasticsearch.xpack.core.security.authc.Authentication.RealmRef,Void> REALM_REF_PARSER
-
-
Constructor Details
-
ProfileDocument
public ProfileDocument(String uid, boolean enabled, long lastSynchronized, ProfileDocument.ProfileDocumentUser user, Map<String, Object> access, org.elasticsearch.common.bytes.BytesReference applicationData) Creates an instance of aProfileDocumentrecord class.- Parameters:
uid- the value for theuidrecord componentenabled- the value for theenabledrecord componentlastSynchronized- the value for thelastSynchronizedrecord componentuser- the value for theuserrecord componentaccess- the value for theaccessrecord componentapplicationData- the value for theapplicationDatarecord component
-
-
Method Details
-
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
-
fromXContent
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uid
Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
lastSynchronized
public long lastSynchronized()Returns the value of thelastSynchronizedrecord component.- Returns:
- the value of the
lastSynchronizedrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
access
Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-
applicationData
public org.elasticsearch.common.bytes.BytesReference applicationData()Returns the value of theapplicationDatarecord component.- Returns:
- the value of the
applicationDatarecord component
-