final class UserOperationHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
UserOperationHelper() |
Modifier and Type | Method and Description |
---|---|
(package private) static BsonDocument |
asCollectionInsertDocument(MongoCredential credential,
boolean readOnly) |
(package private) static BsonDocument |
asCollectionQueryDocument(MongoCredential credential) |
(package private) static BsonDocument |
asCollectionUpdateDocument(MongoCredential credential,
boolean readOnly) |
(package private) static BsonDocument |
asCommandDocument(MongoCredential credential,
boolean readOnly,
java.lang.String commandName) |
private static java.lang.String |
getRoleName(MongoCredential credential,
boolean readOnly) |
(package private) static void |
translateUserCommandException(MongoCommandException e) |
(package private) static SingleResultCallback<java.lang.Void> |
userCommandCallback(SingleResultCallback<java.lang.Void> wrappedCallback) |
static BsonDocument asCommandDocument(MongoCredential credential, boolean readOnly, java.lang.String commandName)
private static java.lang.String getRoleName(MongoCredential credential, boolean readOnly)
static BsonDocument asCollectionQueryDocument(MongoCredential credential)
static BsonDocument asCollectionUpdateDocument(MongoCredential credential, boolean readOnly)
static BsonDocument asCollectionInsertDocument(MongoCredential credential, boolean readOnly)
static void translateUserCommandException(MongoCommandException e)
static SingleResultCallback<java.lang.Void> userCommandCallback(SingleResultCallback<java.lang.Void> wrappedCallback)