Vai al contenuto

Organization

Organization

Abstract

Summary of the Organization class

Class Description

The class represents an Organization inside eLegere. An Organization is a container for multiple domains.

The class builds a new Domain. From a Domain name, the class identifies the Domain id. Afterwards, the class instantiates a new Domain using the Domain id. The organization class does not currently offer methods other than the getDomain method. The Organization class works only as an intermediary class for the Domain class. It exist mostly for forward compatibility reasons. You can use the environment.getOrganization method to create an Organization object in its place.

Note

The class requires the initialization through the elegere object.

Methods

getDomain Promise<Domain>

1
getDomain(domainName: strings): Promise<Domain>

getDomain() fetches the Id of the Domain through the Domain name within the current Organization. The method instantiates a new Domain using the previous identified Domain as example.

For Example:

1
const domain = await organization.getDomain("Vesenda - Enterprise")
Parameters

domainName

string The name of the Domain.

Return

Returns a Promise for a Domain object.