OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradebookSearchSession
Implementsosid.grading.GradebookQuerySession
Description

This session provides methods for searching among Gradebook objects. The search query is constructed using the GradebookQuery.

getGradebooksByQuery() is the basic search method and returns a list of Gradebook objects.A more advanced search may be performed with getGradebooksBySearch(). It accepts a GradebookSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getGradebooksBySearch() returns a GradebookSearchResults that can be used to access the resulting GradebookList or be used to perform a search within the result set through GradebookSearch.

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

MethodgetGradebookSearch
Description

Gets a gradebook search.

Returnosid.grading.GradebookSearcha gradebook search
CompliancemandatoryThis method must be implemented.
MethodgetGradebookSearchOrder
Description

Gets a gradebook search order. The GradebookSearchOrder is supplied to a GradebookSearch to specify the ordering of results.

Returnosid.grading.GradebookSearchOrderthe gradebook search order
CompliancemandatoryThis method must be implemented.
MethodgetGradebooksBySearch
Description

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

Parametersosid.grading.GradebookQuerygradebookQuerythe gradebook query
osid.grading.GradebookSearchgradebookSearchthe gradebook search
Returnosid.grading.GradebookSearchResultsthe gradebook search results
ErrorsNULL_ARGUMENT gradebookQuery or gradebookSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED gradebookQuery or gradebookSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetGradebookQueryFromInspector
Description

Gets a gradebook query from an inspector. The inspector is available from an GradenookSearchResults.

Parametersosid.grading.GradebookQueryInspectorgradebookQueryInspectora gradebook query inspector
Returnosid.grading.GradebookQuerythe gradebook query
ErrorsNULL_ARGUMENT gradebookQueryInspector is null
UNSUPPORTED gradebookQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.