OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.PoolSearchSession
Implementsosid.provisioning.PoolQuerySession
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.PoolSearchthe pool search
CompliancemandatoryThis 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.PoolSearchOrderthe pool search order
CompliancemandatoryThis method must be implemented.
MethodgetPoolsBySearch
Description

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

Parametersosid.provisioning.PoolQuerypoolQuerythe pool query
osid.provisioning.PoolSearchpoolSearchthe pool search
Returnosid.provisioning.PoolSearchResultsthe pool search results
ErrorsNULL_ARGUMENT poolQuery or poolSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED poolQuery or poolSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPoolQueryFromInspector
Description

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

Parametersosid.provisioning.PoolQueryInspectorpoolQueryInspectora pool query inspector
Returnosid.provisioning.PoolQuerythe pool query
ErrorsNULL_ARGUMENT poolQueryInspector is null
UNSUPPORTED poolQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.