OSID Logo
OSID Specifications
lexicon package
Version 3.1.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.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.
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.

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 parameters 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.
MethodgetParameterQuery
Description

Gets a parameter query.

Returnosid.lexicon.ParameterQuery the parameter query
Compliancemandatory This method must be implemented.
MethodgetParametersByQuery
Description

Gets a list of Parameters matching the given parameter query.

Parametersosid.lexicon.ParameterQueryparameterQuery the parameter query
Returnosid.lexicon.ParameterList the returned ParameterList
ErrorsNULL_ARGUMENT parameterQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED parameterQuery is not of this service
Compliancemandatory This method must be implemented.