
com.floragunn.searchguard.sgconf.impl.v6.RoleV6 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of search-guard-7 Show documentation
Show all versions of search-guard-7 Show documentation
Provide access control related features for Elasticsearch 6
The newest version!
package com.floragunn.searchguard.sgconf.impl.v6;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.floragunn.searchguard.sgconf.Hideable;
public class RoleV6 implements Hideable {
private boolean readonly;
private boolean hidden;
private List cluster = Collections.emptyList();
private Map tenants = Collections.emptyMap();
private Map indices = Collections.emptyMap();
public static class Index {
@JsonIgnore
private final Map> types = new HashMap<>();
@JsonAnySetter
void setTypes0(String key, List value) {
types.put(key, value);
}
@JsonAnyGetter
public Map> getTypes() {
return types;
}
private String _dls_;
private List _fls_;
private List _masked_fields_;
public String get_dls_() {
return _dls_;
}
public List get_fls_() {
return _fls_;
}
public List get_masked_fields_() {
return _masked_fields_;
}
@Override
public String toString() {
return "Index [types=" + types + ", _dls_=" + _dls_ + ", _fls_=" + _fls_ + ", _masked_fields_=" + _masked_fields_ + "]";
}
}
public boolean isReadonly() {
return readonly;
}
public void setReadonly(boolean readonly) {
this.readonly = readonly;
}
public boolean isHidden() {
return hidden;
}
public void setHidden(boolean hidden) {
this.hidden = hidden;
}
public List getCluster() {
return cluster;
}
public void setCluster(List cluster) {
this.cluster = cluster;
}
public Map getTenants() {
return tenants;
}
public void setTenants(Map tenants) {
this.tenants = tenants;
}
public Map getIndices() {
return indices;
}
public void setIndices(Map indices) {
this.indices = indices;
}
@Override
public String toString() {
return "Role [readonly=" + readonly + ", hidden=" + hidden + ", cluster=" + cluster + ", tenants=" + tenants + ", indices=" + indices + "]";
}
@JsonIgnore
public boolean isReserved() {
return readonly;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy