OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.CourseOfferingSearchSession
Implementsosid.course.CourseOfferingQuerySession
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated course catalog view: searches include course offerings 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 offerings in this course catalog

Course Offerings may have a query record indicated by their respective record types. The queryrecord is accessed via the CourseOfferingQuery.

MethodgetCourseOfferingSearch
Description

Gets a course offering search.

Returnosid.course.CourseOfferingSearchthe course offering search
CompliancemandatoryThis method must be implemented.
MethodgetCourseOfferingSearchOrder
Description

Gets a course offering search order. The CourseOfferingSearchOrder is supplied to a CourseOfferingSearch to specify the ordering of results.

Returnosid.course.CourseOfferingSearchOrderthe course offering search order
CompliancemandatoryThis method must be implemented.
MethodgetCourseOfferingsBySearch
Description

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

Parametersosid.course.CourseOfferingQuerycourseOfferingQuerythe course offering query
osid.course.CourseOfferingSearchcourseOfferingSearchthe course offering search
Returnosid.course.CourseOfferingSearchResultsthe course offering search results
ErrorsNULL_ARGUMENT courseOfferingQuery or courseOfferingSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED courseOfferingQuery or courseOfferingSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCourseOfferingQueryFromInspector
Description

Gets a course offering query from an inspector. The inspector is available from a CourseOfferingSearchResults.

Parametersosid.assessment.ItemQueryInspectorcourseOfferingQueryInspectora course offering query inspector
Returnosid.course.CourseOfferingQuerythe course offering query
ErrorsNULL_ARGUMENT courseOfferingQueryInspector is null
UNSUPPORTED courseOfferingQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.