OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.CourseQuery
Implementsosid.OsidObjectQuery
osid.OsidOperableQuery
Description

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

MethodmatchTitle
Description

Adds a title for this query.

Parametersstringtitletitle string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT title not of stringMatchType
NULL_ARGUMENT title or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyTitle
Description

Matches a title that has any value.

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

Clears the title terms.

CompliancemandatoryThis method must be implemented.
MethodmatchNumber
Description

Adds a course number for this query.

Parametersstringnumbercourse number string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT number not of stringMatchType
NULL_ARGUMENT number or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyNumber
Description

Matches a course number that has any value.

Parametersbooleanmatch true to match courses with any number, false to match courses with no title
CompliancemandatoryThis method must be implemented.
MethodclearNumberTerms
Description

Clears the number terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSponsorId
Description

Sets the resource Id for this query to match courses that have a sponsor.

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

Clears the sponsor Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSponsorQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuerya resource query
ErrorsUNIMPLEMENTED supportsSponsorQuery() is false
ComplianceoptionalThis method must be implemented if supportsSponsorQuery() is true.
MethodmatchAnySponsor
Description

Matches courses that have any sponsor.

Parametersbooleanmatch true to match courses with any sponsor, false to match courses with no sponsors
CompliancemandatoryThis method must be implemented.
MethodclearSponsorTerms
Description

Clears the sponsor terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCreditAmountId
Description

Sets the grade Id for this query to match courses with a credit amount.

Parametersosid.id.IdgradeIda grade Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearCreditAmountIdTerms
Description

Clears the grade system Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCreditAmountQuery
Description

Tests if a GradeQuery is available.

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

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

Returnosid.grading.GradeQuerya grade query
ErrorsUNIMPLEMENTED supportsCreditQuery() is false
ComplianceoptionalThis method must be implemented if supportsCreditQuery() is true.
MethodmatchAnyCreditAmount
Description

Matches courses that have any credits.

Parametersbooleanmatch true to match courses with any credits false to match courses with no credits
CompliancemandatoryThis method must be implemented.
MethodclearCreditAmountTerms
Description

Clears the credit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPrerequisitesInfo
Description

Matches courses with the prerequisites informational string.

ParametersstringprereqInfoprerequisite informational string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT prereqInfo not of stringMatchType
NULL_ARGUMENT prereqInfo or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPrerequisitesInfo
Description

Matches a course that has any prerequisite information assigned.

Parametersbooleanmatch true to match courses with any prerequisite information, false otherwise
CompliancemandatoryThis method must be implemented.
MethodclearPrerequisitesInfoTerms
Description

Clears the prerequisite info terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPrerequisitesId
Description

Sets the requisite Id for this query.

Parametersosid.id.IdrequisiteIda requisite Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT requisiteId is null
CompliancemandatoryThis method must be implemented.
MethodclearPrerequisitesIdTerms
Description

Clears the requisite Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPrerequisitesQuery
Description

Tests if a RequisiteQuery is available.

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

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

Returnosid.course.requisite.RequisiteQuerya prerequisites query
ErrorsUNIMPLEMENTED supportsPrerequisitesQuery() is false
ComplianceoptionalThis method must be implemented if supportsPrerequisitesQuery() is true.
MethodmatchAnyPrerequisites
Description

Matches courses that have any prerequisites.

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

Clears the prerequisites terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLevelId
Description

Sets the grade Id for this query.

Parametersosid.id.IdgradeIda grade Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearLevelIdTerms
Description

Clears the grade Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLevelQuery
Description

Tests if a GradeQuery is available.

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

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

Returnosid.grading.GradeQuerya grade query
ErrorsUNIMPLEMENTED supportsLevelQuery() is false
ComplianceoptionalThis method must be implemented if supportsLevelQuery() is true.
MethodmatchAnyLevel
Description

Matches courses that have any grade level.

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

Clears the level 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 courses that have any grading option.

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

Clears the grading option terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLearningObjectiveId
Description

Sets the objective Id for this query.

Parametersosid.id.IdobjectiveIdan objective Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT objectiveId is null
CompliancemandatoryThis method must be implemented.
MethodclearLearningObjectiveIdTerms
Description

Clears the objective Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLearningObjectiveQuery
Description

Tests if a ObjectiveQuery is available.

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

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

Returnosid.learning.ObjectiveQueryan objective query
ErrorsUNIMPLEMENTED supportsLearningObjectiveQuery() is false
ComplianceoptionalThis method must be implemented if supportsLearningObjectiveQuery() is true.
MethodmatchAnyLearningObjective
Description

Matches courses that have any learning objective.

Parametersbooleanmatch true to match courses with any learning objective, false to match courses with no learning objectives
CompliancemandatoryThis method must be implemented.
MethodclearLearningObjectiveTerms
Description

Clears the learning objective terms.

CompliancemandatoryThis method must be implemented.
MethodmatchActivityUnitId
Description

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

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

Clears the activity unit Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityUnitQuery
Description

Tests if a ActivityUnitQuery is available.

Returnboolean true if a 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 courses that have any course offering.

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

Clears the activity unit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseOfferingId
Description

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

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 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 courses 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 terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query to match courses 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.
MethodgetCourseQueryRecord
Description

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

Parametersosid.type.TypecourseRecordTypea course record type
Returnosid.course.records.CourseQueryRecordthe course query record
ErrorsNULL_ARGUMENT courseRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(courseRecordType) is false
CompliancemandatoryThis method must be implemented.