OSID Logo
OSID Specifications
lexicon package
Version 3.0.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.Idthe Press Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPress
Description

Gets the Press associated with this session.

Returnosid.lexicon.Pressthe press
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if search methods are not authorized, true otherwise
CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedPressView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetIdiomQuery
Description

Gets an idiom query.

Returnosid.lexicon.IdiomQuerythe idiom query
CompliancemandatoryThis method must be implemented.
MethodgetIdiomsByQuery
Description

Gets a list of Idioms matching the given idiom query.

Parametersosid.lexicon.IdiomQueryidiomQuerythe idiom query
Returnosid.lexicon.IdiomListthe returned IdiomList
ErrorsNULL_ARGUMENTidiomQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDidiomQuery is not of this service
CompliancemandatoryThis method must be implemented.