Class: VzdService

The Verzeichnisdienst (VZD) is the main directory in the TI for searching practitioners. It is used to find communication details and cryptographic certificates for encryption and signature validation.

The VzdService can be accessed from a Ti365Session via the vzdService property. It is possible to search the VZD by a query object or by a raw LDAP Query. The

Examples

Searching via query object

const query: VzdSearchQuery = { firstName: "Petra", lastName: "Müller" };
const result = await vzdClient.search(query)

Searching via ldap query

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new VzdService(ti365Session): VzdService

Parameters

Name Type
ti365Session Ti365Session

Returns

VzdService

Properties

cache

cache: VzdEntry[] = []

Methods

search(query, options?): Promise<VzdEntry[]>

Parameters

Name Type
query VzdSearchQuery
options? VzdSearchOptions

Returns

Promise<VzdEntry[]>


searchWithLdapQuery

searchWithLdapQuery(query, options?): Promise<VzdEntry[]>

Parameters

Name Type
query string
options? VzdLdapSearchOptions

Returns

Promise<VzdEntry[]>


fetchByMail

fetchByMail(mailAddress, noCache?): Promise<undefined | VzdEntry>

Parameters

Name Type Default value
mailAddress string undefined
noCache boolean false

Returns

Promise<undefined | VzdEntry>


fetchByMails

fetchByMails(mails): Promise<VzdEntry[]>

Parameters

Name Type
mails string[]

Returns

Promise<VzdEntry[]>