OSID Logo
OSID Specifications
course program package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.program.ProgramOfferingQuery
Implementsosid.OsidRelationshipQuery
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.IdprogramIda program Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT programId is null
CompliancemandatoryThis method must be implemented.
MethodclearProgramIdTerms
Description

Clears the program Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProgramQuery
Description

Tests if a ProgramQuery is available.

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

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

Returnosid.course.program.ProgramQuerythe program query
ErrorsUNIMPLEMENTED supportsProgramQuery() is false
ComplianceoptionalThis method must be implemented if supportsProgramQuery() is true.
MethodclearProgramTerms
Description

Clears the program terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTermId
Description

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

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

Clears the term Id 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 reporting 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.
MethodclearTermTerms
Description

Clears the reporting term terms.

CompliancemandatoryThis method must be implemented.
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 program offerings with any title, false to match program offerings with no title
CompliancemandatoryThis method must be implemented.
MethodclearTitleTerms
Description

Clears the title terms.

CompliancemandatoryThis method must be implemented.
MethodmatchNumber
Description

Adds a program number for this query.

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

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

Clears the number terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInstructorId
Description

Sets the resource Id for this query to match program offerings that have an instructor.

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

Clears the instructor Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsInstructorQuery
Description

Tests if a ResourceQuery is available.

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

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

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

Matches program offerings that have any instructor.

Parametersbooleanmatch true to match program offerings with any instructor, false to match program offerings with no instructors
CompliancemandatoryThis method must be implemented.
MethodclearInstructorTerms
Description

Clears the instructor terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSponsorId
Description

Sets the resource Id for this query to match programs 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 programs that have any sponsor.

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

Clears the sponsor terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCompletionRequirementsInfo
Description

Matches programs with the prerequisites informational string.

ParametersstringrequirementsInfocompletion requirements string to match
osid.type.TypestringMatchTypethe 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
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearCompletionRequirementsInfoTerms
Description

Clears the completion requirements info terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCompletionRequirementsId
Description

Sets the requisite Id for this query.

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

Clears the requisite Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCompletionRequirementsQuery
Description

Tests if a RequisiteQuery is available.

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

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

Returnosid.course.requisite.RequisiteQuerya requisite query
ErrorsUNIMPLEMENTED supportsCompletionRequirementsQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearCompletionRequirementsTerms
Description

Clears the requisite terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCredentialId
Description

Sets the credential Id for this query.

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

Clears the credential Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCredentialQuery
Description

Tests if a CredentialQuery is available.

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

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

Returnosid.course.program.CredentialQuerya credential query
ErrorsUNIMPLEMENTED supportsCredentialQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearCredentialTerms
Description

Clears the credential terms.

CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearRequiresRegistrationTerms
Description

Clears the requires registration terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMinimumSeats
Description

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

Parameterscardinalminlow number
cardinalmaxhigh number
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT max is less than min
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearMinimumSeatsTerms
Description

Clears the minimum seats terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMaximumSeats
Description

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

Parameterscardinalminlow number
cardinalmaxhigh number
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT max is less than min
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearMaximumSeatsTerms
Description

Clears the maximum seats terms.

CompliancemandatoryThis method must be implemented.
MethodmatchURL
Description

Adds a class url for this query.

Parametersstringurlurl string to match
osid.type.TypestringMatchTypethe 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
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodclearURLTerms
Description

Clears the url terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCourseCatalogId
Description

Sets the course catalog Id for this query to match program offerings 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.
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.TypeprogramOfferingRecordTypea program offering record type
Returnosid.course.program.records.ProgramOfferingQueryRecordthe program offering query record
ErrorsNULL_ARGUMENT programOfferingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(programOfferingRecordType) is false
CompliancemandatoryThis method must be implemented.