I'm currently creating a Java application that connects with a MongoDB and performs various data base operations such as find, insert and update from the application.
I created a dialog form from were a user can add multiple users (using method addUser(String username, char[] passwd, boolean readOnly) ) with both the read and readwrite roles. I would like to be able to list all users by clicking a button from this dialog box and then right clicking on a specific user to be able to delete the users. (using method removeUser(String username)).
The problem is that after several research on the net I cannot find any library that provides such method (to return all the users) or I have no idea on how to get this result.
This is an assignment however it is not a specific question since the assignment is more related to the database operations. However I would like to add this functionality since it will be quite cool. Any help is greatly appreciated.