Skip to main content

IDataPermissionResolver

Namespace: Meshmakers.Octo.Runtime.Contracts.DataPermissions

Resolves the per-tenant data-policy table from the System.Identity entities in the tenant database (AB#4972). Implementations cache per tenant; IDataPermissionResolver.Invalidate(String) drops a tenant's cached table (e.g. on identity-entity change).

public interface IDataPermissionResolver

Methods

GetPolicyTableAsync(IRuntimeRepository)

Gets the (cached) policy table of the repository's tenant. Returns RtDataPolicyTable.Empty when the data-permission model is not installed.

Task<RtDataPolicyTable> GetPolicyTableAsync(IRuntimeRepository runtimeRepository)

Parameters

runtimeRepository IRuntimeRepository
Repository of the tenant to resolve

Returns

Task<RtDataPolicyTable>

Invalidate(String)

Drops the cached table of a tenant so the next resolve reloads it.

void Invalidate(string tenantId)

Parameters

tenantId String
The tenant id