[JAVA-1039] Deprecate DB.addUser and DB.removeUser Created: 07/Nov/13  Updated: 03/Apr/14  Resolved: 07/Nov/13

Status: Closed
Project: Java Driver
Component/s: API, Authentication
Affects Version/s: None
Fix Version/s: 2.12.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

With the introduction of actual commands to support adding, updating, and removing users, there is no longer a need for helper methods in the DB class to handle those activities, and in particular the addUser method is not expressive enough to handle the full range of updates that are now allowed. Given that, we are going to deprecate DB.addUser/removeUser, and have people use DB.runCommand directly and use the following commands:

  • addUser
  • updateUser
  • dropUser


 Comments   
Comment by auto [ 07/Nov/13 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1039: Deprecated DB.addUser and DB.removeUser
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b60d027762897ba7da27a61598b603f307c2797e

Generated at Thu Feb 08 08:53:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.