OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.ProvisionSearchSession
Implementsosid.provisioning.ProvisionQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetProvisionSearch
Description

Gets a provision search.

Returnosid.provisioning.ProvisionSearchthe provision search
CompliancemandatoryThis method must be implemented.
MethodgetProvisionSearchOrder
Description

Gets a provision search order. The ProvisionSearchOrder is supplied to a ProvisionSearch to specify the ordering of results.

Returnosid.provisioning.ProvisionSearchOrderthe provision search order
CompliancemandatoryThis method must be implemented.
MethodgetProvisionsBySearch
Description

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

Parametersosid.provisioning.ProvisionQueryprovisionQuerythe provision query
osid.provisioning.ProvisionSearchprovisionSearchthe provision search
Returnosid.provisioning.ProvisionSearchResultsthe provision search results
ErrorsNULL_ARGUMENT provisionQuery or provisionSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED provisionQuery or provisionSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetProvisionQueryFromInspector
Description

Gets a provision query from an inspector. The inspector is available from a ProvisionSearchResults.

Parametersosid.provisioning.ProvisionQueryInspectorprovisionQueryInspectora provision query inspector
Returnosid.provisioning.ProvisionQuerythe provision query
ErrorsNULL_ARGUMENT provisionQueryInspector is null
UNSUPPORTED provisionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.