| Interface | osid.ontology.SubjectSearchSession | ||
|---|---|---|---|
| Implements | osid.ontology.SubjectQuerySession | ||
| Used By | osid.ontology.OntologyManager | ||
osid.ontology.OntologyProxyManager | |||
| Description |
This session provides methods for searching
getSubjectsByQuery() is the basic search method
and returns a list of Subjects. A more advanced
search may be performed with
getSubjectsBySearch().It accepts a
SubjectSearch in addition to the query for the
purpose of specifying additional options affecting the entire
search, such as ordering. getSubjectsBySearch()
returns a SubjectSearchResults that can be used
to access the resulting SubjectList or be used to
perform a search within the result set through
SubjectSearch.
This session defines views that offer differing behaviors for searching.
Subjects may have a query record indicated by their
respective record types. The query record is accessed via the
| ||
| Method | getSubjectSearch | ||
| Description |
Gets a subject search. | ||
| Return | osid.ontology.SubjectSearch | the subject search | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectSearchOrder | ||
| Description |
Gets a subject search order. The
| ||
| Return | osid.ontology.SubjectSearchOrder | the subject search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectsBySearch | ||
| Description |
Gets the search results matching the given search query using the given search. | ||
| Parameters | osid.ontology.SubjectQuery | subjectQuery | the subject query |
osid.ontology.SubjectSearch | subjectSearch | the subject search | |
| Return | osid.ontology.SubjectSearchResults | the subject search results | |
| Errors | NULL_ARGUMENT | subjectQuery or subjectSearch is
null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | subjectSearch or subjectQuery is not of this
service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectQueryFromInspector | ||
| Description |
Gets a subject query from an inspector. The inspector
is available from a | ||
| Parameters | osid.ontology.SubjectQueryInspector | subjectQueryInspector | a subject query inspector |
| Return | osid.ontology.SubjectQuery | the subject query | |
| Errors | NULL_ARGUMENT | subjectQueryInspector is null | |
| UNSUPPORTED | subjectQueryInspector is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |