OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.DistributorSearchSession
Implementsosid.provisioning.DistributorQuerySession
Description

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

getDistributorsByQuery() is the basic search method and returns a list of Distributors. A more advanced search may be performed with getDistributorsBySearch(). It accepts a DistributorSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getDistributorsBySearch() returns a DistributorSearchResults that can be used to access the resulting DistributorList or be used to perform a search within the result set through DistributorSearch.

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

MethodgetDistributorSearch
Description

Gets a distributor search.

Returnosid.provisioning.DistributorSearchthe distributor search
CompliancemandatoryThis method must be implemented.
MethodgetDistributorSearchOrder
Description

Gets a distributor search order. The DistributorSearchOrder is supplied to a DistributorSearch to specify the ordering of results.

Returnosid.provisioning.DistributorSearchOrderthe distributor search order
CompliancemandatoryThis method must be implemented.
MethodgetDistributorsBySearch
Description

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

Parametersosid.provisioning.DistributorQuerydistributorQuerythe distributor query
osid.provisioning.DistributorSearchdistributorSearchthe distributor search
Returnosid.provisioning.DistributorSearchResultsthe distributor search results
ErrorsNULL_ARGUMENT distributorQuery or distributorSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED distributorQuery or distributorSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetDistributorQueryFromInspector
Description

Gets a distributor query from an inspector. The inspector is available from a DistributorSearchResults.

Parametersosid.provisioning.DistributorQueryInspectordistributorQueryInspectora distributor query inspector
Returnosid.provisioning.DistributorQuerythe distributor query
ErrorsNULL_ARGUMENT distributorQueryInspector is null
UNSUPPORTED distributorQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.