OSID Logo
OSID Specifications
course package
Version 3.1.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.

Parametersstringtitle title string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearTitleTerms
Description

Clears the title terms.

Compliancemandatory This method must be implemented.
MethodmatchNumber
Description

Adds a course number for this query.

Parametersstringnumber course number string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearNumberTerms
Description

Clears the number terms.

Compliancemandatory This method must be implemented.
MethodmatchSponsorId
Description

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

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

Clears the sponsor Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsSponsorQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery a resource query
ErrorsUNIMPLEMENTED supportsSponsorQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearSponsorTerms
Description

Clears the sponsor terms.

Compliancemandatory This method must be implemented.
MethodmatchCreditAmountId
Description

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

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

Clears the grade system Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCreditAmountQuery
Description

Tests if a GradeQuery is available.

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

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

Returnosid.grading.GradeQuery a grade query
ErrorsUNIMPLEMENTED supportsCreditQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearCreditAmountTerms
Description

Clears the credit terms.

Compliancemandatory This method must be implemented.
MethodmatchPrerequisitesInfo
Description

Matches courses with the prerequisites informational string.

ParametersstringprereqInfo prerequisite informational string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearPrerequisitesInfoTerms
Description

Clears the prerequisite info terms.

Compliancemandatory This method must be implemented.
MethodmatchPrerequisitesId
Description

Sets the requisite Id for this query.

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

Clears the requisite Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPrerequisitesQuery
Description

Tests if a RequisiteQuery is available.

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

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

Returnosid.course.requisite.RequisiteQuery a prerequisites query
ErrorsUNIMPLEMENTED supportsPrerequisitesQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearPrerequisitesTerms
Description

Clears the prerequisites terms.

Compliancemandatory This method must be implemented.
MethodmatchConcurrentCourseId
Description

Sets the concurrent course Id for this query.

Parametersosid.id.IdcourseId a course Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseId is null
Compliancemandatory This method must be implemented.
MethodclearConcurrentCourseIdTerms
Description

Clears the concurrent course Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsConcurrentCourseQuery
Description

Tests if a CourseQuery is available.

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

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

Returnosid.course.CourseQuery a course query
ErrorsUNIMPLEMENTED supportsConcurrentCourseQuery() is false
Complianceoptional This method must be implemented if supportsConcurrentCourseQuery() is true.
MethodmatchAnyConcurrentCourse
Description

Matches courses that have any concurrent courses.

Parametersbooleanmatch true to match courses with any concurrent courses, false to match courses with no concurrent courses
Compliancemandatory This method must be implemented.
MethodclearConcurrentCourseTerms
Description

Clears the concurrent course terms.

Compliancemandatory This method must be implemented.
MethodmatchLevelId
Description

Sets the grade Id for this query.

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

Clears the grade Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsLevelQuery
Description

Tests if a GradeQuery is available.

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

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

Returnosid.grading.GradeQuery a grade query
ErrorsUNIMPLEMENTED supportsLevelQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearLevelTerms
Description

Clears the level terms.

Compliancemandatory This method must be implemented.
MethodmatchGradingOptionId
Description

Sets the grade system Id for this query.

Parametersosid.id.IdgradeSystemId a grade system Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT gradeSystemId is null
Compliancemandatory This method must be implemented.
MethodclearGradingOptionIdTerms
Description

Clears the grade system Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsGradingOptionQuery
Description

Tests if a GradeSystemQuery is available.

Returnboolean true if a grade system query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetGradingOptionQuery
Description

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

Returnosid.grading.GradeSystemQuery a grade system query
ErrorsUNIMPLEMENTED supportsGradingOptionQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearGradingOptionTerms
Description

Clears the grading option terms.

Compliancemandatory This method must be implemented.
MethodmatchLearningObjectiveId
Description

Sets the objective Id for this query.

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

Clears the objective Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsLearningObjectiveQuery
Description

Tests if a ObjectiveQuery is available.

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

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

Returnosid.learning.ObjectiveQuery an objective query
ErrorsUNIMPLEMENTED supportsLearningObjectiveQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearLearningObjectiveTerms
Description

Clears the learning objective terms.

Compliancemandatory This method must be implemented.
MethodmatchTargetAudienceId
Description

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

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

Clears the target audience Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsTargetAudienceQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery a resource query
ErrorsUNIMPLEMENTED supportsTargetAudienceQuery() is false
Complianceoptional This method must be implemented if supportsTargetAudienceQuery() is true.
MethodmatchAnyTargetAudience
Description

Matches courses that have any target audience.

Parametersbooleanmatch true to match courses with any target audience, false to match courses with no target audiences
Compliancemandatory This method must be implemented.
MethodclearTargetAudienceTerms
Description

Clears the target audience terms.

Compliancemandatory This 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.IdcourseOfferingId a course offering Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseOfferingId is null
Compliancemandatory This method must be implemented.
MethodclearActivityUnitIdTerms
Description

Clears the activity unit Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsActivityUnitQuery
Description

Tests if an ActivityUnitQuery is available.

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

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

Returnosid.course.ActivityUnitQuery the activity unit query
ErrorsUNIMPLEMENTED supportsActivityUnitQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearActivityUnitTerms
Description

Clears the activity unit terms.

Compliancemandatory This 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.IdcourseOfferingId a course offering Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT courseOfferingId is null
Compliancemandatory This method must be implemented.
MethodclearCourseOfferingIdTerms
Description

Clears the course offering Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCourseOfferingQuery
Description

Tests if a CourseOfferingQuery is available.

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

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

Returnosid.course.CourseOfferingQuery the course offering query
ErrorsUNIMPLEMENTED supportsCourseOfferingQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearCourseOfferingTerms
Description

Clears the course offering terms.

Compliancemandatory This method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query to match courses assigned to course catalogs.

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

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

Parametersosid.type.TypecourseRecordType a course record type
Returnosid.course.records.CourseQueryRecord the course query record
ErrorsNULL_ARGUMENT courseRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(courseRecordType) is false
Compliancemandatory This method must be implemented.