OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.CourseCatalogQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchCourseId
Description

Sets the course Id for this query to match courses that have a related course.

Parametersosid.id.IdcourseIda course Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseId is null
CompliancemandatoryThis method must be implemented.
MethodclearCourseIdTerms
Description

Clears the course Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCourseQuery
Description

Tests if a CourseQuery is available.

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

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

Returnosid.course.CourseQuerythe course query
ErrorsUNIMPLEMENTED supportsCourseQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseQuery() is true.
MethodmatchAnyCourse
Description

Matches course catalogs that have any course.

Parametersbooleanmatch true to match courses with any course, false to match courses with no course
CompliancemandatoryThis method must be implemented.
MethodclearCourseTerms
Description

Clears the course query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchActivityUnitId
Description

Sets the activity unit Id for this query.

Parametersosid.id.IdactivityUnitIdan activity unit Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT activityUnitId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivityUnitIdTerms
Description

Clears the activity unit Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityUnitQuery
Description

Tests if an ActivityUnitQuery is available.

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

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

Returnosid.course.ActivityUnitQuerythe activity unit query
ErrorsUNIMPLEMENTED supportsActivityUnitQuery() is false
ComplianceoptionalThis method must be implemented if supportsActivityUnitQuery() is true.
MethodmatchAnyActivityUnit
Description

Matches course catalogs that have any activity unit.

Parametersbooleanmatch true to match course catalogs with any activity unit, false to match course catalogs with no activity units
CompliancemandatoryThis method must be implemented.
MethodclearActivityUnitTerms
Description

Clears the activity unit query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseOfferingId
Description

Sets the catalog Id for this query.

Parametersosid.id.IdcourseOfferingIda course offering Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseOfferingId is null
CompliancemandatoryThis method must be implemented.
MethodclearCourseOfferingIdTerms
Description

Clears the course offering Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCourseOfferingQuery
Description

Tests if a CourseOfferingQuery is available.

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

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

Returnosid.course.CourseOfferingQuerythe course offering query
ErrorsUNIMPLEMENTED supportsCourseOfferingQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseOfferingQuery() is true.
MethodmatchAnyCourseOffering
Description

Matches course catalogs that have any course offering.

Parametersbooleanmatch true to match courses with any course offering, false to match courses with no course offering
CompliancemandatoryThis method must be implemented.
MethodclearCourseOfferingTerms
Description

Clears the course offering query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchActivityId
Description

Sets the activity Id for this query.

Parametersosid.id.IdactivityUnitIdan 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 query 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.
MethodmatchAnyActivity
Description

Matches course catalogs that have any activity.

Parametersbooleanmatch true to match course catalogs with any activity, false to match course catalogs with no activities
CompliancemandatoryThis method must be implemented.
MethodclearActivityTerms
Description

Clears the activity query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTermId
Description

Sets the term Id for this query to match catalogs containing terms.

Parametersosid.id.IdtermIdthe term Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT termId is null
CompliancemandatoryThis method must be implemented.
MethodclearTermIdTerms
Description

Clears the term Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsTermQuery
Description

Tests if a TermQuery is available.

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

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

Returnosid.course.TermQuerythe term query
ErrorsUNIMPLEMENTED supportsTermQuery() is false
ComplianceoptionalThis method must be implemented if supportsTermQuery() is true.
MethodmatchAnyTerm
Description

Matches course catalogs that have any term.

Parametersbooleanmatch true to match course catalogs with any term, false to match courses with no term
CompliancemandatoryThis method must be implemented.
MethodclearTermTerms
Description

Clears the term query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorCourseCatalogId
Description

Sets the course catalog Id for this query to match course catalogs that have the specified course catalog as an ancestor.

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

Clears the ancestor course catalog Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorCourseCatalogQuery
Description

Tests if a CourseCatalogQuery is available.

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

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

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

Matches course catalogs with any course catalog ancestor.

Parametersbooleanmatch true to match course catalogs with any ancestor, false to match root course catalogs
CompliancemandatoryThis method must be implemented.
MethodclearAncestorCourseCatalogTerms
Description

Clears the ancestor course catalog query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantCourseCatalogId
Description

Sets the course catalog Id for this query to match course catalogs that have the specified course catalog as an descendant.

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

Clears the descendant course catalog Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantCourseCatalogQuery
Description

Tests if a CourseCatalogQuery is available.

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

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

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

Matches course catalogs with any descendant course catalog.

Parametersbooleanmatch true to match course catalogs with any descendant, false to match leaf course catalogs
CompliancemandatoryThis method must be implemented.
MethodclearDescendantCourseCatalogTerms
Description

Clears the descendant course catalog query terms.

CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalogQueryRecord
Description

Gets the course catalog query record corresponding to the given CourseCatalog record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypecourseCatalogRecordTypea course catalog record type
Returnosid.course.records.CourseCatalogQueryRecordthe course catalog query record
ErrorsNULL_ARGUMENT courseCatalogRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(courseCatalogRecordType) is false
CompliancemandatoryThis method must be implemented.