public final class NamesDatabase extends BaseDatabase implements AddressBook
| Constructor and Description |
|---|
NamesDatabase(DSession session,
NotesLocation location)
Constructor.
|
NamesDatabase(String locationUri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator |
getContacts()
Returns an iterator over all contacts in the Address Book.
|
boolean |
isPrivate()
Indicates if a database is a Personal Address Book.
|
boolean |
isPublic()
Indicates if a database is a Public Address Book.
|
protected void |
registerMappers()
Implemented by derived class; must register all mappers.
|
create, getDatabase, getSession, getTitle, map, map, map, register, saveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitlepublic NamesDatabase(String locationUri) throws IOException, DNotesException
locationUri - URI of location of database.IOException - if the location is not a valid notes locationDNotesException - if the database cannot be openedpublic NamesDatabase(DSession session, NotesLocation location) throws DNotesException
session - an existing domingo sessionlocation - location of database.DNotesException - if the uri is invalid or the database cannot be
openedpublic Iterator getContacts()
Should return in alphabetical order
getContacts in interface AddressBookAddressBook.getContacts()public boolean isPrivate()
isPrivate in interface AddressBooktrue if the database is a Personal Address Book,
false if the database is not Personal Address BookAddressBook.isPrivate()public boolean isPublic()
isPublic in interface AddressBooktrue if the database is a Public Address Book,
false if the database is not Public Address BookAddressBook.isPublic()protected void registerMappers()
throws MapperRegistrationException
registerMappers in class BaseDatabaseMapperRegistrationException - if an error occurred during
registering a mapperBaseDatabase.registerMappers()Copyright © 2005–2020. All rights reserved.