OSID Logo
OSID Specifications
offering package
Version 3.0.0
Interfaceosid.offering.ResultSearchSession
Implementsosid.offering.ResultQuerySession
Used Byosid.offering.OfferingManager
osid.offering.OfferingProxyManager
Description

This session provides methods for searching Results . The search query is constructed using the ResultQuery . The result record Type also specifies the record for the result query.

getResultsByQuery() is the basic search method and returns a list of Result elements. A more advanced search may be performed with getResultsBySearch() . It accepts a ResultSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getResultsBySearch() returns a ResultSearchResults that can be used to access the resulting ResultList or be used to perform a search within the result set through ResultSearch .

This session defines views that offer differing behaviors for searching.

  • federated catalogue view: searches include results in catalogues of which this catalogue is an ancestor in the catalogue hierarchy
  • isolated catalogue view: searches are restricted to results in this catalogue

Results may have a query record indicated by their respective record types. The query record is accessed via the ResultQuery . The returns in this session may not be cast directly to these interfaces.

MethodgetResultSearch
Description

Gets a result search.

Returnosid.offering.ResultSearchthe result search
CompliancemandatoryThis method must be implemented.
MethodgetResultSearchOrder
Description

Gets a result search order. The ResultSearchOrder is supplied to a ResultSearch to specify the ordering of results.

Returnosid.offering.ResultSearchOrderthe result search order
CompliancemandatoryThis method must be implemented.
MethodgetResultsBySearch
Description

Gets the search results matching the given search.

Parametersosid.offering.ResultQueryresultQuerythe result query
osid.offering.ResultSearchresultSearchthe result search
Returnosid.offering.ResultSearchResultsthe search results
ErrorsNULL_ARGUMENTresultQuery or resultSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDresultQuery or resultSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetResultQueryFromInspector
Description

Gets a result query from an inspector. The inspector is available from a ResultSearchResults .

Parametersosid.offering.ResultQueryInspectorresultQueryInspectora result query inspector
Returnosid.offering.ResultQuerythe result query
ErrorsNULL_ARGUMENTresultQueryInspector is null
UNSUPPORTEDresultQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.