 |
 |
| Domino Tips: |
|
 |
 |

JAVA
Undocumented Notes NAB utility Java Class
Prox Caceres 03.08.2002
Rating: -3.88- (out of 5)




Here's an easy way of getting a server, person, or mail-in document in the server addressbooks using an undocumented Java class in an agent. It would be cool if this was included in the future releases. The search is very flexible that if you search for a person in the NAB, you can pass the name in multiple ways (last first, last only provding last is unique, first last, first mi last,etc) and it still would yield good results. I tried using it on a Web app and it has a very fast response to the query plus I didn't need to code that much for it. Here are the details:
Code
Class:
NABUtils
Package:
lotus.notes.addins.ispy
Method detail:
public static Document getFirstDocumentFromAddressBook(Session session, int i, String s) throws NotesException
Session - NotesSession object
i - Search Type
where static constants:
SERVER_RECORD
PERSON_RECORD
MAIL_IN_RECORD
s - User common name
Session session = getSession();
NABUtils nab = new NABUtils();
Document doc = nab.getFirstDocumentFromAddressBook (session,nab.PERSON_RECORD,session.getCommonUserName());
 |

|
|
 |
|
 |
 |
 |
 |
| TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of . |
|
| |
All Rights Reserved, , TechTarget |
|
|
|
|
|