tenantIdAsPath

public static NodePath tenantIdAsPath(TenantId tenantId)

Converts a given tenant ID into a database node path.

When given a default instance, returns common as a node path. Otherwise, returns the string representation of the tenant ID: an email, a domain name, or a plain string value, depending on the kind of the ID.

The resulting value is a valid node path, i.e. does not contain illegal path characters.

Return

new NodePath

Parameters

tenantId

the tenant ID