OSID Logo
OSID Specifications
course plan package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.plan.PlanSearchSession
Implementsosid.course.plan.PlanQuerySession
Description

This session provides methods for searching Plan objects. The search query is constructed using the PlanQuery. The plan record Type also specifies the record for the plan query.

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

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

MethodgetPlanSearch
Description

Gets a plan search.

Returnosid.course.plan.PlanSearchthe plan search
CompliancemandatoryThis method must be implemented.
MethodgetPlanSearchOrder
Description

Gets a plan search order. The PlanSearchOrder is supplied to a PlanSearch to specify the ordering of results.

Returnosid.course.plan.PlanSearchOrderthe plan search order interface
CompliancemandatoryThis method must be implemented.
MethodgetPlansBySearch
Description

Gets the search results matching the given search.

Parametersosid.course.plan.PlanQueryplanQuerythe plan query
osid.course.plan.PlanSearchplanSearchthe plan search
Returnosid.course.plan.PlanSearchResultsthe plan search results
ErrorsNULL_ARGUMENT planQuery or planSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED planQuery or planSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetPlanQueryFromInspector
Description

Gets a plan query from an inspector. The inspector is available from an PlanSearchResults.

Parametersosid.course.plan.PlanQueryInspectorplanQueryInspectora plan query inspector
Returnosid.course.plan.PlanQuerythe plan query
ErrorsNULL_ARGUMENT planQueryInspector is null
UNSUPPORTED planQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.