NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Enabling a disabled user can be performed using the
EnableUserRequest request = new EnableUserRequest("enable_user", RefreshPolicy.NONE); boolean response = client.security().enableUser(RequestOptions.DEFAULT, request);
Boolean indicates the request status.
This request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once the request
has completed the
ActionListener is called back using the
if the execution successfully completed or using the
onFailure method if
A typical listener for a
Boolean looks like: