Search Results for

    Show / Hide Table of Contents

    Class TenantManager

    Manager for tenants

    Inheritance
    System.Object
    TenantManager
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Framework.Core
    Assembly: Simplic.Framework.Base.dll
    Syntax
    public sealed class TenantManager

    Properties

    | Improve this Doc View Source

    Singleton

    Singleton access

    Declaration
    public static TenantManager Singleton { get; }
    Property Value
    Type Description
    TenantManager

    Methods

    | Improve this Doc View Source

    Delete(Tenant)

    Delete tenant from database

    Declaration
    public void Delete(Tenant tenant)
    Parameters
    Type Name Description
    Tenant tenant

    Tenant

    | Improve this Doc View Source

    DeleteOrganization(Guid)

    Delete an organizaion tenant by its id

    Declaration
    public void DeleteOrganization(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique tenant id

    | Improve this Doc View Source

    Get(Guid)

    Get instance of a tenant

    Declaration
    public Tenant Get(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique id of the tenant

    Returns
    Type Description
    Tenant

    Null if no instance found, else instance

    | Improve this Doc View Source

    Get(String)

    Get instance of a tenant

    Declaration
    public Tenant Get(string name)
    Parameters
    Type Name Description
    System.String name

    Intern name of the tenant

    Returns
    Type Description
    Tenant

    Null if no instance found, else instance

    | Improve this Doc View Source

    GetAll()

    Get all tenant instances

    Declaration
    public IEnumerable<Tenant> GetAll()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Tenant>

    Null if no instance found, else all instances

    | Improve this Doc View Source

    GetAllActiveOrganizations()

    Gets all active organizations from the database

    Declaration
    [Obsolete("Use organization service instead.")]
    public IEnumerable<OrganizationTenant> GetAllActiveOrganizations()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<OrganizationTenant>

    Enumerable of organization tenants

    | Improve this Doc View Source

    GetAllOrganizations()

    Gets all organizations from the database

    Declaration
    [Obsolete("Use organizaiton service instead.")]
    public IEnumerable<OrganizationTenant> GetAllOrganizations()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<OrganizationTenant>

    Enumerable of organization tenants

    | Improve this Doc View Source

    GetAllOrganizationsIgnoreSession()

    Gets all organizations from the database

    Declaration
    [Obsolete("Use organizaiton service instead.")]
    public IEnumerable<OrganizationTenant> GetAllOrganizationsIgnoreSession()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<OrganizationTenant>

    Enumerable of organization tenants

    | Improve this Doc View Source

    GetByUser(Int32, Boolean)

    Get all tenants where the given user is part of

    Declaration
    public IEnumerable<OrganizationTenant> GetByUser(int userId, bool onlyActiveTenants = true)
    Parameters
    Type Name Description
    System.Int32 userId

    Unique user id

    System.Boolean onlyActiveTenants

    If set to true, only active tenants will be queried

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<OrganizationTenant>

    Enumerable of tenants

    | Improve this Doc View Source

    GetConnectedTenants(Guid)

    Get all system/technical tenants that are connect with the organization tenant

    Declaration
    public IEnumerable<Tenant> GetConnectedTenants(Guid organizationTenantId)
    Parameters
    Type Name Description
    System.Guid organizationTenantId

    Unique tentant id

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Tenant>

    Enumerable of tenants

    | Improve this Doc View Source

    GetOrganization(Guid)

    Get a organization tenant from the database

    Declaration
    public OrganizationTenant GetOrganization(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique tenant id

    Returns
    Type Description
    OrganizationTenant

    Tenant instance

    | Improve this Doc View Source

    GetSubOrganizations(Guid)

    Get all sub organizations

    Declaration
    public IEnumerable<OrganizationTenant> GetSubOrganizations(Guid organizationTenantId)
    Parameters
    Type Name Description
    System.Guid organizationTenantId

    Unique tentant id

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<OrganizationTenant>

    Enumerable of tenants

    | Improve this Doc View Source

    GetTenantSystemType(Guid)

    Get a tenant system type by its id

    Declaration
    public TenantSystemType GetTenantSystemType(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Id of the tenant system

    Returns
    Type Description
    TenantSystemType

    Instance of the system if found, else null

    | Improve this Doc View Source

    Save(Tenant)

    Save tenant to the database

    Declaration
    public void Save(Tenant tenant)
    Parameters
    Type Name Description
    Tenant tenant
    | Improve this Doc View Source

    SaveOrganization(OrganizationTenant)

    Save the organization tenant in database

    Declaration
    public void SaveOrganization(OrganizationTenant tenant)
    Parameters
    Type Name Description
    OrganizationTenant tenant

    tenant instance

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx