OSID Logo
OSID Specifications
provisioning package
Version 3.1.0
Interfaceosid.provisioning.ProvisionableSearchSession
Implementsosid.provisioning.ProvisionableQuerySession
Description

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

getProvisionablesByQuery() is the basic search method and returns a list of Provisionables. A more advanced search may be performed with getProvisionablesBySearch().It accepts an ProvisionableSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getProvisionablesBySearch() returns an ProvisionableSearchResults that can be used to access the resulting ProvisionableList or be used to perform a search within the result set through ProvisionableSearch.

This session defines views that offer differing behaviors for searching.

  • federated distributor view: searches include provisionables in distributors of which this distributor is an ancestor in the distributor hierarchy
  • isolated distributor view: searches are restricted to provisionables in this distributor

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

MethodgetProvisionableSearch
Description

Gets a provisionable search.

Returnosid.provisioning.ProvisionableSearch the provisionable search
Compliancemandatory This method must be implemented.
MethodgetProvisionableSearchOrder
Description

Gets a provisionable search order. The ProvisionableSearchOrder is supplied to a ProvisionableSearch to specify the ordering of results.

Returnosid.provisioning.ProvisionableSearchOrder the provisionable search order
Compliancemandatory This method must be implemented.
MethodgetProvisionablesBySearch
Description

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

Parametersosid.provisioning.ProvisionableQueryprovisionableQuery the provisionable query
osid.provisioning.ProvisionableSearchprovisionableSearch the provisionable search
Returnosid.provisioning.ProvisionableSearchResults the returned search results
ErrorsNULL_ARGUMENT provisionableQuery or provisionableSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED provisionableQuery or provisionableSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetProvisionableQueryFromInspector
Description

Gets a provisionable query from an inspector. The inspector is available from a ProvisionableSearchResults.

Parametersosid.provisioning.ProvisionableQueryInspectorprovisionableQueryInspector a provisionable query inspector
Returnosid.provisioning.ProvisionableQuery the provisionable query
ErrorsNULL_ARGUMENT provisionableQueryInspector is null
UNSUPPORTED provisionableQueryInspector is not of this service
Compliancemandatory This method must be implemented.