OSID Logo
OSID Specifications
resource package
Version 3.1.0
Interfaceosid.resource.BinSearchSession
Implementsosid.resource.BinQuerySession
Used Byosid.resource.ResourceManager
osid.resource.ResourceProxyManager
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.BinSearch the bin search
Compliancemandatory This 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.BinSearchOrder the bin search order
Compliancemandatory This method must be implemented.
MethodgetBinsBySearch
Description

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

Parametersosid.resource.BinQuerybinQuery the bin query
osid.resource.BinSearchbinSearch the bin search
Returnosid.resource.BinSearchResults the bin search results
ErrorsNULL_ARGUMENT binQuery or binSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED binQuery or binSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetBinQueryFromInspector
Description

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

Parametersosid.resource.BinQueryInspectorbinQueryInspector a bin query inspector
Returnosid.resource.BinQuery the bin query
ErrorsNULL_ARGUMENT binQueryInspector is null
UNSUPPORTED binQueryInspector is not of this service
Compliancemandatory This method must be implemented.