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 7 Current »

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.

The type name can also be appended by additional request parameters to modify the returned object.

MethodApplicable TypesReturnsReturn typeDescription
getAll(sessionID, type)

Client
Dictionary
Domain
Filter
ImportSettings
Language
Project
Section
VirtualFile

List of objectsarrayReturns all objects of the specified type that are available for the user.
getSelected(sessionID, type)

Client
Dictionary
Domain
Filter
Language
Section

Object (see Data objects)struct 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

Object (see Data objects)structReturns the object with specified ID and type.
getObjectByName(sessionID, type, name)

Client
Dictionary
Domain
Filter
ImportSettings
Project
Section
User

Object (see Data objects)structReturns the object with specified ID and name.
getSelectedList(sessionID, type)

Domain
Section

List of objectsarrayReturns a list of the currently selected object(s) of the specified type.
setSelected(sessionID, type, objID)

Client
Dictionary
Domain
Filter
Language
Section

0intSets the object with specified ID and type to be selected.
setSelected(sessionID, type, idList)

Domain
Section

0intSets the objects with specified IDs and type to be selected.
setAllSelected(sessionID, type)

Domain
Section

0intSets all objects of the specified type to be selected.
isSelected(sessionID, type, objID)

Client
Dictionary
Domain
Filter
Language
Section

True if selectedbooleanChecks 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

True if existsbooleanChecks if the object with specified ID and type exists.
existsByName(sessionID, type, name)

Client
Dictionary
Domain
Filter
ImportSettings
Language
Project
Section
User

True if existsbooleanChecks if the object with specified ID and type exists.
  • No labels