OSID Logo
OSID Specifications
course plan package
Version 3.1.0
Interfaceosid.course.plan.LessonSearchSession
Implementsosid.course.plan.LessonQuerySession
Used Byosid.course.plan.CoursePlanManager
osid.course.plan.CoursePlanProxyManager
Description

This session provides methods for searching Lessons. The search query is constructed using the LessonQuery. The lesson record Type also specifies the record for the lesson query.

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

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

MethodgetLessonSearch
Description

Gets a lesson search.

Returnosid.course.plan.LessonSearch the lesson search
Compliancemandatory This method must be implemented.
MethodgetLessonSearchOrder
Description

Gets a lesson search order. The LessonSearchOrder is supplied to a LessonSearch to specify the ordering of results.

Returnosid.course.plan.LessonSearchOrder the lesson search order
Compliancemandatory This method must be implemented.
MethodgetLessonsBySearch
Description

Gets the search results matching the given search.

Parametersosid.course.plan.LessonQuerylessonQuery the lesson query
osid.course.plan.LessonSearchlessonSearch the lesson search
Returnosid.course.plan.LessonSearchResults the lesson search results
ErrorsNULL_ARGUMENT lessonQuery or lessonSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED lessonQuery or lessonSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetLessonQueryFromInspector
Description

Gets a lesson query from an inspector. The inspector is available from a LessonSearchResults.

Parametersosid.course.plan.LessonQueryInspectorlessonQueryInspector a lesson query inspector
Returnosid.course.plan.LessonQuery the course catalog query
ErrorsNULL_ARGUMENT lessonQueryInspector is null
UNSUPPORTED lessonQueryInspector is not of this service
Compliancemandatory This method must be implemented.