OSID Logo
OSID Specifications
provisioning package
Version 3.1.0
Interfaceosid.provisioning.PoolSearchSession
Implementsosid.provisioning.PoolQuerySession
Used Byosid.provisioning.ProvisioningManager
osid.provisioning.ProvisioningProxyManager
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated broker view: searches include pools in brokers of which this broker is an ancestor in the broker hierarchy
  • isolated broker view: searches are restricted to pools in this broker

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

MethodgetPoolSearch
Description

Gets a pool search.

Returnosid.provisioning.PoolSearch the pool search
Compliancemandatory This method must be implemented.
MethodgetPoolSearchOrder
Description

Gets a pool search order. The PoolSearchOrder is supplied to a PoolSearch to specify the ordering of results.

Returnosid.provisioning.PoolSearchOrder the pool search order
Compliancemandatory This method must be implemented.
MethodgetPoolsBySearch
Description

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

Parametersosid.provisioning.PoolQuerypoolQuery the pool query
osid.provisioning.PoolSearchpoolSearch the pool search
Returnosid.provisioning.PoolSearchResults the pool search results
ErrorsNULL_ARGUMENT poolQuery or poolSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED poolQuery or poolSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetPoolQueryFromInspector
Description

Gets a pool query from an inspector. The inspector is available from a PoolSearchResults.

Parametersosid.provisioning.PoolQueryInspectorpoolQueryInspector a pool query inspector
Returnosid.provisioning.PoolQuery the pool query
ErrorsNULL_ARGUMENT poolQueryInspector is null
UNSUPPORTED poolQueryInspector is not of this service
Compliancemandatory This method must be implemented.