public class GetUsersRequest extends AbstractCouchbaseRequest implements ConfigRequest
Get a user or list of users.
This request has three different ways to operate:
1) neither the domain nor the user is supplied: all users for all domains will be returned 2) just the domain is supplied: all the users will be returned 3) domain and user is supplied: only that user is returned
Note that if a userId is supplied, the domain is mandatory! Otherwise you’ll get a IllegalArgumentException
.
Modifier and Type | Method and Description |
---|---|
String |
path() |
static GetUsersRequest |
user(String username,
String password,
String domain,
String userId) |
static GetUsersRequest |
users(String username,
String password) |
static GetUsersRequest |
usersFromDomain(String username,
String password,
String domain) |
bucket, creationTime, dispatchHostname, dispatchHostname, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, dispatchHostname, dispatchHostname, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, username
creationTime
public static GetUsersRequest users(String username, String password)
public static GetUsersRequest usersFromDomain(String username, String password, String domain)
public static GetUsersRequest user(String username, String password, String domain, String userId)
public String path()
path
in interface ConfigRequest
Copyright © 2017 Couchbase, Inc.. All rights reserved.