OSID Logo
OSID Specifications
offering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.rules.OfferingConstrainerSearchSession
Implementsosid.offering.rules.OfferingConstrainerQuerySession
Description

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

getOfferingConstrainersByQuery() is the basic search method and returns a list of OfferingConstrainers. A more advanced search may be performed with getOfferingConstrainersBySearch(). It accepts an OfferingConstrainerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as offering. getOfferingConstrainersBySearch() returns an OfferingConstrainerSearchResults that can be used to access the resulting OfferingConstrainerList or be used to perform a search within the result set through OfferingConstrainerSearch.

This session defines views that offer differing behaviors for searching.

  • federated catalogue view: searches include offering constrainer in catalogues of which this catalogue is an ancestor in the catalogue hierarchy
  • isolated catalogue view: searches are restricted to offering constrainer in this catalogue

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

MethodgetOfferingConstrainerSearch
Description

Gets an offering constrainer search.

Returnosid.offering.rules.OfferingConstrainerSearchthe offering constrainer search
CompliancemandatoryThis method must be implemented.
MethodgetOfferingConstrainerSearchOrder
Description

Gets an offering constrainer search order. The OfferingConstrainerSearchOrder is supplied to an OfferingConstrainerSearch to specify the ordering of results.

Returnosid.offering.rules.OfferingConstrainerSearchOrderthe offering constrainer search order
CompliancemandatoryThis method must be implemented.
MethodgetOfferingConstrainersBySearch
Description

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

Parametersosid.offering.rules.OfferingConstrainerQueryofferingConstrainerQuerythe offering constrainer query
osid.offering.rules.OfferingConstrainerSearchofferingConstrainerSearchthe offering constrainer search
Returnosid.offering.rules.OfferingConstrainerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT offeringConstrainerQuery or offeringConstrainerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED offeringConstrainerQuery or offeringConstrainerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetOfferingConstrainerQueryFromInspector
Description

Gets an offering constrainer query from an inspector. The inspector is available from an OfferingConstrainerSearchResults.

Parametersosid.offering.rules.OfferingConstrainerQueryInspectorofferingConstrainerQueryInspectoran offering constrainer query inspector
Returnosid.offering.rules.OfferingConstrainerQuerythe offering constrainer query
ErrorsNULL_ARGUMENT offeringConstrainerQueryInspector is null
UNSUPPORTED offeringConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.