
com.floragunn.searchguard.sgconf.impl.v7.ActionGroupsV7 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.v7;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.floragunn.searchguard.sgconf.Hideable;
import com.floragunn.searchguard.sgconf.StaticDefinable;
import com.floragunn.searchguard.sgconf.impl.v6.ActionGroupsV6;
public class ActionGroupsV7 implements Hideable, StaticDefinable {
private boolean reserved;
private boolean hidden;
@JsonProperty(value = "static")
private boolean _static;
private List allowed_actions = Collections.emptyList();
private String type;
private String description;
public ActionGroupsV7() {
super();
}
public ActionGroupsV7(String agName, ActionGroupsV6 ag6) {
reserved = ag6.isReserved();
hidden = ag6.isHidden();
allowed_actions = ag6.getPermissions();
type = agName.toLowerCase().contains("cluster")?"cluster":"index";
description = "Migrated from v6";
}
public ActionGroupsV7(String key, List allowed_actions) {
this.allowed_actions = allowed_actions;
type = "unknown";
description = "Migrated from v6 (legacy)";
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean isReserved() {
return reserved;
}
public void setReserved(boolean reserved) {
this.reserved = reserved;
}
public boolean isHidden() {
return hidden;
}
public void setHidden(boolean hidden) {
this.hidden = hidden;
}
public List getAllowed_actions() {
return allowed_actions;
}
public void setAllowed_actions(List allowed_actions) {
this.allowed_actions = allowed_actions;
}
@JsonProperty(value = "static")
public boolean isStatic() {
return _static;
}
@JsonProperty(value = "static")
public void setStatic(boolean _static) {
this._static = _static;
}
@Override
public String toString() {
return "ActionGroupsV7 [reserved=" + reserved + ", hidden=" + hidden + ", _static=" + _static + ", allowed_actions=" + allowed_actions
+ ", type=" + type + ", description=" + description + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy