Skip to content

BaseReadTemplate

Presents the parts of a Template that do not depend on the type of its Items: its definition, Grants, Roles and Relations.

Accept this where only the Template itself is needed, for example to create a child of it. Unlike ReadTemplate it never mentions an Item type, so checking a generated Template against it does not compare the generated Item types, and through their Relations the whole graph of Items, against ReadItem.

ReadTemplate

readonly definition: TemplateDefinition

The complete Template definition.


readonly grants: TemplateGrantInstance[]

Grants declared on the Template, one per granted Role.


readonly isExtensible: boolean

Whether parent Items may extend this Template’s Properties for their children; see ReadTemplateExtension.


readonly prn: string

The PRN identifying this Template, for example prn::identity:template/user.


readonly properties: Readonly<Record<string, PropertyDefinition>>

Property definitions declared by the Template, keyed by Property key.


readonly relations: Record<string, RelationDefinition>

Relations declared from and to this Template, keyed by Relation key.


readonly roles: Record<string, TemplateRoleInstance>

Template Roles declared by the Template, keyed by Role key.