OSID Logo
OSID Specifications
lexicon package
Version 3.1.0
Interfaceosid.lexicon.IdiomQuerySession
Implementsosid.OsidSession
Implemented Byosid.lexicon.IdiomSearchSession
Used Byosid.lexicon.LexiconManager
osid.lexicon.LexiconProxyManager
Description

This session provides methods for searching among Idioms. The search query is constructed using the IdiomQuery.

This session defines views that offer differing behaviors for searching.

  • federated press view: searches include idioms in presses of which this press is an ancestor in the press hierarchy
  • isolated press view: searches are restricted to idioms in this press

Idioms may have a query record indicated by their respective record types. The query record is accessed via the IdiomQuery.

MethodgetPressId
Description

Gets the Press Id associated with this session.

Returnosid.id.Id the Press Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPress
Description

Gets the Press associated with this session.

Returnosid.lexicon.Press the press
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearchIdioms
Description

Tests if this user can perform Idiom lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an press that may not offer lookup operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedPressView
Description

Federates the view for methods in this session. A federated view will include idioms in presses which are children of this press in the press hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedPressView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this press only.

Compliancemandatory This method is must be implemented.
MethodgetIdiomQuery
Description

Gets an idiom query.

Returnosid.lexicon.IdiomQuery the idiom query
Compliancemandatory This method must be implemented.
MethodgetIdiomsByQuery
Description

Gets a list of Idioms matching the given idiom query.

Parametersosid.lexicon.IdiomQueryidiomQuery the idiom query
Returnosid.lexicon.IdiomList the returned IdiomList
ErrorsNULL_ARGUMENT idiomQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED idiomQuery is not of this service
Compliancemandatory This method must be implemented.