OSID Logo
OSID Specifications
grading package
Version 3.1.0
Interfaceosid.grading.GradeSearchSession
Implementsosid.grading.GradeQuerySession
Used Byosid.grading.GradingManager
osid.grading.GradingProxyManager
Description

This session provides methods for searching among Grades. The search query is constructed using the GradeQuery.

getGradesByQuery() is the basic search method and returns a list of Grades. A more advanced search may be performed with getGradesBySearch(). It accepts a GradeSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getGradesBySearch() returns a GradeSearchResults that can be used to access the resulting GradeList or be used to perform a search within the result set through Gra deSearch .

This session defines views that offer differing behaviors for searching.

  • federated gradebook view: searches include grades in gradebooks of which this gradebook is an ancestor in the gradebook hierarchy
  • isolated gradebook view: searches are restricted to grades in this gradebook

Grades may have a query record indicated by their respective record types. The query record is accessed via the GradeQuery.

MethodgetGradeSearch
Description

Gets a grade search.

Returnosid.grading.GradeSearch the grade search
Compliancemandatory This method must be implemented.
MethodgetGradeSearchOrder
Description

Gets a grade search order. The GradeSearchOrder is supplied to a GradeSearch to specify the ordering of results.

Returnosid.grading.GradeSearchOrder the grade search order
Compliancemandatory This method must be implemented.
MethodgetGradesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.grading.GradeQuerygradeQuery the grade query
osid.grading.GradeSearchgradeSearch the grade search
Returnosid.grading.GradeSearchResults the returned search results
ErrorsNULL_ARGUMENT gradeQuery or gradeSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED gradeQuery or gradeSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetGradeQueryFromInspector
Description

Gets a grade query from an inspector. The inspector is available from a GradeSearchResults.

Parametersosid.grading.GradeQueryInspectorgradeQueryInspector a grade query inspector
Returnosid.grading.GradeQuery the grade query
ErrorsNULL_ARGUMENT gradeQueryInspector is null
UNSUPPORTED gradeQueryInspector is not of this service
Compliancemandatory This method must be implemented.