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 4 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.
getObject(sessionID, type, objID)
  • Client
  • ConceptEntry
  • Dictionary
  • Domain
  • Filter
  • ImportSettings
  • Language
  • Project
  • Section
  • TermEntry
  • User
  • VirtualFile
struct (see Data objects)Returns the object with specified ID and type.
getObjectByName(sessionID, type, name)
  • Client
  • Dictionary
  • Domain
  • Filter
  • ImportSettings
  • Language
  • Project
  • Section
  • User
struct (see Data objects)Returns the object with specified ID and name.
getSelectedList(sessionID, type)
  • Domain
  • Section
arrayReturns a list of the currently selected object(s) of the specified type.
setSelected(sessionID, type, objID)
  • Client
  • Dictionary
  • Domain
  • Filter
  • Language
  • Section
intSets the object with specified ID and type to be selected.
setSelected(sessionID, type, idList)
  • Domain
  • Section
intSets the objects with specified IDs and type to be selected.
setAllSelected(sessionID, type)
  • Domain
  • Section
intSets all objects of the specified type to be selected.
isSelected(sessionID, type, objID)
  • Client
  • Dictionary
  • Domain
  • Filter
  • Language
  • Section
booleanChecks if the object with specified ID and type is selected.
exists(sessionID, type, objID)
  • Client
  • ConceptEntry
  • Dictionary
  • Domain
  • Filter
  • ImportSettings
  • Language
  • Project
  • Section
  • TermEntry
  • User
  • VirtualFile
booleanChecks if the object with specified ID and type exists.
existsByName(sessionID, type, name)
  • Client
  • Dictionary
  • Domain
  • Filter
  • ImportSettings
  • Language
  • Project
  • Section
  • User
booleanChecks if the object with specified ID and type exists.
  • No labels