public interface MultiTenancyService
Modifier and Type | Method and Description |
---|---|
Tenant |
addTenant(Tenant tenant)
Add a new tenant
|
Collection<Tenant> |
addTenants(Collection<Tenant> tenants,
boolean ignoreAlreadyExistTenant)
Add new tenants
|
Tenant |
deleteTenant(TenantId tenantId)
Delete a tenant by its id
|
Collection<Tenant> |
deleteTenants(Collection<TenantId> tenantIds)
Delete tenants by their id
|
Collection<Tenant> |
getAllTenants()
Get a list of all tenants
|
MultiTenancyFactory |
getFactory() |
Tenant |
getTenant(TenantId tenantId)
Get a tenant by its id
|
Tenant |
updateTenant(Tenant tenant)
Update parameters of an existing tenant
|
MultiTenancyFactory getFactory()
Tenant addTenant(Tenant tenant)
tenant
- - the tenant to addCollection<Tenant> addTenants(Collection<Tenant> tenants, boolean ignoreAlreadyExistTenant)
tenants
- - the tenants to addTenant getTenant(TenantId tenantId)
tenantId
- - the id of the tenant to retrieveTenant updateTenant(Tenant tenant)
tenant
- - the tenant to updateTenant deleteTenant(TenantId tenantId)
tenantId
- - the tenant to deleteCollection<Tenant> deleteTenants(Collection<TenantId> tenantIds)
tenantIds
- - the tenants to deleteCollection<Tenant> getAllTenants()