| Interface | osid.course.program.ProgramSearchSession | ||
|---|---|---|---|
| Implements | osid.course.program.ProgramQuerySession | ||
| Used By | osid.course.program.CourseProgramManager | ||
osid.course.program.CourseProgramProxyManager | |||
| Description |
This session provides methods for searching among
getProgramsByQuery() is the basic search method
and returns a list of Programs. A more advanced
search may be performed with
getProgramsBySearch().It accepts a
ProgramSearch in addition to the query for the
purpose of specifying additional options affecting the entire
search, such as ordering. getProgramsBySearch()
returns a ProgramSearchResults that can be used
to access the resulting ProgramList or be used to
perform a search within the result set through
ProgramSearch.
This session defines views that offer differing behaviors for searching.
Programs may have a query record indicated by their
respective record types. The query record is accessed via the
| ||
| Method | getProgramSearch | ||
| Description |
Gets a program search. | ||
| Return | osid.course.program.ProgramSearch | the program search | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProgramSearchOrder | ||
| Description |
Gets a program search order. The
| ||
| Return | osid.course.program.ProgramSearchOrder | the program search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProgramsBySearch | ||
| Description |
Gets the search results matching the given search query using the given search. | ||
| Parameters | osid.course.program.ProgramQuery | programQuery | the program query |
osid.course.program.ProgramSearch | programSearch | the program search | |
| Return | osid.course.program.ProgramSearchResults | the program search results | |
| Errors | NULL_ARGUMENT | programQuery or programSearch is
null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | programQuery or programSearch is not of this
service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getProgramQueryFromInspector | ||
| Description |
Gets a program query from an inspector. The inspector
is available from a | ||
| Parameters | osid.course.program.ProgramQueryInspector | programQueryInspector | a program query inspector |
| Return | osid.course.program.ProgramQuery | the program query | |
| Errors | NULL_ARGUMENT | programQueryInspector is null | |
| UNSUPPORTED | programQueryInspector is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |