简体   繁体   中英

How to access the Contacts Folder in Lotus Notes Using Lotus Notes Java API

My requirement is to get the All the Contact details od one user from Lotus Notes. I am using Notes API. I want the code sample for getting contact details.

Out of my head...

Database db = session.getDatabase("names.nsf");
NotesViewEntryCollection nvec = db.getView("People").getAllEntries();
for(int i=0;i<nvec.getCount();i++){
    doc = nvec.getNthEntry(i).getDocument();
    // get value of doc here
    // recycle
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM