OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.ProgramQuery
Implementsosid.OsidObjectQuery
osid.OsidOperableQuery
Used Byosid.course.chronicle.AssessmentEntryQuery
osid.course.chronicle.AwardEntryQuery
osid.course.chronicle.CredentialEntryQuery
osid.course.chronicle.ProgramEntryQuery
osid.course.program.CredentialQuery
osid.course.program.ProgramOfferingQuery
osid.course.program.ProgramQuery
osid.course.program.ProgramQuerySession
osid.course.program.ProgramSearchSession
osid.course.program.ProgramSmartCourseCatalogSession
show 1 more…
osid.course.requisite.RequisiteQuery
Description

This is the query for searching programs. 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 programs with any title, false to match programs 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 programs number for this query.

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

Parametersbooleanmatch true to match programs with any number, false to match programs 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 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.
MethodmatchParentProgramId
Description

Sets the parent program 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.
MethodclearParentProgramIdTerms
Description

Clears the parent program Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsParentProgramQuery
Description

Tests if a ProgramQuery is available.

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

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

Returnosid.course.program.ProgramQuery a parent program query
ErrorsUNIMPLEMENTED supportsParentProgramQuery() is false
Complianceoptional This method must be implemented if supportsParentProgramQuery() is true.
MethodmatchAnyParentProgram
Description

Matches programs that have any parent.

Parametersbooleanmatch true to match programs with parent, false to match programs with no parent
Compliancemandatory This method must be implemented.
MethodclearParentProgramTerms
Description

Clears the parent program 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 learning objective Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsLearningObjectiveQuery
Description

Tests if an 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 a learning objective query
ErrorsUNIMPLEMENTED supportsLearningObjectiveQuery() is false
Complianceoptional This method must be implemented if supportsLearningObjectiveQuery() is true.
MethodmatchAnyLearningObjective
Description

Matches programs that have any learning objective.

Parametersbooleanmatch true to match programs with any learning objective, false to match programs 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 programs 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 programs that have any target audience.

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

Clears the target 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.
MethodmatchCourseCatalogId
Description

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

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

Parametersosid.type.TypeprogramRecordType a programs record type
Returnosid.course.program.records.ProgramQueryRecord the program query record
ErrorsNULL_ARGUMENT programRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(programRecordType) is false
Compliancemandatory This method must be implemented.