Tenants

Introduction

Complete applications are multi-tenant. This means that the application is built to support multiple tenants who each have their own set of settings/features/translations etc. Every tenant can configure the following:

  • Translations
  • Settings
  • Base-data values
  • Users
  • Roles
  • Modules

@capturum/complete provides CRUD functionality and an apiService to manage these tenants.

Interface

export class Tenant {
  id?: string;
  name: string;
  email: string;
  modules: any[];
}

TenantListComponent

route: /admin/tenants

The TenantListComponent is a standard complete list component. This means that it’s a page which extends the BaseListComponent of the @capturum/shared package. The HTML contains an CapturumInfoTable component. It gets the data from the TenantService which extends the ApiService class of the @capturum/api package

TenantDetailComponent

route: /admin/tenants/:id

The TenantDetailComponent is the detail page of a tenant. here you can create/edit a tenant.