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

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

MethodmatchRegistrationId
Description

Sets the registration Id for this query.

Parametersosid.id.IdregistrationIda registration Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT registrationId is null
CompliancemandatoryThis method must be implemented.
MethodclearRegistrationIdTerms
Description

Clears the registration Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRegistrationQuery
Description

Tests if a RegistrationQuery is available.

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

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

Returnosid.course.registration.RegistrationQuerythe registration query
ErrorsUNIMPLEMENTED supportsRegistrationQuery() is false
ComplianceoptionalThis method must be implemented if supportsRegistrationQuery() is true.
MethodclearRegistrationTerms
Description

Clears the registration terms.

CompliancemandatoryThis method must be implemented.
MethodmatchActivityId
Description

Sets the activity Id for this query.

Parametersosid.id.IdactivityIdan activity Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT activityId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivityIdTerms
Description

Clears the activity Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityQuery
Description

Tests if an ActivityQuery is available.

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

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

Returnosid.course.ActivityQuerythe activity query
ErrorsUNIMPLEMENTED supportsActivityQuery() is false
ComplianceoptionalThis method must be implemented if supportsActivityQuery() is true.
MethodclearActivityTerms
Description

Clears the activity 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.
MethodgetActivityRegistrationQueryRecord
Description

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

Parametersosid.type.TypeactivityRegistrationRecordTypean activity registration record type
Returnosid.course.registration.records.ActivityRegistrationQueryRecordthe activity registration query record
ErrorsNULL_ARGUMENT activityRegistrationRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(activityRegistrationRecordType) is false
CompliancemandatoryThis method must be implemented.