OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.rules.PoolConstrainerSearchSession
Implementsosid.provisioning.rules.PoolConstrainerQuerySession
Description

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

getPoolConstrainersByQuery() is the basic search method and returns a list of PoolConstrainers. A more advanced search may be performed with getPoolConstrainersBySearch(). It accepts a PoolConstrainerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as provisioning. getPoolConstrainersBySearch() returns a PoolConstrainerSearchResults that can be used to access the resulting PoolConstrainerList or be used to perform a search within the result set through PoolConstrainerSearch.

This session defines views that offer differing behaviors for searching.

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

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

MethodgetPoolConstrainerSearch
Description

Gets a pool constrainer search.

Returnosid.provisioning.rules.PoolConstrainerSearchthe pool constrainer search
CompliancemandatoryThis method must be implemented.
MethodgetPoolConstrainerSearchOrder
Description

Gets a pool constrainer search order. The PoolConstrainerSearchOrder is supplied to a PoolConstrainerSearch to specify the ordering of results.

Returnosid.provisioning.rules.PoolConstrainerSearchOrderthe pool constrainer search order
CompliancemandatoryThis method must be implemented.
MethodgetPoolConstrainersBySearch
Description

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

Parametersosid.provisioning.rules.PoolConstrainerQuerypoolConstrainerQuerythe pool constrainer query
osid.provisioning.rules.PoolConstrainerSearchpoolConstrainerSearchthe pool constrainer search
Returnosid.provisioning.rules.PoolConstrainerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT poolConstrainerQuery or poolConstrainerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED poolConstrainerQuery or poolConstrainerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPoolConstrainerQueryFromInspector
Description

Gets a pool constrainer query from an inspector. The inspector is available from a PoolConstrainerSearchResults.

Parametersosid.provisioning.rules.PoolConstrainerQueryInspectorpoolConstrainerQueryInspectora pool constrainer query inspector
Returnosid.provisioning.rules.PoolConstrainerQuerythe pool constrainer query
ErrorsNULL_ARGUMENT poolConstrainerQueryInspector is null
UNSUPPORTED poolConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.