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

This session provides methods for searching Plans. 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.PlanSearch the plan search
Compliancemandatory This 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.PlanSearchOrder the plan search order interface
Compliancemandatory This method must be implemented.
MethodgetPlansBySearch
Description

Gets the search results matching the given search.

Parametersosid.course.plan.PlanQueryplanQuery the plan query
osid.course.plan.PlanSearchplanSearch the plan search
Returnosid.course.plan.PlanSearchResults the plan search results
ErrorsNULL_ARGUMENT planQuery or planSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED planQuery or planSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetPlanQueryFromInspector
Description

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

Parametersosid.course.plan.PlanQueryInspectorplanQueryInspector a plan query inspector
Returnosid.course.plan.PlanQuery the plan query
ErrorsNULL_ARGUMENT planQueryInspector is null
UNSUPPORTED planQueryInspector is not of this service
Compliancemandatory This method must be implemented.