OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.rules.BrokerConstrainerSearchSession
Implementsosid.provisioning.rules.BrokerConstrainerQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

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

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

MethodgetBrokerConstrainerSearch
Description

Gets a broker constrainer search.

Returnosid.provisioning.rules.BrokerConstrainerSearchthe broker constrainer search
CompliancemandatoryThis method must be implemented.
MethodgetBrokerConstrainerSearchOrder
Description

Gets a broker constrainer search order. The BrokerConstrainerSearchOrder is supplied to a BrokerConstrainerSearch to specify the ordering of results.

Returnosid.provisioning.rules.BrokerConstrainerSearchOrderthe broker constrainer search order
CompliancemandatoryThis method must be implemented.
MethodgetBrokerConstrainersBySearch
Description

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

Parametersosid.provisioning.rules.BrokerConstrainerQuerybrokerConstrainerQuerythe broker constrainer query
osid.provisioning.rules.BrokerConstrainerSearchbrokerConstrainerSearchthe broker constrainer search
Returnosid.provisioning.rules.BrokerConstrainerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT brokerConstrainerQuery or brokerConstrainerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED brokerConstrainerQuery or brokerConstrainerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetBrokerConstrainerQueryFromInspector
Description

Gets a broker constrainer query from an inspector. The inspector is available from a BrokerConstrainerSearchResults.

Parametersosid.provisioning.rules.BrokerConstrainerQueryInspectorbrokerConstrainerQueryInspectora broker constrainer query inspector
Returnosid.provisioning.rules.BrokerConstrainerQuerythe broker constrainer query
ErrorsNULL_ARGUMENT brokerConstrainerQueryInspector is null
UNSUPPORTED brokerConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.