OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.registration.RegistrationQuery
Implementsosid.OsidRelationshipQuery
Description

This is the query for searching registrations. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchActivityBundleId
Description

Sets the activity bundle Id for this query to match registrations that have a related course.

Parametersosid.id.IdactivityBundleIdan activity bundle Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT activityBundleId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivityBundleIdTerms
Description

Clears the activity bundle Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityBundleQuery
Description

Tests if an ActivityBundleQuery is available.

Returnboolean true if an activity bundle query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetActivityBundleQuery
Description

Gets the query for an activity bundle. Multiple retrievals produce a nested OR term.

Returnosid.course.registration.ActivityBundleQuerythe activity bundle query
ErrorsUNIMPLEMENTED supportsActivityBundleQuery() is false
ComplianceoptionalThis method must be implemented if supportsActivityBundleQuery() is true.
MethodclearActivityBundleTerms
Description

Clears the activity bundle terms.

CompliancemandatoryThis method must be implemented.
MethodmatchStudentId
Description

Sets the student resource Id for this query.

Parametersosid.id.IdresourceIda resource Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearStudentIdTerms
Description

Clears the student resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStudentQuery
Description

Tests if a ResourceQuery is available.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetStudentQuery
Description

Gets the query for a student. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsStudentQuery() is false
ComplianceoptionalThis method must be implemented if supportsStudentQuery() is true.
MethodclearStudentTerms
Description

Clears the student resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCredits
Description

Matches registrations with credits between the given numbers inclusive.

Parametersdecimalminlow number
decimalmaxhigh number
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT max is less than min
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCredits
Description

Matches a registration that has any credits assigned.

Parametersbooleanmatch true to match registrations with any credits, false to match registrations with no credits
CompliancemandatoryThis method must be implemented.
MethodclearCreditsTerms
Description

Clears the credit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGradingOptionId
Description

Sets the grade system Id for this query.

Parametersosid.id.IdgradeSystemIda grade system Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT gradeSystemId is null
CompliancemandatoryThis method must be implemented.
MethodclearGradingOptionIdTerms
Description

Clears the grade system Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGradingOptionQuery
Description

Tests if a GradeSystemQuery is available.

Returnboolean true if a grade system query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradingOptionQuery
Description

Gets the query for a grading option. Multiple retrievals produce a nested OR term.

Returnosid.grading.GradeSystemQuerya grade system query
ErrorsUNIMPLEMENTED supportsGradingOptionQuery() is false
ComplianceoptionalThis method must be implemented if supportsGradingOptionQuery() is true.
MethodmatchAnyGradingOption
Description

Matches registrations that have any grading option.

Parametersbooleanmatch true to match registrations with any grading option, false to match registrations with no grading options
CompliancemandatoryThis method must be implemented.
MethodclearGradingOptionTerms
Description

Clears the grading option terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query to match registrations assigned to course catalogs.

Parametersosid.id.IdcourseCatalogIdthe course catalog Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseCatalogId is null
CompliancemandatoryThis method must be implemented.
MethodclearCourseCatalogIdTerms
Description

Clears the course catalog Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCourseCatalogQuery
Description

Tests if a CourseCatalogQuery is available.

Returnboolean true if a course catalog query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogQuery
Description

Gets the query for a course catalog. Multiple retrievals produce a nested OR term.

Returnosid.course.CourseCatalogQuerythe course catalog query
ErrorsUNIMPLEMENTED supportsCourseCatalogQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseCatalogQuery() is true.
MethodclearCourseCatalogTerms
Description

Clears the course catalog terms.

CompliancemandatoryThis method must be implemented.
MethodgetRegistrationQueryRecord
Description

Gets the registration query record corresponding to the given Registration record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperegistrationRecordTypea registration record type
Returnosid.course.registration.records.RegistrationQueryRecordthe registration query record
ErrorsNULL_ARGUMENT registrationRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(registrationRecordType) is false
CompliancemandatoryThis method must be implemented.