Class AbstractIndicesPrivileges.FieldSecurity
- java.lang.Object
-
- org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges.FieldSecurity
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
- Enclosing class:
- AbstractIndicesPrivileges
public static class AbstractIndicesPrivileges.FieldSecurity extends java.lang.Object implements ToXContentObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Set<java.lang.String>getDeniedFields()The document fields that cannot be accessed or queried.java.util.Set<java.lang.String>getGrantedFields()The document fields that can be read or queried.inthashCode()booleanisUsingFieldLevelSecurity()java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Method Detail
-
getGrantedFields
public java.util.Set<java.lang.String> getGrantedFields()
The document fields that can be read or queried. Can be null, in this case all the document's fields are granted access to. Can also be empty, in which case no fields are granted access to.
-
getDeniedFields
public java.util.Set<java.lang.String> getDeniedFields()
The document fields that cannot be accessed or queried. Can be null or empty, in which case no fields are denied.
-
isUsingFieldLevelSecurity
public boolean isUsingFieldLevelSecurity()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-