wm.ln.dbDirectory:getFirstDatabase
This flow service returns the first database from a server or the local directory, using the file type specified. The returned database is closed. If the database is not opened only a subset of its methods are available. Each time this method is called, the database directory is reset and a new search is conducted. If template files are being searched, for example, a new call to getFirstDatabase with the dbTypeparameter set to DATABASE starts searching the directory from the beginning, this time for database files.
Input Parameters
dbDirectory | DbDirectory The lotus.domino.DbDirectory object representing the directory where the first database is to be fetched. |
dbType | String Indicates the kind of database file you want to retrieve: ![*](chapterTOC_bullet.png) DbDirectory.DATABASE means any database (.nsf, .nsg, or .nsh file) ![*](chapterTOC_bullet.png) DbDirectory.TEMPLATE means any template (.ntf file) ![*](chapterTOC_bullet.png) DbDirectory.REPLICA_CANDIDATE means any database or template not disabled for replication ![*](chapterTOC_bullet.png) DbDirectory.TEMPLATE_CANDIDATE means any database or template |
Output Parameters
database | Database The first database of the specified file type located in the directory, or null if the directory contains none. |