Class OrganizationTenant
Represents an organization tenant
Inheritance
Namespace: Simplic.Framework.Core
Assembly: Simplic.Framework.Base.dll
Syntax
public class OrganizationTenant : Organization
Constructors
| Improve this Doc View SourceOrganizationTenant()
Initialize new organization tenant
Declaration
public OrganizationTenant()
Properties
| Improve this Doc View SourceComputedName
Gets or sets the computed name
Declaration
public string ComputedName { get; }
Property Value
Type | Description |
---|---|
System.String |
OxSOrganizationId
Gets or sets the OxS organization ID.
Declaration
public Guid? OxSOrganizationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
SubTenants
Gets all sub organization tenants
Declaration
public StatefulCollection<OrganizationTenant> SubTenants { get; }
Property Value
Type | Description |
---|---|
StatefulCollection<OrganizationTenant> |
Tenants
Gets the connected system tenants
Declaration
public StatefulCollection<Tenant> Tenants { get; }
Property Value
Type | Description |
---|---|
StatefulCollection<Tenant> |
Users
Gets the list of users that are attached to the current tenant
Declaration
public StatefulCollection<int> Users { get; }
Property Value
Type | Description |
---|---|
StatefulCollection<System.Int32> |
Methods
| Improve this Doc View SourceGetDbTenantByExternId(Guid)
Gets a db tenant by its extern id
Declaration
public Tenant GetDbTenantByExternId(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique tenant id |
Returns
Type | Description |
---|---|
Tenant | Instance of a tenant if found |
GetDbTenantByExternId(Nullable<Int32>)
Gets a db tenant by is extern id
Declaration
public Tenant GetDbTenantByExternId(int? externId)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | externId | Extern id |
Returns
Type | Description |
---|---|
Tenant | Tenant instance if found |
GetDbTenantByExternName(String)
Gets a db tenant by its extern name
Declaration
public Tenant GetDbTenantByExternName(string externName)
Parameters
Type | Name | Description |
---|---|---|
System.String | externName | Extern name |
Returns
Type | Description |
---|---|
Tenant | Db tenant if found |
GetDbTenantBySystem(TenantSystemType)
Gets a tenant by its system type
Declaration
public IList<Tenant> GetDbTenantBySystem(TenantSystemType systemType)
Parameters
Type | Name | Description |
---|---|---|
TenantSystemType | systemType | Type instance |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Tenant> | Gets a tenant list by its system type |
GetDbTenantBySystemId(Guid)
Gets a tenant by its system type
Declaration
public IList<Tenant> GetDbTenantBySystemId(Guid systemTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | systemTypeId | Type instance |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Tenant> | Gets a tenant list by its system type |
LoadSubTenants()
Loads all connected (sub) organization tenants
Declaration
public StatefulCollection<OrganizationTenant> LoadSubTenants()
Returns
Type | Description |
---|---|
StatefulCollection<OrganizationTenant> | Collection of tenants |
LoadTenants()
Load all system tenants
Declaration
public StatefulCollection<Tenant> LoadTenants()
Returns
Type | Description |
---|---|
StatefulCollection<Tenant> | system tenants |
LoadUsers()
Load users that are assigned to the current tenant
Declaration
public StatefulCollection<int> LoadUsers()
Returns
Type | Description |
---|---|
StatefulCollection<System.Int32> | List of users to load |