OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.ProgramOfferingQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.course.program.EnrollmentQuery
osid.course.program.ProgramOfferingQuery
osid.course.program.ProgramOfferingQuerySession
osid.course.program.ProgramOfferingSearchSession
osid.course.program.ProgramOfferingSmartCourseCatalogSession
Description

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

MethodmatchProgramId
Description

Sets the program Id for this query to match program offerings that have a related program.

Parametersosid.id.IdprogramId a program Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT programId is null
Compliancemandatory This method must be implemented.
MethodclearProgramIdTerms
Description

Clears the program Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProgramQuery
Description

Tests if a ProgramQuery is available.

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

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

Returnosid.course.program.ProgramQuery the program query
ErrorsUNIMPLEMENTED supportsProgramQuery() is false
Complianceoptional This method must be implemented if supportsProgramQuery() is true.
MethodclearProgramTerms
Description

Clears the program terms.

Compliancemandatory This method must be implemented.
MethodmatchTermId
Description

Sets the term Id for this query to match program offerings that have a related term.

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

Clears the term Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsTermQuery
Description

Tests if a TermQuery is available.

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

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

Returnosid.course.TermQuery the term query
ErrorsUNIMPLEMENTED supportsTermQuery() is false
Complianceoptional This method must be implemented if supportsTermQuery() is true.
MethodclearTermTerms
Description

Clears the reporting term terms.

Compliancemandatory This method must be implemented.
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 program offerings with any title, false to match program offerings 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 program number for this query.

Parametersstringnumber program 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 program number that has any value.

Parametersbooleanmatch true to match program offerings with any number, false to match program offerings with no number
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 programs 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 programs that have any sponsor.

Parametersbooleanmatch true to match programs with any sponsor, false to match programs with no sponsors
Compliancemandatory This method must be implemented.
MethodclearSponsorTerms
Description

Clears the sponsor terms.

Compliancemandatory This method must be implemented.
MethodmatchParentProgramOfferingId
Description

Sets the parent program offering Id for this query.

Parametersosid.id.IdprogramOfferingId a program offering Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT programOfferingId is null
Compliancemandatory This method must be implemented.
MethodclearParentProgramOfferingIdTerms
Description

Clears the parent program offering Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsParentProgramOfferingQuery
Description

Tests if a ProgramOfferingQuery is available.

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

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

Returnosid.course.program.ProgramOfferingQuery a parent program offering query
ErrorsUNIMPLEMENTED supportsParentProgramOfferingQuery() is false
Complianceoptional This method must be implemented if supportsParentProgramOfferingQuery() is true.
MethodmatchAnyParentProgramOffering
Description

Matches program offerings that are part of any parent.

Parametersbooleanmatch true to match program offerings that are part of a parent, false to match program offerings with no parent
Compliancemandatory This method must be implemented.
MethodclearParentProgramOfferingTerms
Description

Clears the parent program offering 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 program offerings that have any learning objective.

Parametersbooleanmatch true to match program offerings with any learning objective, false to match program offerings with no learning objectives
Compliancemandatory This method must be implemented.
MethodclearLearningObjectiveTerms
Description

Clears the learning objective terms.

Compliancemandatory This method must be implemented.
MethodmatchRestrictedAudienceId
Description

Sets the resource Id for this query to match program offerings that have a restricted 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.
MethodclearRestrictedAudienceIdTerms
Description

Clears the restricted audience Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRestrictedAudienceQuery
Description

Tests if a ResourceQuery is available.

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

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

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

Matches program offerings that have any restricted audience.

Parametersbooleanmatch true to match program offerings with any restricted audience, false to match program offerings with no restricted audiences
Compliancemandatory This method must be implemented.
MethodclearRestrictedAudienceTerms
Description

Clears the restricted audience terms.

Compliancemandatory This method must be implemented.
MethodmatchCompletionRequirementsInfo
Description

Matches programs with the prerequisites informational string.

ParametersstringrequirementsInfo completion requirements string to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT requirementsInfo not of stringMatchType
NULL_ARGUMENT requirementsInfo or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyCompletionRequirementsInfo
Description

Matches a program that has any completion requirements information assigned.

Parametersbooleanmatch true to match programs with any completion requirements information, false otherwise
Compliancemandatory This method must be implemented.
MethodclearCompletionRequirementsInfoTerms
Description

Clears the completion requirements info terms.

Compliancemandatory This method must be implemented.
MethodmatchCompletionRequirementsId
Description

Sets the requisite Id for this query.

Parametersosid.id.IdruleId a rule Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT ruleId is null
Compliancemandatory This method must be implemented.
MethodclearCompletionRequirementsIdTerms
Description

Clears the requisite Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCompletionRequirementsQuery
Description

Tests if a RequisiteQuery is available.

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

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

Returnosid.course.requisite.RequisiteQuery a requisite query
ErrorsUNIMPLEMENTED supportsCompletionRequirementsQuery() is false
Complianceoptional This method must be implemented if supportsCompletionRequirementsQuery() is true.
MethodmatchAnyCompletionRequirements
Description

Matches programs that have any completion requirement requisite.

Parametersbooleanmatch true to match programs with any requisite, false to match programs with no requisites
Compliancemandatory This method must be implemented.
MethodclearCompletionRequirementsTerms
Description

Clears the requisite terms.

Compliancemandatory This method must be implemented.
MethodmatchCredentialId
Description

Sets the credential Id for this query.

Parametersosid.id.IdcredentialId a credential Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT credentialId is null
Compliancemandatory This method must be implemented.
MethodclearCredentialIdTerms
Description

Clears the credential Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCredentialQuery
Description

Tests if a CredentialQuery is available.

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

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

Returnosid.course.program.CredentialQuery a credential query
ErrorsUNIMPLEMENTED supportsCredentialQuery() is false
Complianceoptional This method must be implemented if supportsCredentialQuery() is true.
MethodmatchAnyCredential
Description

Matches programs that have any credentials.

Parametersbooleanmatch true to match programs with any credentials, false to match programs with no credentials
Compliancemandatory This method must be implemented.
MethodclearCredentialTerms
Description

Clears the credential terms.

Compliancemandatory This method must be implemented.
MethodmatchRequiresRegistration
Description

Matches program offerings that require registration.

Parametersbooleanmatch true to match program offerings requiring registration,, false to match program offerings not requiring registration
Compliancemandatory This method must be implemented.
MethodclearRequiresRegistrationTerms
Description

Clears the requires registration terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumSeats
Description

Matches program offerings with minimum seating between the given numbers inclusive.

Parameterscardinalmin low number
cardinalmax high number
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT max is less than min
Compliancemandatory This method must be implemented.
MethodmatchAnyMinimumSeats
Description

Matches a program offering that has any minimum seating assigned.

Parametersbooleanmatch true to match program offerings with any minimum seats, false to match program offerings with no minimum seats
Compliancemandatory This method must be implemented.
MethodclearMinimumSeatsTerms
Description

Clears the minimum seats terms.

Compliancemandatory This method must be implemented.
MethodmatchMaximumSeats
Description

Matches program offerings with maximum seating between the given numbers inclusive.

Parameterscardinalmin low number
cardinalmax high number
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT max is less than min
Compliancemandatory This method must be implemented.
MethodmatchAnyMaximumSeats
Description

Matches a program offering that has any maximum seating assigned.

Parametersbooleanmatch true to match program offerings with any maximum seats, false to match program offerings with no maximum seats
Compliancemandatory This method must be implemented.
MethodclearMaximumSeatsTerms
Description

Clears the maximum seats terms.

Compliancemandatory This method must be implemented.
MethodmatchURL
Description

Adds a class url for this query.

Parametersstringurl url string to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT url not of stringMatchType
NULL_ARGUMENT url or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyURL
Description

Matches a url that has any value.

Parametersbooleanmatch true to match program offerings with any url, false to match program offerings with no url
Compliancemandatory This method must be implemented.
MethodclearURLTerms
Description

Clears the url terms.

Compliancemandatory This method must be implemented.
MethodmatchCourseCatalogId
Description

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

Gets the program offering query record corresponding to the given ProgramOffering record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeprogramOfferingRecordType a program offering record type
Returnosid.course.program.records.ProgramOfferingQueryRecord the program offering query record
ErrorsNULL_ARGUMENT programOfferingRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(programOfferingRecordType) is false
Compliancemandatory This method must be implemented.