Class DropUserOperation

  • All Implemented Interfaces:
    >, >

    public class DropUserOperation
    extends 
    implements >, >
    Deprecated.
    use CommandWriteOperation directly or the mongod shell helpers.
    An operation to remove a user.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
       databaseName,  userName)
      Deprecated.
      Construct a new instance.
       databaseName,  userName, WriteConcern writeConcern)
      Deprecated.
      Construct a new instance.
    • Constructor Detail

      • DropUserOperation

        public DropUserOperation​( databaseName,
                                  userName)
        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

        public DropUserOperation​( databaseName,
                                  userName,
                                 WriteConcern writeConcern)
        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 Detail

      • execute

        public  execute​(WriteBinding binding)
        Deprecated.
        Description copied from interface: WriteOperation
        General execute which can return anything of type T
        Specified by:
        >
        Parameters:
        binding - the binding to execute in the context of
        Returns:
        T, the result of the execution
      • executeAsync

        public void executeAsync​(AsyncWriteBinding binding,
                                 > callback)
        Deprecated.
        Description copied from interface: AsyncWriteOperation
        General execute which can return anything of type T
        Specified by:
        >
        Parameters:
        binding - the binding to execute in the context of
        callback - the callback to be called when the operation has been executed