OSID Logo
OSID Specifications
grading package
Version 3.0.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.GradeSearchthe grade search
CompliancemandatoryThis 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.GradeSearchOrderthe grade search order
CompliancemandatoryThis method must be implemented.
MethodgetGradesBySearch
Description

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

Parametersosid.grading.GradeQuerygradeQuerythe grade query
osid.grading.GradeSearchgradeSearchthe grade search
Returnosid.grading.GradeSearchResultsthe returned search results
ErrorsNULL_ARGUMENTgradeQuery or gradeSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDgradeQuery or gradeSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetGradeQueryFromInspector
Description

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

Parametersosid.grading.GradeQueryInspectorgradeQueryInspectora grade query inspector
Returnosid.grading.GradeQuerythe grade query
ErrorsNULL_ARGUMENTgradeQueryInspector is null
UNSUPPORTEDgradeQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.