OSID Logo
OSID Specifications
provisioning package
Version 3.1.0
Interfaceosid.provisioning.ProvisionSearchSession
Implementsosid.provisioning.ProvisionQuerySession
Used Byosid.provisioning.ProvisioningManager
osid.provisioning.ProvisioningProxyManager
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.ProvisionSearch the provision search
Compliancemandatory This 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.ProvisionSearchOrder the provision search order
Compliancemandatory This method must be implemented.
MethodgetProvisionsBySearch
Description

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

Parametersosid.provisioning.ProvisionQueryprovisionQuery the provision query
osid.provisioning.ProvisionSearchprovisionSearch the provision search
Returnosid.provisioning.ProvisionSearchResults the provision search results
ErrorsNULL_ARGUMENT provisionQuery or provisionSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED provisionQuery or provisionSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetProvisionQueryFromInspector
Description

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

Parametersosid.provisioning.ProvisionQueryInspectorprovisionQueryInspector a provision query inspector
Returnosid.provisioning.ProvisionQuery the provision query
ErrorsNULL_ARGUMENT provisionQueryInspector is null
UNSUPPORTED provisionQueryInspector is not of this service
Compliancemandatory This method must be implemented.