addServerToAddressBook (NotesRegistration - Java)

Creates a Server record in a Domino® Directory based on a server ID file and optionally attaches the ID file.

Defined in

NotesRegistration

Syntax

public boolean addServerToAddressBook(String idfile, String server, String domain)
    throws NotesException
public boolean addServerToAddressBook(String idfile, String server, String domain, String userpw)
    throws NotesException

public boolean addServerToAddressBook(String idfile, String server, String domain, String userpw, String network, String adminname, String title, String location, String comment)
    throws NotesException

Parameters

String idfile

The ID file for the server to be added to the Domino® Directory; specify the full path, for example, c:\notes\data\server.id.

String server

The name of the server to be added to the Domino® Directory.

String domain

The domain of the server to be added to the Domino® Directory.

String userpw

The password for the server ID file.

String network

The notes named network (NNN) on which the server runs.

String adminname

The full name of the administrator of the server.

String title

A value for the title field of the Domino® Directory record.

String location

A value for the location field of the Domino® Directory record.

String comment

A value for the comment field of the Domino® Directory record.

Return value

boolean

True if the operation is successful; false otherwise.

Usage

Set StoreIDInAddressBook true to attach the ID to the Domino® Directory record.

This method acts on the Domino® Directory (names.nsf) for the server specified by RegistrationServer, or names.nsf in the local Domino® data directory if this property is not set.

This method occurs automatically with registerNewServer if UpdateAddressBook is true.

Example