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

This session provides methods for searching Docets. The search query is constructed using the DocetQuery. The docet record Type also specifies the record for the docet query.

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

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

MethodgetDocetSearch
Description

Gets a docet search.

Returnosid.course.syllabus.DocetSearch the docet search
Compliancemandatory This method must be implemented.
MethodgetDocetSearchOrder
Description

Gets a docet search order. The DocetSearchOrder is supplied to a DocetSearch to specify the ordering of results.

Returnosid.course.syllabus.DocetSearchOrder the docet search order
Compliancemandatory This method must be implemented.
MethodgetDocetsBySearch
Description

Gets the search results matching the given search.

Parametersosid.course.syllabus.DocetQuerydocetQuery the docet query
osid.course.syllabus.DocetSearchdocetSearch the docet search
Returnosid.course.syllabus.DocetSearchResults the docet search results
ErrorsNULL_ARGUMENT docetQuery or docetSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED docetQuery or docetSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetDocetQueryFromInspector
Description

Gets a docet query from an inspector. The inspector is available from a DocetSearchResults.

Parametersosid.course.syllabus.DocetQueryInspectordocetQueryInspector a docet query inspector
Returnosid.course.syllabus.DocetQuery the course catalog query
ErrorsNULL_ARGUMENT docetQueryInspector is null
UNSUPPORTED docetQueryInspector is not of this service
Compliancemandatory This method must be implemented.