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

This session provides methods for searching among Parameters . The search query is constructed using the ParameterQuery .

This session defines views that offer differing behaviors for searching.

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

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

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

Tests if this user can perform Parameter 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 parameters 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.
MethodgetParameterQuery
Description

Gets a parameter query.

Returnosid.lexicon.ParameterQuerythe parameter query
CompliancemandatoryThis method must be implemented.
MethodgetParametersByQuery
Description

Gets a list of Parameters matching the given parameter query.

Parametersosid.lexicon.ParameterQueryparameterQuerythe parameter query
Returnosid.lexicon.ParameterListthe returned ParameterList
ErrorsNULL_ARGUMENTparameterQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDparameterQuery is not of this service
CompliancemandatoryThis method must be implemented.