Interface ITenantMembershipCatalog
Namespace: Cephalon.MultiTenancy.Governance.Services
Assembly: Cephalon.MultiTenancy.Governance.dll
Exposes the merged tenant-membership set available to the active governance runtime.
public interface ITenantMembershipCatalogProperties
Section titled “Properties”Memberships
Section titled “ Memberships”Gets the effective membership set after runtime storage, host options, and module contributors have all been applied.
IReadOnlyList<TenantMembershipDescriptor> Memberships { get; }Property Value
Section titled “Property Value”IReadOnlyList<TenantMembershipDescriptor>
Methods
Section titled “Methods”GetByPrincipalId(string)
Section titled “ GetByPrincipalId(string)”Gets memberships for one principal across all tenants.
IReadOnlyList<TenantMembershipDescriptor> GetByPrincipalId(string principalId)Parameters
Section titled “Parameters”principalId string
The principal identifier to resolve.
Returns
Section titled “Returns”IReadOnlyList<TenantMembershipDescriptor>
The matching memberships.
GetByTenantAndPrincipal(string, string)
Section titled “ GetByTenantAndPrincipal(string, string)”Gets memberships for one principal in one tenant.
IReadOnlyList<TenantMembershipDescriptor> GetByTenantAndPrincipal(string tenantId, string principalId)Parameters
Section titled “Parameters”tenantId string
The tenant identifier to resolve.
principalId string
The principal identifier to resolve.
Returns
Section titled “Returns”IReadOnlyList<TenantMembershipDescriptor>
The matching memberships.
GetByTenantId(string)
Section titled “ GetByTenantId(string)”Gets memberships for one tenant.
IReadOnlyList<TenantMembershipDescriptor> GetByTenantId(string tenantId)Parameters
Section titled “Parameters”tenantId string
The tenant identifier to resolve.
Returns
Section titled “Returns”IReadOnlyList<TenantMembershipDescriptor>
The matching memberships.
GetByTenantPrincipalAndKind(string, string, string)
Section titled “ GetByTenantPrincipalAndKind(string, string, string)”Gets memberships for one principal kind and principal identifier in one tenant.
IReadOnlyList<TenantMembershipDescriptor> GetByTenantPrincipalAndKind(string tenantId, string principalKind, string principalId)Parameters
Section titled “Parameters”tenantId string
The tenant identifier to resolve.
principalKind string
The principal kind to resolve.
principalId string
The principal identifier to resolve.
Returns
Section titled “Returns”IReadOnlyList<TenantMembershipDescriptor>
The matching memberships.