OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradebookColumnSearchSession
Implementsosid.grading.GradebookColumnQuerySession
Description

This session provides methods for searching GradebookColumn objects. The search query is constructed using the GradebookColumnQuery.

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

This session defines views that offer differing behaviors for searching.

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

Gradebook columns may have a query record indicated by their respective record types. The query record is accessed via the GradebookColumnQuery.

MethodgetGradebookColumnSearch
Description

Gets a gradebook column search.

Returnosid.grading.GradebookColumnSearchthe gradebook column search
CompliancemandatoryThis method must be implemented.
MethodgetGradebookColumnSearchOrder
Description

Gets a gradebook column search order. The GradebookColumnSearchOrder is supplied to a GradebookColumnSearch to specify the ordering of results.

Returnosid.grading.GradebookColumnSearchOrderthe gradebook column search order
CompliancemandatoryThis method must be implemented.
MethodgetGradebookColumnsBySearch
Description

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

Parametersosid.grading.GradebookColumnQuerygradebookColumnQuerythe gradebook column query
osid.grading.GradebookColumnSearchgradebookColumnSearchthe gradebook column search
Returnosid.grading.GradebookColumnSearchResultsthe gradebook column search results
ErrorsNULL_ARGUMENT gradebookColumnQuery or gradebookColumnSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED gradebookColumnSearch or gradebookColumnQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetGradebookColumnQueryFromInspector
Description

Gets a gradebook column query from an inspector. The inspector is available from an GradebookColumnSearchResults.

Parametersosid.grading.GradebookColumnQueryInspectorgradebookColumnQueryInspectora gradebook column query inspector
Returnosid.grading.GradebookColumnQuerythe gradebook column query
ErrorsNULL_ARGUMENT gradebookColumnQueryInspector is null
UNSUPPORTED gradebookColumnQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.