简体   繁体   English

如何使用Lotus Notes Java API访问Lotus Notes中的“联系人”文件夹

[英]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. 我的要求是从Lotus Notes中获取一位用户的“所有联系方式”详细信息。 I am using Notes API. 我正在使用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
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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