OSID Logo
OSID Specifications
course syllabus package
Version 3.1.0
Interfaceosid.course.syllabus.ModuleSearchSession
Implementsosid.course.syllabus.ModuleQuerySession
Used Byosid.course.syllabus.CourseSyllabusManager
osid.course.syllabus.CourseSyllabusProxyManager
Description

This session provides methods for searching Modules. The search query is constructed using the ModuleQuery. The module record Type also specifies the record for the module query.

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

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

MethodgetModuleSearch
Description

Gets a module search.

Returnosid.course.syllabus.ModuleSearch the module search
Compliancemandatory This method must be implemented.
MethodgetModuleSearchOrder
Description

Gets a module search order. The ModuleSearchOrder is supplied to a ModuleSearch to specify the ordering of results.

Returnosid.course.syllabus.ModuleSearchOrder the module search order interface
Compliancemandatory This method must be implemented.
MethodgetModulesBySearch
Description

Gets the search results matching the given search.

Parametersosid.course.syllabus.ModuleQuerymoduleQuery the module query
osid.course.syllabus.ModuleSearchmoduleSearch the module search
Returnosid.course.syllabus.ModuleSearchResults the module search results
ErrorsNULL_ARGUMENT moduleQuery or moduleSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED moduleQuery or moduleSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetModuleQueryFromInspector
Description

Gets a module query from an inspector. The inspector is available from a ModuleSearchResults.

Parametersosid.course.syllabus.ModuleQueryInspectormoduleQueryInspector a module query inspector
Returnosid.course.syllabus.ModuleQuery the module query
ErrorsNULL_ARGUMENT moduleQueryInspector is null
UNSUPPORTED moduleQueryInspector is not of this service
Compliancemandatory This method must be implemented.