OSID Logo
OSID Specifications
resource package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resource.BinSearchSession
Implementsosid.resource.BinQuerySession
Description

This session provides methods for searching among Bin objects. The search query is constructed using the BinQuery.

getBinsByQuery() is the basic search method and returns a list of Bin objects.A more advanced search may be performed with getBinsBySearch(). It accepts a BinSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getBinsBySearch() returns a BinSearchResults that can be used to access the resulting BinList or be used to perform a search within the result set through BinSearch.

Bins may have a bin query record indicated by their respective record types. The bin query record is accessed via the BinQuery.

MethodgetBinSearch
Description

Gets a bin search.

Returnosid.resource.BinSearchthe bin search
CompliancemandatoryThis method must be implemented.
MethodgetBinSearchOrder
Description

Gets a bin search order. The BinSearchOrder is supplied to a BinSearch to specify the ordering of results.

Returnosid.resource.BinSearchOrderthe bin search order
CompliancemandatoryThis method must be implemented.
MethodgetBinsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.resource.BinQuerybinQuerythe bin query
osid.resource.BinSearchbinSearchthe bin search
Returnosid.resource.BinSearchResultsthe bin search results
ErrorsNULL_ARGUMENT binQuery or binSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED binQuery or binSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetBinQueryFromInspector
Description

Gets a bin query from an inspector. The inspector is available from a BinSearchResults.

Parametersosid.resource.BinQueryInspectorbinQueryInspectora bin query inspector
Returnosid.resource.BinQuerythe bin query
ErrorsNULL_ARGUMENT binQueryInspector is null
UNSUPPORTED binQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.