Skip to content

Commit 2a36936

Browse files
committed
Undo
1 parent da7fb70 commit 2a36936

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/PutRoleRequestBuilder.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;
1515

1616
import java.io.IOException;
17-
import java.util.List;
1817
import java.util.Map;
1918

2019
/**
@@ -80,19 +79,6 @@ public PutRoleRequestBuilder addIndices(
8079
return this;
8180
}
8281

83-
public PutRoleRequestBuilder addIndices(
84-
String[] indices,
85-
String[] privileges,
86-
String[] grantedFields,
87-
String[] deniedFields,
88-
@Nullable BytesReference query,
89-
boolean allowRestrictedIndices,
90-
List<String> selectors
91-
) {
92-
request.addIndex(indices, privileges, grantedFields, deniedFields, query, allowRestrictedIndices);
93-
return this;
94-
}
95-
9682
public PutRoleRequestBuilder metadata(Map<String, Object> metadata) {
9783
request.metadata(metadata);
9884
return this;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/RoleDescriptor.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.elasticsearch.ElasticsearchSecurityException;
1313
import org.elasticsearch.TransportVersion;
1414
import org.elasticsearch.TransportVersions;
15-
import org.elasticsearch.action.support.IndexComponentSelector;
1615
import org.elasticsearch.common.Strings;
1716
import org.elasticsearch.common.ValidationException;
1817
import org.elasticsearch.common.bytes.BytesArray;
@@ -1335,7 +1334,6 @@ public RemoteIndicesPrivileges build() {
13351334
*/
13361335
public static class IndicesPrivileges implements ToXContentObject, Writeable, Comparable<IndicesPrivileges> {
13371336

1338-
private static final List<String> DEFAULT_SELECTORS = List.of(IndexComponentSelector.DATA.getKey());
13391337
private static final IndicesPrivileges[] NONE = new IndicesPrivileges[0];
13401338

13411339
private String[] indices;
@@ -1430,7 +1428,6 @@ public boolean hasGrantedFields() {
14301428

14311429
@Override
14321430
public String toString() {
1433-
// TODO selectors
14341431
StringBuilder sb = new StringBuilder("IndicesPrivileges[");
14351432
sb.append("indices=[").append(Strings.arrayToCommaDelimitedString(indices));
14361433
sb.append("], allowRestrictedIndices=[").append(allowRestrictedIndices);
@@ -1881,7 +1878,6 @@ public interface Fields {
18811878
ParseField APPLICATIONS = new ParseField("applications");
18821879
ParseField RUN_AS = new ParseField("run_as");
18831880
ParseField NAMES = new ParseField("names");
1884-
ParseField SELECTORS = new ParseField("selectors");
18851881
ParseField ALLOW_RESTRICTED_INDICES = new ParseField("allow_restricted_indices");
18861882
ParseField RESOURCES = new ParseField("resources");
18871883
ParseField QUERY = new ParseField("query");

0 commit comments

Comments
 (0)