Skip to content

Commit

Permalink
Update for elastic#30966
Browse files Browse the repository at this point in the history
  • Loading branch information
tvernum committed Jun 5, 2018
1 parent 63512f1 commit 8098b96
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
/**
* Action for deleting application privileges.
*/
public final class DeletePrivilegesAction
extends Action<DeletePrivilegesRequest, DeletePrivilegesResponse, DeletePrivilegesRequestBuilder> {
public final class DeletePrivilegesAction extends Action<DeletePrivilegesRequest, DeletePrivilegesResponse> {

public static final DeletePrivilegesAction INSTANCE = new DeletePrivilegesAction();
public static final String NAME = "cluster:admin/xpack/security/privilege/delete";
Expand All @@ -21,11 +20,6 @@ private DeletePrivilegesAction() {
super(NAME);
}

@Override
public DeletePrivilegesRequestBuilder newRequestBuilder(ElasticsearchClient client) {
return new DeletePrivilegesRequestBuilder(client, this);
}

@Override
public DeletePrivilegesResponse newResponse() {
return new DeletePrivilegesResponse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
/**
* Builder for {@link DeletePrivilegesRequest}
*/
public final class DeletePrivilegesRequestBuilder
extends ActionRequestBuilder<DeletePrivilegesRequest, DeletePrivilegesResponse, DeletePrivilegesRequestBuilder>
public final class DeletePrivilegesRequestBuilder extends ActionRequestBuilder<DeletePrivilegesRequest, DeletePrivilegesResponse>
implements WriteRequestBuilder<DeletePrivilegesRequestBuilder> {

public DeletePrivilegesRequestBuilder(ElasticsearchClient client, DeletePrivilegesAction action) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Action for retrieving one or more application privileges from the security index
*/
public final class GetPrivilegesAction extends Action<GetPrivilegesRequest, GetPrivilegesResponse, GetPrivilegesRequestBuilder> {
public final class GetPrivilegesAction extends Action<GetPrivilegesRequest, GetPrivilegesResponse> {

public static final GetPrivilegesAction INSTANCE = new GetPrivilegesAction();
public static final String NAME = "cluster:admin/xpack/security/privilege/get";
Expand All @@ -20,11 +20,6 @@ private GetPrivilegesAction() {
super(NAME);
}

@Override
public GetPrivilegesRequestBuilder newRequestBuilder(ElasticsearchClient client) {
return new GetPrivilegesRequestBuilder(client, this);
}

@Override
public GetPrivilegesResponse newResponse() {
return new GetPrivilegesResponse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
/**
* Builder for {@link GetPrivilegesRequest}
*/
public final class GetPrivilegesRequestBuilder
extends ActionRequestBuilder<GetPrivilegesRequest, GetPrivilegesResponse, GetPrivilegesRequestBuilder> {
public final class GetPrivilegesRequestBuilder extends ActionRequestBuilder<GetPrivilegesRequest, GetPrivilegesResponse> {

public GetPrivilegesRequestBuilder(ElasticsearchClient client, GetPrivilegesAction action) {
super(client, action, new GetPrivilegesRequest());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Action for putting (adding/updating) one or more application privileges.
*/
public final class PutPrivilegesAction extends Action<PutPrivilegesRequest, PutPrivilegesResponse, PutPrivilegesRequestBuilder> {
public final class PutPrivilegesAction extends Action<PutPrivilegesRequest, PutPrivilegesResponse> {

public static final PutPrivilegesAction INSTANCE = new PutPrivilegesAction();
public static final String NAME = "cluster:admin/xpack/security/privilege/put";
Expand All @@ -20,11 +20,6 @@ private PutPrivilegesAction() {
super(NAME);
}

@Override
public PutPrivilegesRequestBuilder newRequestBuilder(ElasticsearchClient client) {
return new PutPrivilegesRequestBuilder(client, this);
}

@Override
public PutPrivilegesResponse newResponse() {
return new PutPrivilegesResponse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
/**
* Request builder for {@link PutPrivilegesRequest}
*/
public final class PutPrivilegesRequestBuilder
extends ActionRequestBuilder<PutPrivilegesRequest, PutPrivilegesResponse, PutPrivilegesRequestBuilder>
public final class PutPrivilegesRequestBuilder extends ActionRequestBuilder<PutPrivilegesRequest, PutPrivilegesResponse>
implements WriteRequestBuilder<PutPrivilegesRequestBuilder> {

public PutPrivilegesRequestBuilder(ElasticsearchClient client, PutPrivilegesAction action) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public void setup() {
client = new NoOpClient(getTestName()) {
@Override
protected <Request extends ActionRequest, Response extends ActionResponse,
RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>>
void doExecute(Action<Request, Response, RequestBuilder> action, Request request, ActionListener<Response> listener) {
RequestBuilder extends ActionRequestBuilder<Request, Response>>
void doExecute(Action<Request, Response> action, Request request, ActionListener<Response> listener) {
NativePrivilegeStoreTests.this.requests.add(request);
NativePrivilegeStoreTests.this.listener.set(listener);
}
Expand Down

0 comments on commit 8098b96

Please sign in to comment.