Module org.elasticsearch.xcore
Record Class AuthorizationEngine.PrivilegesCheckResult.Details
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.security.authz.AuthorizationEngine.PrivilegesCheckResult.Details
- Enclosing class:
AuthorizationEngine.PrivilegesCheckResult
public static record AuthorizationEngine.PrivilegesCheckResult.Details(Map<String,Boolean> cluster, Map<String,ResourcePrivileges> index, Map<String,Collection<ResourcePrivileges>> application)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDetails(Map<String, Boolean> cluster, Map<String, ResourcePrivileges> index, Map<String, Collection<ResourcePrivileges>> application) Creates an instance of aDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationrecord component.cluster()Returns the value of theclusterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Details
public Details(Map<String, Boolean> cluster, Map<String, ResourcePrivileges> index, Map<String, Collection<ResourcePrivileges>> application) Creates an instance of aDetailsrecord class.- Parameters:
cluster- the value for theclusterrecord componentindex- the value for theindexrecord componentapplication- the value for theapplicationrecord component
-
-
Method Details
-
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). -
cluster
Returns the value of theclusterrecord component.- Returns:
- the value of the
clusterrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
application
Returns the value of theapplicationrecord component.- Returns:
- the value of the
applicationrecord component
-