Package com.mongodb.operation
Class DropUserOperation
java.lang.Object
com.mongodb.operation.DropUserOperation
- All Implemented Interfaces:
AsyncWriteOperation<Void>
,WriteOperation<Void>
@Deprecated
public class DropUserOperation
extends Object
implements AsyncWriteOperation<Void>, WriteOperation<Void>
Deprecated.
An operation to remove a user.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDropUserOperation
(String databaseName, String userName) Deprecated.Construct a new instance.DropUserOperation
(String databaseName, String userName, WriteConcern writeConcern) Deprecated.Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(WriteBinding binding) Deprecated.General execute which can return anything of type Tvoid
executeAsync
(AsyncWriteBinding binding, SingleResultCallback<Void> callback) Deprecated.General execute which can return anything of type T
-
Constructor Details
-
DropUserOperation
Deprecated.Construct a new instance.- Parameters:
databaseName
- the name of the database for the operation.userName
- the name of the user to be dropped.
-
DropUserOperation
Deprecated.Construct a new instance.- Parameters:
databaseName
- the name of the database for the operation.userName
- the name of the user to be dropped.writeConcern
- the write concern- Since:
- 3.4
-
-
Method Details
-
execute
Deprecated.Description copied from interface:WriteOperation
General execute which can return anything of type T- Specified by:
execute
in 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:AsyncWriteOperation
General execute which can return anything of type T- Specified by:
executeAsync
in interfaceAsyncWriteOperation<Void>
- Parameters:
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executed
-
CommandWriteOperation
directly or the mongod shell helpers.