OSID Logo
OSID Specifications
offering package
Version 3.1.0
Interfaceosid.offering.CanonicalUnitSearchSession
Implementsosid.offering.CanonicalUnitQuerySession
Used Byosid.offering.OfferingManager
osid.offering.OfferingProxyManager
Description

This session provides methods for searching CanonicalUnits. The search query is constructed using the CanonicalUnitQuery. The canonical unit record Type also specifies the record for the canonical unit query.

getCanonicalUnitsByQuery() is the basic search method and returns a list of CanonicalUnit elements. A more advanced search may be performed with getCanonicalUnitsBySearch(). It accepts a CanonicalUnitSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCanonicalUnitsBySearch() returns a CanonicalUnitSearchResults that can be used to access the resulting CanonicalUnitList or be used to perform a search within the result set through CanonicalUnitSearch.

This session defines views that offer differing behaviors for searching.

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

CanonicalUnits may have a query record indicated by their respective record types. The query record is accessed via the CanonicalUnitQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetCanonicalUnitSearch
Description

Gets a canonical unit search.

Returnosid.offering.CanonicalUnitSearch the canonical unit search
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitSearchOrder
Description

Gets a canonical unit search order. The CanonicalUnitSearchOrder is supplied to a CanonicalUnitSearch to specify the ordering of results.

Returnosid.offering.CanonicalUnitSearchOrder the canonical unit search order
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitsBySearch
Description

Gets the search results matching the given search.

Parametersosid.offering.CanonicalUnitQuerycanonicalUnitQuery the canonical unit query
osid.offering.CanonicalUnitSearchcanonicalUnitSearch the canonical unit search
Returnosid.offering.CanonicalUnitSearchResults the search results
ErrorsNULL_ARGUMENT canonicalUnitQuery or canonicalUnitSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED canonicalUnitQuery or canonicalUnitSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitQueryFromInspector
Description

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

Parametersosid.offering.CanonicalUnitQueryInspectorcanonicalUnitQueryInspector a canonical unit query inspector
Returnosid.offering.CanonicalUnitQuery the canonical unit query
ErrorsNULL_ARGUMENT canonicalUnitQueryInspector is null
UNSUPPORTED canonicalUnitQueryInspector is not of this service
Compliancemandatory This method must be implemented.