|
12 | 12 | import org.elasticsearch.ElasticsearchSecurityException; |
13 | 13 | import org.elasticsearch.TransportVersion; |
14 | 14 | import org.elasticsearch.TransportVersions; |
15 | | -import org.elasticsearch.action.support.IndexComponentSelector; |
16 | 15 | import org.elasticsearch.common.Strings; |
17 | 16 | import org.elasticsearch.common.ValidationException; |
18 | 17 | import org.elasticsearch.common.bytes.BytesArray; |
@@ -1335,7 +1334,6 @@ public RemoteIndicesPrivileges build() { |
1335 | 1334 | */ |
1336 | 1335 | public static class IndicesPrivileges implements ToXContentObject, Writeable, Comparable<IndicesPrivileges> { |
1337 | 1336 |
|
1338 | | - private static final List<String> DEFAULT_SELECTORS = List.of(IndexComponentSelector.DATA.getKey()); |
1339 | 1337 | private static final IndicesPrivileges[] NONE = new IndicesPrivileges[0]; |
1340 | 1338 |
|
1341 | 1339 | private String[] indices; |
@@ -1430,7 +1428,6 @@ public boolean hasGrantedFields() { |
1430 | 1428 |
|
1431 | 1429 | @Override |
1432 | 1430 | public String toString() { |
1433 | | - // TODO selectors |
1434 | 1431 | StringBuilder sb = new StringBuilder("IndicesPrivileges["); |
1435 | 1432 | sb.append("indices=[").append(Strings.arrayToCommaDelimitedString(indices)); |
1436 | 1433 | sb.append("], allowRestrictedIndices=[").append(allowRestrictedIndices); |
@@ -1881,7 +1878,6 @@ public interface Fields { |
1881 | 1878 | ParseField APPLICATIONS = new ParseField("applications"); |
1882 | 1879 | ParseField RUN_AS = new ParseField("run_as"); |
1883 | 1880 | ParseField NAMES = new ParseField("names"); |
1884 | | - ParseField SELECTORS = new ParseField("selectors"); |
1885 | 1881 | ParseField ALLOW_RESTRICTED_INDICES = new ParseField("allow_restricted_indices"); |
1886 | 1882 | ParseField RESOURCES = new ParseField("resources"); |
1887 | 1883 | ParseField QUERY = new ParseField("query"); |
|
0 commit comments