OSID Logo
OSID Specifications
course program package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.program.EnrollmentQuery
Implementsosid.OsidRelationshipQuery
Description

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

MethodmatchProgramOfferingId
Description

Sets the program offering Id for this query.

Parametersosid.id.IdprogramOfferingIda program offering Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT programOfferingId is null
CompliancemandatoryThis method must be implemented.
MethodclearProgramOfferingIdTerms
Description

Clears the program offering Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProgramOfferingQuery
Description

Tests if a ProgramOffering is available.

Returnboolean true if a program offering query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProgramOfferingQuery
Description

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

Returnosid.course.program.ProgramOfferingQuerythe program offering query
ErrorsUNIMPLEMENTED supportsProgramOfferingQuery() is false
ComplianceoptionalThis method must be implemented if supportsProgramOfferingQuery() is true.
MethodclearProgramOfferingTerms
Description

Clears the program offering 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.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query.

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.
MethodgetEnrollmentQueryRecord
Description

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

Parametersosid.type.TypeenrollmentRecordTypean enrollment record type
Returnosid.course.program.records.EnrollmentQueryRecordthe enrollment query record
ErrorsNULL_ARGUMENT enrollmentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(enrollmentRecordType) is false
CompliancemandatoryThis method must be implemented.