Package com.mongodb.operation
Class UpdateUserOperation
java.lang.Object
com.mongodb.operation.UpdateUserOperation
- All Implemented Interfaces:
AsyncWriteOperation<Void>,WriteOperation<Void>
@Deprecated
public class UpdateUserOperation
extends Object
implements AsyncWriteOperation<Void>, WriteOperation<Void>
Deprecated.
An operation that updates a user.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserOperation(MongoCredential credential, boolean readOnly) Deprecated.Construct a new instance.UpdateUserOperation(MongoCredential credential, boolean readOnly, WriteConcern writeConcern) Deprecated.Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionexecute(WriteBinding binding) Deprecated.General execute which can return anything of type TvoidexecuteAsync(AsyncWriteBinding binding, SingleResultCallback<Void> callback) Deprecated.General execute which can return anything of type TDeprecated.Gets the users credentials.booleanDeprecated.Returns true if the user is a readOnly user.
-
Constructor Details
-
UpdateUserOperation
Deprecated.Construct a new instance.- Parameters:
credential- the users credentials.readOnly- true if the user is a readOnly user.
-
UpdateUserOperation
Deprecated.Construct a new instance.- Parameters:
credential- the users credentials.readOnly- true if the user is a readOnly user.writeConcern- the write concern- Since:
- 3.4
-
-
Method Details
-
getCredential
Deprecated.Gets the users credentials.- Returns:
- the users credentials.
-
isReadOnly
public boolean isReadOnly()Deprecated.Returns true if the user is a readOnly user.- Returns:
- true if the user is a readOnly user.
-
execute
Deprecated.Description copied from interface:WriteOperationGeneral execute which can return anything of type T- Specified by:
executein interfaceWriteOperation<Void>- Parameters:
binding- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
Deprecated.Description copied from interface:AsyncWriteOperationGeneral execute which can return anything of type T- Specified by:
executeAsyncin interfaceAsyncWriteOperation<Void>- Parameters:
binding- the binding to execute in the context ofcallback- the callback to be called when the operation has been executed
-
CommandWriteOperationdirectly or the mongod shell helpers.