OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.CourseCatalogSearchSession
Implementsosid.course.CourseCatalogQuerySession
Description

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

getCourseCatalogsByQuery() is the basic search method and returns a list of CourseCatalogs. A more advanced search may be performed with getCourseCatalogsBySearch(). It accepts a CourseCatalogSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCourseCatalogsBySearch() returns a CourseCatalogSearchResults that can be used to access the resulting CourseCatalogList or be used to perform a search within the result set through CourseCatalogSearch.

This session defines views that offer differing behaviors for searching.

  • federated course catalog view: searches include course catalogs in course catalogs of which this course catalog is an ancestor in the course catalog hierarchy
  • isolated course catalog view: searches are restricted to course catalogs in this course catalog

Course catalogs may have a query record indicated by their respective record types. The query record is accessed via the CourseCatalogQuery.

MethodgetCourseCatalogSearch
Description

Gets a course catalog search.

Returnosid.course.CourseCatalogSearchthe course catalog search
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogSearchOrder
Description

Gets a course catalog search order. The CourseCatalogSearchOrder is supplied to a CourseCatalogSearch to specify the ordering of results.

Returnosid.course.CourseCatalogSearchOrderthe course catalog search order
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogsBySearch
Description

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

Parametersosid.course.CourseCatalogQuerycourseCatalogQuerythe course catalog query
osid.course.CourseCatalogSearchcourseCatalogSearchthe course catalog search
Returnosid.course.CourseCatalogSearchResultsthe course catalog search results
ErrorsNULL_ARGUMENT courseCatalogQuery or courseCatalogSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED courseCatalogQuery or courseCatalogSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogQueryFromInspector
Description

Gets a course catalog query from an inspector. The inspector is available from a CourseCatalogSearchResults.

Parametersosid.course.CourseCatalogQueryInspectorcourseCatalogQueryInspectora course catalog query inspector
Returnosid.course.CourseCatalogQuerythe course catalog query
ErrorsNULL_ARGUMENT courseCatalogQueryInspector is null
UNSUPPORTED courseCatalogQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.