I am trying to Delete a User using Lotus Domino Java API. I have an Agent running on Domino admin4.nsf database to detect the events for Deleted Documents. The problem is if I delete the User through Domino Administrator the Delete Event is reported to admin4.nsf and my Agent is getting the Event but if I delete the User programatically using Lotus Domino API I am not able to get the Delete Event from admin4.nsf. I don’t even know whether the Delete Event is generated and reported to admin4.nsf or not…
I don’t know why a Delete Event is not generated when I delete the user Programatically…
Please Help!!
Subject: Delete Document not generating an Event in admin4.nsf…
How are you deleting the person programmatically? Are you using the AdministrationProcess class and deleteUser()?
Subject: RE: Delete Document not generating an Event in admin4.nsf…
Thanx Stan for your reply…
No I am not using the AdministrationProcess Class. I am first searching for the Person Document using the following line:
Database db = Session.getDatabase(ServerName, “names.nsf”);
DocumentCollection dc = db.search(queryString);
Document doc = dc.getFirstDocument();
//doc now contains the Document I want to delete
doc.remove(true);
Once I get the document corresponding to the user I want to delete, I use the remove(boolean b) method of lotus.domino.Document class to remove the Document.
This way the user is deleted from the Domino Directory but the Event is not reported in admin4.nsf.
Please give me your inputs in more detail. Thank You.
Subject: RE: Delete Document not generating an Event in admin4.nsf…
Deleting a Person Document is not the way you delete a user. Use the AdministrationProcess class.
Subject: RE: Delete Document not generating an Event in admin4.nsf…
Hi Stan,
Thanx for the fast reply. Actually, I need a method of deleting users that works on Lotus Domino versions prior to 6.5. AdministrationProcess class is new with versions 6.5 and I can't use it for prior versions. Do you have any idea of how to delete users on Domino without using Administratioin class and still getting Events in admin4.nsf??
Thank You.