OSID Logo
OSID Specifications
course package
Version 3.1.0
Interfaceosid.course.CourseCatalogSearchSession
Implementsosid.course.CourseCatalogQuerySession
Used Byosid.course.CourseManager
osid.course.CourseProxyManager
Description

This session provides methods for searching among CourseCatalogs. 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.CourseCatalogSearch the course catalog search
Compliancemandatory This 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.CourseCatalogSearchOrder the course catalog search order
Compliancemandatory This method must be implemented.
MethodgetCourseCatalogsBySearch
Description

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

Parametersosid.course.CourseCatalogQuerycourseCatalogQuery the course catalog query
osid.course.CourseCatalogSearchcourseCatalogSearch the course catalog search
Returnosid.course.CourseCatalogSearchResults the course catalog search results
ErrorsNULL_ARGUMENT courseCatalogQuery or courseCatalogSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED courseCatalogQuery or courseCatalogSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetCourseCatalogQueryFromInspector
Description

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

Parametersosid.course.CourseCatalogQueryInspectorcourseCatalogQueryInspector a course catalog query inspector
Returnosid.course.CourseCatalogQuery the course catalog query
ErrorsNULL_ARGUMENT courseCatalogQueryInspector is null
UNSUPPORTED courseCatalogQueryInspector is not of this service
Compliancemandatory This method must be implemented.