类 IndicesPrivileges
java.lang.Object
org.easysearch.client.security.user.privileges.AbstractIndicesPrivileges
org.easysearch.client.security.user.privileges.IndicesPrivileges
- 所有已实现的接口:
org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public final class IndicesPrivileges extends AbstractIndicesPrivileges implements org.easysearch.common.xcontent.ToXContentObject
Represents privileges over indices. There is a canonical set of privilege
names (eg.
IndicesPrivileges#READ_PRIVILEGE_NAME) but there is
flexibility in the definition of finer grained, more specialized, privileges.
This also encapsulates field and document level security privileges. These
allow to control what fields or documents are readable or queryable.-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classIndicesPrivileges.Builder从类继承的嵌套类/接口 org.easysearch.client.security.user.privileges.AbstractIndicesPrivileges
AbstractIndicesPrivileges.FieldSecurity从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
从类继承的字段 org.easysearch.client.security.user.privileges.AbstractIndicesPrivileges
allowRestrictedIndices, indices, privileges从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS -
方法概要
修饰符和类型 方法 说明 static IndicesPrivileges.Builderbuilder()booleanequals(java.lang.Object o)static IndicesPrivilegesfromXContent(org.easysearch.common.xcontent.XContentParser parser)AbstractIndicesPrivileges.FieldSecuritygetFieldSecurity()java.lang.StringgetQuery()A query limiting the visible documents in the indices.inthashCode()booleanisUsingDocumentLevelSecurity()Iftruesome documents might not be visible.booleanisUsingFieldLevelSecurity()Iftruesome document fields might not be visible.java.lang.StringtoString()org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)从类继承的方法 org.easysearch.client.security.user.privileges.AbstractIndicesPrivileges
allowRestrictedIndices, getIndices, getPrivileges从类继承的方法 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject
isFragment
-
方法详细资料
-
getFieldSecurity
-
getQuery
@Nullable public java.lang.String getQuery()A query limiting the visible documents in the indices. Can be null, in which case all documents are visible. -
isUsingDocumentLevelSecurity
public boolean isUsingDocumentLevelSecurity()Iftruesome documents might not be visible. Only the documents matchingquerywill be readable. -
isUsingFieldLevelSecurity
public boolean isUsingFieldLevelSecurity()Iftruesome document fields might not be visible. -
equals
public boolean equals(java.lang.Object o)- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中java.lang.Object
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-
fromXContent
-
builder
-