OSID Logo
OSID Specifications
offering rules package
Version 3.1.0
Interfaceosid.offering.rules.OfferingConstrainerSearchSession
Implementsosid.offering.rules.OfferingConstrainerQuerySession
Used Byosid.offering.rules.OfferingRulesManager
osid.offering.rules.OfferingRulesProxyManager
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.OfferingConstrainerSearch the offering constrainer search
Compliancemandatory This 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.OfferingConstrainerSearchOrder the offering constrainer search order
Compliancemandatory This method must be implemented.
MethodgetOfferingConstrainersBySearch
Description

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

Parametersosid.offering.rules.OfferingConstrainerQueryofferingConstrainerQuery the offering constrainer query
osid.offering.rules.OfferingConstrainerSearchofferingConstrainerSearch the offering constrainer search
Returnosid.offering.rules.OfferingConstrainerSearchResults the returned search results
ErrorsNULL_ARGUMENT offeringConstrainerQuery or offeringConstrainerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED offeringConstrainerQuery or offeringConstrainerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetOfferingConstrainerQueryFromInspector
Description

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

Parametersosid.offering.rules.OfferingConstrainerQueryInspectorofferingConstrainerQueryInspector an offering constrainer query inspector
Returnosid.offering.rules.OfferingConstrainerQuery the offering constrainer query
ErrorsNULL_ARGUMENT offeringConstrainerQueryInspector is null
UNSUPPORTED offeringConstrainerQueryInspector is not of this service
Compliancemandatory This method must be implemented.