Search Results for

    Show / Hide Table of Contents

    Class UserManager

    Stellt Funktionen bereit, um mit Simplic-Usern zu arbeiten

    Inheritance
    System.Object
    UserManager
    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.Base
    Assembly: Simplic.Framework.Base.dll
    Syntax
    public class UserManager

    Properties

    | Improve this Doc View Source

    Singleton

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

    Methods

    | Improve this Doc View Source

    DeleteExternAccount(Guid)

    Delete an extern account

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

    Account id

    | Improve this Doc View Source

    GenerateApiKey(Int32)

    Generate a new api key

    Declaration
    public string GenerateApiKey(int userId)
    Parameters
    Type Name Description
    System.Int32 userId

    Unique user id

    Returns
    Type Description
    System.String

    Generated api key

    | Improve this Doc View Source

    GetAccountTypes()

    Get all types of external accounts

    Declaration
    public IList<ExternAccountType> GetAccountTypes()
    Returns
    Type Description
    System.Collections.Generic.IList<ExternAccountType>

    List of external account types

    | Improve this Doc View Source

    GetApiKey(Int32)

    Get API key for the current user

    Declaration
    public string GetApiKey(int userId)
    Parameters
    Type Name Description
    System.Int32 userId

    Unique user id

    Returns
    Type Description
    System.String

    Api key

    | Improve this Doc View Source

    GetApiUser(String, String)

    Get user id by apikey and username

    Declaration
    public int? GetApiUser(string apiKey, string userName)
    Parameters
    Type Name Description
    System.String apiKey

    api key

    System.String userName

    User name

    Returns
    Type Description
    System.Nullable<System.Int32>

    Api key / user name

    | Improve this Doc View Source

    GetEmailAddress(Int64)

    Gets the email address of the given user id

    Declaration
    public string GetEmailAddress(long userId)
    Parameters
    Type Name Description
    System.Int64 userId

    UserId to get the email address from

    Returns
    Type Description
    System.String

    Email address

    | Improve this Doc View Source

    GetEmailAddressesByGroupId(Int64)

    Gets all the email addresses belonging to the given group ID

    Declaration
    public IList<string> GetEmailAddressesByGroupId(long groupId)
    Parameters
    Type Name Description
    System.Int64 groupId

    A Group ID to get all the users belonging to that group.

    Returns
    Type Description
    System.Collections.Generic.IList<System.String>

    A list of email addresses belonging to a group of users.

    | Improve this Doc View Source

    GetExternAccount(Guid)

    Get an extern account by its id Here we need some security improvement.

    Declaration
    public ExternAccount GetExternAccount(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique account id

    Returns
    Type Description
    ExternAccount

    Instance of an extern account

    | Improve this Doc View Source

    GetExternAccount(Int32, Guid)

    Get extern account by user id and type

    Declaration
    public ExternAccount GetExternAccount(int userId, Guid typeId)
    Parameters
    Type Name Description
    System.Int32 userId

    Simplic user id

    System.Guid typeId

    Account type

    Returns
    Type Description
    ExternAccount

    Account instance if exists

    | Improve this Doc View Source

    GetFriendlyName(Int32)

    Gibt den Anzeigenamen eines Benutzers zurück

    Declaration
    public string GetFriendlyName(int UserId)
    Parameters
    Type Name Description
    System.Int32 UserId

    BenutzerId

    Returns
    Type Description
    System.String

    Name als String

    | Improve this Doc View Source

    GetIdByName(String)

    Get user ID from the username

    Declaration
    public int GetIdByName(string name)
    Parameters
    Type Name Description
    System.String name

    Name of the user

    Returns
    Type Description
    System.Int32

    Api key

    | Improve this Doc View Source

    GetUserIdByExternAccount(String, Guid, out Int32)

    Get the simplic user id by an external account name

    Declaration
    public bool GetUserIdByExternAccount(string userName, Guid accountType, out int userId)
    Parameters
    Type Name Description
    System.String userName

    External account name

    System.Guid accountType

    Account type

    System.Int32 userId

    Simplic userid

    Returns
    Type Description
    System.Boolean

    True when a sigle, active user was found

    | Improve this Doc View Source

    RefreshSubstitution(Int32)

    Refresh user substitution

    Declaration
    public void RefreshSubstitution(int userId)
    Parameters
    Type Name Description
    System.Int32 userId
    | Improve this Doc View Source

    SetExternAccount(ExternAccount)

    Set extern account data Here we need some security improvement.

    Declaration
    public void SetExternAccount(ExternAccount account)
    Parameters
    Type Name Description
    ExternAccount account

    Account instance

    | Improve this Doc View Source

    UpdateActiveSubstitutions(SAConnection)

    Update active substitution flags.

    Declaration
    public void UpdateActiveSubstitutions(SAConnection connection)
    Parameters
    Type Name Description
    Sap.Data.SQLAnywhere.SAConnection connection
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx