OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.EnrollmentQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.course.chronicle.ProgramEntryQuery
osid.course.program.EnrollmentQuery
osid.course.program.EnrollmentQuerySession
osid.course.program.EnrollmentSearchSession
osid.course.program.EnrollmentSmartCourseCatalogSession
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.IdprogramOfferingId a program offering Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT programOfferingId is null
Compliancemandatory This method must be implemented.
MethodclearProgramOfferingIdTerms
Description

Clears the program offering Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProgramOfferingQuery
Description

Tests if a ProgramOffering is available.

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

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

Returnosid.course.program.ProgramOfferingQuery the program offering query
ErrorsUNIMPLEMENTED supportsProgramOfferingQuery() is false
Complianceoptional This method must be implemented if supportsProgramOfferingQuery() is true.
MethodclearProgramOfferingTerms
Description

Clears the program offering terms.

Compliancemandatory This method must be implemented.
MethodmatchStudentId
Description

Sets the student resource Id for this query.

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

Clears the student resource Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsStudentQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsStudentQuery() is false
Complianceoptional This method must be implemented if supportsStudentQuery() is true.
MethodclearStudentTerms
Description

Clears the student resource terms.

Compliancemandatory This method must be implemented.
MethodmatchParentEnrollmentId
Description

Sets the parent enrollment Id for this query.

Parametersosid.id.IdenrollmentId a parent enrollment Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT enrollmentId is null
Compliancemandatory This method must be implemented.
MethodclearParentEnrollmentIdTerms
Description

Clears the parent enrollment Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsParentEnrollmentQuery
Description

Tests if a EnrollmentQuery is available.

Returnboolean true if a parent enrollment query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetParentEnrollmentQuery
Description

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

Returnosid.course.program.EnrollmentQuery the parent enrollment query
ErrorsUNIMPLEMENTED supportsParentEnrollmentQuery() is false
Complianceoptional This method must be implemented if supportsParentEnrollmentQuery() is true.
MethodmatchAnyParentEnrollment
Description

Matches enrollments with any parent enrollment.

Parametersbooleanmatch true to match enrollments with any parent enrollment, false to match enrollments with no parent enrollment
Compliancemandatory This method must be implemented.
MethodclearParentEnrollmentTerms
Description

Clears the parent enrollment terms.

Compliancemandatory This method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query.

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

Clears the course catalog Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCourseCatalogQuery
Description

Tests if a CourseCatalogQuery is available.

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

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

Returnosid.course.CourseCatalogQuery the course catalog query
ErrorsUNIMPLEMENTED supportsCourseCatalogQuery() is false
Complianceoptional This method must be implemented if supportsCourseCatalogQuery() is true.
MethodclearCourseCatalogTerms
Description

Clears the course catalog terms.

Compliancemandatory This 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.TypeenrollmentRecordType an enrollment record type
Returnosid.course.program.records.EnrollmentQueryRecord the enrollment query record
ErrorsNULL_ARGUMENT enrollmentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(enrollmentRecordType) is false
Compliancemandatory This method must be implemented.