Package com.floragunn.searchguard.sgconf
Class ConfigModelV7.ExcludedIndexPermissions
- java.lang.Object
-
- com.floragunn.searchguard.sgconf.ConfigModelV7.ExcludedIndexPermissions
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
- Enclosing class:
- ConfigModelV7
public static class ConfigModelV7.ExcludedIndexPermissions extends Object implements org.elasticsearch.common.xcontent.ToXContentObject
-
-
Constructor Summary
Constructors Constructor Description ExcludedIndexPermissions(String indexPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigModelV7.ExcludedIndexPermissionsaddPerm(Set<String> perms)booleanequals(Object obj)Set<String>getPerms()inthashCode()booleanmatches(Set<String> indices, User user, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, org.elasticsearch.cluster.service.ClusterService cs)voidremoveMatches(Set<String> indices, User user, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, org.elasticsearch.cluster.service.ClusterService cs)StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
-
-
Constructor Detail
-
ExcludedIndexPermissions
public ExcludedIndexPermissions(String indexPattern)
-
-
Method Detail
-
addPerm
public ConfigModelV7.ExcludedIndexPermissions addPerm(Set<String> perms)
-
matches
public boolean matches(Set<String> indices, User user, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, org.elasticsearch.cluster.service.ClusterService cs) throws StringInterpolationException
- Throws:
StringInterpolationException
-
removeMatches
public void removeMatches(Set<String> indices, User user, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver, org.elasticsearch.cluster.service.ClusterService cs) throws StringInterpolationException
- Throws:
StringInterpolationException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
-