OSID Logo
OSID Specifications
course package
Version 3.0.0
Interfaceosid.course.CourseQuery
Implementsosid.OsidObjectQuery
osid.OsidOperableQuery
Used Byosid.course.ActivityUnitQuery
osid.course.CourseCatalogQuery
osid.course.CourseOfferingQuery
osid.course.CourseQuery
osid.course.CourseQuerySession
osid.course.CourseSearchSession
osid.course.CourseSmartCourseCatalogSession
osid.course.chronicle.AssessmentEntryQuery
osid.course.chronicle.AwardEntryQuery
osid.course.chronicle.CourseEntryQuery
show 4 more…
osid.course.requisite.CourseRequirementQuery
osid.course.requisite.RequisiteQuery
osid.course.syllabus.SyllabusQuery
osid.learning.ActivityQuery
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTtitle not of stringMatchType
NULL_ARGUMENTtitle or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyTitle
Description

Matches a title that has any value.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTnumber not of stringMatchType
NULL_ARGUMENTnumber or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyNumber
Description

Matches a course number that has any value.

Parametersbooleanmatchtrue 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsSponsorQuery() is false
ComplianceoptionalThis method must be implemented if supportsSponsorQuery() is true .
MethodmatchAnySponsor
Description

Matches courses that have any sponsor.

Parametersbooleanmatchtrue 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTgradeId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsCreditQuery() is false
ComplianceoptionalThis method must be implemented if supportsCreditQuery() is true .
MethodmatchAnyCreditAmount
Description

Matches courses that have any credits.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTprereqInfo not of stringMatchType
NULL_ARGUMENTprereqInfo or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPrerequisitesInfo
Description

Matches a course that has any prerequisite information assigned.

Parametersbooleanmatchtrue 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTrequisiteId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsPrerequisitesQuery() is false
ComplianceoptionalThis method must be implemented if supportsPrerequisitesQuery() is true .
MethodmatchAnyPrerequisites
Description

Matches courses that have any prerequisites.

Parametersbooleanmatchtrue 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.
MethodmatchConcurrentCourseId
Description

Sets the concurrent course Id for this query.

Parametersosid.id.IdcourseIda course Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTcourseId is null
CompliancemandatoryThis method must be implemented.
MethodclearConcurrentCourseIdTerms
Description

Clears the concurrent course Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsConcurrentCourseQuery
Description

Tests if a CourseQuery is available.

Returnbooleantrue if a course query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetConcurrentCourseQuery
Description

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

Returnosid.course.CourseQuerya course query
ErrorsUNIMPLEMENTEDsupportsConcurrentCourseQuery() is false
ComplianceoptionalThis method must be implemented if supportsConcurrentCourseQuery() is true .
MethodmatchAnyConcurrentCourse
Description

Matches courses that have any concurrent courses.

Parametersbooleanmatchtrue to match courses with any concurrent courses, false to match courses with no concurrent courses
CompliancemandatoryThis method must be implemented.
MethodclearConcurrentCourseTerms
Description

Clears the concurrent course terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLevelId
Description

Sets the grade Id for this query.

Parametersosid.id.IdgradeIda grade Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTgradeId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsLevelQuery() is false
ComplianceoptionalThis method must be implemented if supportsLevelQuery() is true .
MethodmatchAnyLevel
Description

Matches courses that have any grade level.

Parametersbooleanmatchtrue 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTgradeSystemId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsGradingOptionQuery() is false
ComplianceoptionalThis method must be implemented if supportsGradingOptionQuery() is true .
MethodmatchAnyGradingOption
Description

Matches courses that have any grading option.

Parametersbooleanmatchtrue 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTobjectiveId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsLearningObjectiveQuery() is false
ComplianceoptionalThis method must be implemented if supportsLearningObjectiveQuery() is true .
MethodmatchAnyLearningObjective
Description

Matches courses that have any learning objective.

Parametersbooleanmatchtrue 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.
MethodmatchTargetAudienceId
Description

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

Parametersosid.id.IdresourceIda resource Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearTargetAudienceIdTerms
Description

Clears the target audience Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsTargetAudienceQuery
Description

Tests if a ResourceQuery is available.

Returnbooleantrue if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetTargetAudienceQuery
Description

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

Returnosid.resource.ResourceQuerya resource query
ErrorsUNIMPLEMENTEDsupportsTargetAudienceQuery() is false
ComplianceoptionalThis method must be implemented if supportsTargetAudienceQuery() is true .
MethodmatchAnyTargetAudience
Description

Matches courses that have any target audience.

Parametersbooleanmatchtrue to match courses with any target audience, false to match courses with no target audiences
CompliancemandatoryThis method must be implemented.
MethodclearTargetAudienceTerms
Description

Clears the target audience 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTcourseOfferingId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivityUnitIdTerms
Description

Clears the activity unit Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityUnitQuery
Description

Tests if an ActivityUnitQuery is available.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsActivityUnitQuery() is false
ComplianceoptionalThis method must be implemented if supportsActivityUnitQuery() is true .
MethodmatchAnyActivityUnit
Description

Matches courses that have any course offering.

Parametersbooleanmatchtrue 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
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTcourseOfferingId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsCourseOfferingQuery() is false
ComplianceoptionalThis method must be implemented if supportsCourseOfferingQuery() is true .
MethodmatchAnyCourseOffering
Description

Matches courses that have any course offering.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcourseCatalogId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsCourseCatalogQuery() 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_ARGUMENTcourseRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(courseRecordType) is false
CompliancemandatoryThis method must be implemented.