类 AbstractIndicesPrivileges
java.lang.Object
org.easysearch.client.security.user.privileges.AbstractIndicesPrivileges
- 直接已知子类:
IndicesPrivileges
public abstract class AbstractIndicesPrivileges
extends java.lang.Object
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classAbstractIndicesPrivileges.FieldSecurity -
字段概要
字段 修饰符和类型 字段 说明 protected booleanallowRestrictedIndicesprotected java.util.Set<java.lang.String>indicesprotected java.util.Set<java.lang.String>privileges -
方法概要
修饰符和类型 方法 说明 booleanallowRestrictedIndices()True if the privileges cover restricted internal indices too.java.util.Set<java.lang.String>getIndices()The indices names covered by the privileges.java.util.Set<java.lang.String>getPrivileges()The privileges acting over indices.abstract booleanisUsingDocumentLevelSecurity()Iftruesome documents might not be visible.abstract booleanisUsingFieldLevelSecurity()Iftruesome document fields might not be visible.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
字段详细资料
-
indices
protected final java.util.Set<java.lang.String> indices -
privileges
protected final java.util.Set<java.lang.String> privileges -
allowRestrictedIndices
protected final boolean allowRestrictedIndices
-
-
方法详细资料
-
getIndices
public java.util.Set<java.lang.String> getIndices()The indices names covered by the privileges. -
getPrivileges
public java.util.Set<java.lang.String> getPrivileges()The privileges acting over indices. There is a canonical predefined set of such privileges, but theStringdatatype allows for flexibility in defining finer grained privileges. -
allowRestrictedIndices
public boolean allowRestrictedIndices()True if the privileges cover restricted internal indices too. Certain indices are reserved for internal services and should be transparent to ordinary users. For that matter, when granting privileges, you also have to toggle this flag to confirm that all indices, including restricted ones, are in the scope of this permission. By default this is false. -
isUsingDocumentLevelSecurity
public abstract boolean isUsingDocumentLevelSecurity()Iftruesome documents might not be visible. Only the documents matchingquerywill be readable. -
isUsingFieldLevelSecurity
public abstract boolean isUsingFieldLevelSecurity()Iftruesome document fields might not be visible.
-