OSID Logo
OSID Specifications
offering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.rules.CanonicalUnitProcessorSearchSession
Implementsosid.offering.rules.CanonicalUnitProcessorQuerySession
Description

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

getCanonicalUnitProcessorsByQuery() is the basic search method and returns a list of CanonicalUnitProcessors. A more advanced search may be performed with getCanonicalUnitProcessorsBySearch(). It accepts a CanonicalUnitProcessorSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as offering. getCanonicalUnitProcessorsBySearch() returns a CanonicalUnitProcessorSearchResults that can be used to access the resulting CanonicalUnitProcessorList or be used to perform a search within the result set through CanonicalUnitProcessorSearch.

This session defines views that offer differing behaviors for searching.

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

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

MethodgetCanonicalUnitProcessorSearch
Description

Gets a canonical unit processor search.

Returnosid.offering.rules.CanonicalUnitProcessorSearchthe canonical unit processor search
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitProcessorSearchOrder
Description

Gets a canonical unit processor search order. The CanonicalUnitProcessorSearchOrder is supplied to a CanonicalUnitProcessorSearch to specify the ordering of results.

Returnosid.offering.rules.CanonicalUnitProcessorSearchOrderthe canonical unit processor search order
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitProcessorsBySearch
Description

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

Parametersosid.offering.rules.CanonicalUnitProcessorQuerycanonicalUnitProcessorQuerythe canonical unit processor query
osid.offering.rules.CanonicalUnitProcessorSearchcanonicalUnitProcessorSearchthe canonical unit processor search
Returnosid.offering.rules.CanonicalUnitProcessorSearchResultsthe returned search results
ErrorsNULL_ARGUMENT canonicalUnitProcessorQuery or canonicalUnitProcessorSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED canonicalUnitProcessorQuery or canonicalUnitProcessorSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitProcessorQueryFromInspector
Description

Gets a canonical unit processor query from an inspector. The inspector is available from a CanonicalUnitProcessorSearchResults.

Parametersosid.offering.rules.CanonicalUnitProcessorQueryInspectorcanonicalUnitProcessorQueryInspectora canonical unit processor query inspector
Returnosid.offering.rules.CanonicalUnitProcessorQuerythe canonical unit processor query
ErrorsNULL_ARGUMENT canonicalUnitProcessorQueryInspector is null
UNSUPPORTED canonicalUnitProcessorQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.