Search Results for

    Show / Hide Table of Contents

    Interface ITerminologyProvider

    Provides access to a terminology provider, which in turn provides access to termbases.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Sdl.Terminology.TerminologyProvider.Core
    Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
    Syntax
    public interface ITerminologyProvider : IDisposable
    Remarks

    Implement ITerminologyProvider interface when creating a terminology provider.

    Properties

    ActiveFilter

    Gets or sets the active filter definition

    Declaration
    FilterDefinition ActiveFilter { get; set; }
    Property Value
    Type Description
    FilterDefinition

    Definition

    Get the terminology provider's definition

    Declaration
    Definition Definition { get; }
    Property Value
    Type Description
    Definition

    Description

    Gets the terminology provider description

    Declaration
    string Description { get; }
    Property Value
    Type Description
    string

    Id

    Gets the unique ID of the terminology provider

    Declaration
    string Id { get; }
    Property Value
    Type Description
    string

    IsInitialized

    Flag to track whether the provider has been initialized.

    Declaration
    bool IsInitialized { get; }
    Property Value
    Type Description
    bool

    IsReadOnly

    Read only flag for the terminology provider.

    Declaration
    bool IsReadOnly { get; }
    Property Value
    Type Description
    bool

    Name

    Gets the display name of the terminology provider

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string

    SearchEnabled

    Gets the terminology provider search enabled flag.

    Declaration
    bool SearchEnabled { get; }
    Property Value
    Type Description
    bool

    Type

    Gets the type of the terminology provider.

    Declaration
    TerminologyProviderType Type { get; }
    Property Value
    Type Description
    TerminologyProviderType

    Uri

    Gets the URI of this terminology provider.

    Declaration
    Uri Uri { get; }
    Property Value
    Type Description
    Uri

    Methods

    GetEntry(int)

    Get an entry definition from the terminology provider

    Declaration
    Entry GetEntry(int id)
    Parameters
    Type Name Description
    int id

    The entry id to get.

    Returns
    Type Description
    Entry

    The entry object. Returns null if an entry with the specified id does not exists in the terminology provider.

    GetEntry(int, IEnumerable<ILanguage>)

    Get an entry from the terminology provider

    Declaration
    Entry GetEntry(int id, IEnumerable<ILanguage> languages)
    Parameters
    Type Name Description
    int id

    The entry id to get.

    IEnumerable<ILanguage> languages

    The languages to fill for the requested entry.

    Returns
    Type Description
    Entry

    The entry object. Returns null if an entry with the specified id does not exists in the terminology provider.

    GetFilters()

    Returns a list of filter definitions available for this terminology provider

    Declaration
    IList<FilterDefinition> GetFilters()
    Returns
    Type Description
    IList<FilterDefinition>

    GetLanguages()

    Returns a list of the language languages available for this terminology provider

    Declaration
    IList<ILanguage> GetLanguages()
    Returns
    Type Description
    IList<ILanguage>

    The list of language definitions for a terms

    Initialize()

    Initialize the provider

    Declaration
    bool Initialize()
    Returns
    Type Description
    bool

    True for success

    Initialize(TerminologyProviderCredential)

    Initialize the provider using the specified credentials

    Declaration
    bool Initialize(TerminologyProviderCredential credential)
    Parameters
    Type Name Description
    TerminologyProviderCredential credential
    Returns
    Type Description
    bool

    True for success

    IsProviderUpToDate()

    Indicates whether the provider information is up-to-date

    Declaration
    bool IsProviderUpToDate()
    Returns
    Type Description
    bool

    Search(string, ILanguage, ILanguage, int, SearchMode, bool)

    Performs a search over the current terminology provider

    Declaration
    IList<SearchResult> Search(string text, ILanguage source, ILanguage destination, int maxResultsCount, SearchMode mode, bool targetRequired)
    Parameters
    Type Name Description
    string text

    The text to search for

    ILanguage source

    Source language

    ILanguage destination

    Destination language

    int maxResultsCount

    Maximum number of result to return

    SearchMode mode

    search mode: normal, fuzzy, full text

    bool targetRequired

    True to return only term with target language term definition

    Returns
    Type Description
    IList<SearchResult>

    The list of found terms

    SetDefault(bool)

    Set the terminology provider as default

    Declaration
    void SetDefault(bool value)
    Parameters
    Type Name Description
    bool value

    Determines if it is set as default or not

    Uninitialize()

    Uninitialize the provider

    Declaration
    bool Uninitialize()
    Returns
    Type Description
    bool
    In this article
    • Properties
      • ActiveFilter
      • Definition
      • Description
      • Id
      • IsInitialized
      • IsReadOnly
      • Name
      • SearchEnabled
      • Type
      • Uri
    • Methods
      • GetEntry(int)
      • GetEntry(int, IEnumerable<ILanguage>)
      • GetFilters()
      • GetLanguages()
      • Initialize()
      • Initialize(TerminologyProviderCredential)
      • IsProviderUpToDate()
      • Search(string, ILanguage, ILanguage, int, SearchMode, bool)
      • SetDefault(bool)
      • Uninitialize()
    Back to top Generated by DocFX