| Interface | osid.ontology.SubjectQuerySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session provides methods for searching  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 | getOntologyId | ||
| Description | Gets the  | ||
| Return | osid.id.Id | the  Ontology Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOntology | ||
| Description | Gets the  | ||
| Return | osid.ontology.Ontology | the  Ontology associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canSearchSubjects | ||
| Description | Tests if this user can perform  | ||
| Return | boolean |  false if search methods are not authorized, true 
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedOntologyView | ||
| Description | Federates the view for methods in this session. A federated view will include subjects in ontologies which are children of this ontology in the ontology hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedOntologyView | ||
| Description | Isolates the view for methods in this session. An isolated view restricts searches to this ontology only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getSubjectQuery | ||
| Description | Gets a subject query. | ||
| Return | osid.ontology.SubjectQuery | the subject query | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubjectsByQuery | ||
| Description | Gets a list of  | ||
| Parameters | osid.ontology.SubjectQuery | subjectQuery | the subject query | 
| Return | osid.ontology.SubjectList | the returned  SubjectList  | |
| Errors | NULL_ARGUMENT |  subjectQuery is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  subjectQuery is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |