Manage Learn to apply best practices and optimize your operations.

Undocumented Notes NAB utility Java Class

Get a server, person, or mail-in document in the server addressbooks using an undocumented java class in an agent.

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:
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());
This was last published in March 2002

Dig Deeper on Domino Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close