CommandWriteOperation directly or the mongod shell helpers.@Deprecated public class UpdateUserOperation extends java.lang.Object implements AsyncWriteOperation<java.lang.Void>, WriteOperation<java.lang.Void>
| Constructor and Description |
|---|
UpdateUserOperation(MongoCredential credential,
boolean readOnly)
Deprecated.
Construct a new instance.
|
UpdateUserOperation(MongoCredential credential,
boolean readOnly,
WriteConcern writeConcern)
Deprecated.
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Void |
execute(WriteBinding binding)
Deprecated.
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<java.lang.Void> callback)
Deprecated.
General execute which can return anything of type T
|
MongoCredential |
getCredential()
Deprecated.
Gets the users credentials.
|
boolean |
isReadOnly()
Deprecated.
Returns true if the user is a readOnly user.
|
public UpdateUserOperation(MongoCredential credential, boolean readOnly)
credential - the users credentials.readOnly - true if the user is a readOnly user.public UpdateUserOperation(MongoCredential credential, boolean readOnly, WriteConcern writeConcern)
credential - the users credentials.readOnly - true if the user is a readOnly user.writeConcern - the write concernpublic MongoCredential getCredential()
public boolean isReadOnly()
public java.lang.Void execute(WriteBinding binding)
WriteOperationexecute in interface WriteOperation<java.lang.Void>binding - the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<java.lang.Void> callback)
AsyncWriteOperationexecuteAsync in interface AsyncWriteOperation<java.lang.Void>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executedCopyright © 2010 - 2023 Adobe. All Rights Reserved