OSID Logo
OSID Specifications
lexicon package
Version 3.0.0
Interfaceosid.lexicon.TextQuerySession
Implementsosid.OsidSession
Implemented Byosid.lexicon.TextSearchSession
Used Byosid.lexicon.LexiconManager
osid.lexicon.LexiconProxyManager
Description

This session provides methods for searching among Texts . The search query is constructed using the TextQuery .

This session defines views that offer differing behaviors for searching.

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

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

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.
MethodcanSearchTexts
Description

Tests if this user can perform Text 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 texts 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 searches to this press only.

CompliancemandatoryThis method is must be implemented.
MethodgetTextQuery
Description

Gets a text query.

Returnosid.lexicon.TextQuerythe text query
CompliancemandatoryThis method must be implemented.
MethodgetTextsByQuery
Description

Gets a list of Texts matching the given text query,

Parametersosid.lexicon.TextQuerytextQuerythe text query
Returnosid.lexicon.TextListthe returned TextList
ErrorsNULL_ARGUMENTtextQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDtextQuery is not of this service
CompliancemandatoryThis method must be implemented.