Module org.elasticsearch.xcore
Class IndicesAccessControl.IndexAccessControl
java.lang.Object
org.elasticsearch.xpack.core.security.authz.accesscontrol.IndicesAccessControl.IndexAccessControl
- All Implemented Interfaces:
CacheKey
- Enclosing class:
IndicesAccessControl
Encapsulates the field and document permissions for an index.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexAccessControl(FieldPermissions fieldPermissions, DocumentPermissions documentPermissions) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleaninthashCode()limitIndexAccessControl(IndicesAccessControl.IndexAccessControl limitedByIndexAccessControl) Returns an instance ofIndicesAccessControl.IndexAccessControl, where the privileges forthisobject are constrained by the privileges contained in the provided parameter.
Allowed fields for this index permission would be an intersection of allowed fields.
Allowed documents for this index permission would be an intersection of allowed documents.toString()
-
Field Details
-
ALLOW_ALL
-
-
Constructor Details
-
IndexAccessControl
public IndexAccessControl(FieldPermissions fieldPermissions, DocumentPermissions documentPermissions)
-
-
Method Details
-
getFieldPermissions
- Returns:
- The allowed fields for this index permissions.
-
getDocumentPermissions
- Returns:
- The allowed documents expressed as a query for this index permission. If
nullis returned then this means that there are no document level restrictions
-
limitIndexAccessControl
public IndicesAccessControl.IndexAccessControl limitIndexAccessControl(IndicesAccessControl.IndexAccessControl limitedByIndexAccessControl) Returns an instance ofIndicesAccessControl.IndexAccessControl, where the privileges forthisobject are constrained by the privileges contained in the provided parameter.
Allowed fields for this index permission would be an intersection of allowed fields.
Allowed documents for this index permission would be an intersection of allowed documents.- Parameters:
limitedByIndexAccessControl-IndicesAccessControl.IndexAccessControl- Returns:
IndicesAccessControl.IndexAccessControl- See Also:
-
toString
-
buildCacheKey
public void buildCacheKey(StreamOutput out, SecurityQueryTemplateEvaluator.DlsQueryEvaluationContext context) throws IOException - Specified by:
buildCacheKeyin interfaceCacheKey- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-