Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Many of the methods in the API are generic, i.e. they take a type class as argument and performs an action depending of the type.

Type classes

These are the available type classes for generic methods.

NameDescription

Dictionary

A dictionary for the current client
DomainA domain in the currently selected dictionary
Language

A language in the currently selected dictionary

SectionA section in the currently selected dictionary
ConceptEntryA concept entry in the currently selected dictionary
TermEntryA term entry in the currently selected dictionary
FilterA filter for the current client 
ImportSettingsAn import settings for the current client 
VirtualFileA virtual file (and also import file) for the current client 
ProjectA project for the current client 
ClientA client in the system 
UserA user for the current client

Generic methods

The table below describes the available generic methods. The type argument is the name of the type, and is a case-insensitive string.

MethodApplicable TypesReturn typeDescription
getAll(sessionID, type)
  • Client
  • Dictionary
  • Domain
  • Filter
  • ImportSettings
  • Language
  • Project
  • Section
  • VirtualFile
arrayReturns all objects of the specified type that are available for the user.
getSelected(sessionID, type)
  • Client
  • Dictionary
  • Domain
  • Filter
  • Language
  • Section
struct (see Data objects)Returns the currently selected object of the specified type.
getSelectedList(sessionID, type)
  • Domain
  • Section
arrayReturns a list of the currently selected object(s) of the specified type.
setSelected(sessionID, type, objID)   
setAllSelected(sessionID, type)
  • Domain
  • Section
intSets all objects of the specified type to be selected
    
  • No labels