OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.CredentialQuery
Implementsosid.OsidObjectQuery
Used Byosid.course.chronicle.CredentialEntryQuery
osid.course.program.CredentialQuerySession
osid.course.program.CredentialSearchSession
osid.course.program.CredentialSmartCourseCatalogSession
osid.course.program.ProgramOfferingQuery
osid.course.program.ProgramQuery
osid.course.requisite.RequisiteQuery
Description

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

MethodmatchLifetime
Description

Matches lifetimes between the given range inclusive.

Parametersosid.calendaring.Durationlow start of range
osid.calendaring.Durationhigh end of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
NULL_ARGUMENT low or high is null
Compliancemandatory This method must be implemented.
MethodmatchAnyLifetime
Description

Matches credentials that have any lifetime.

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

Clears the lifetime Id terms.

Compliancemandatory This method must be implemented.
MethodmatchProgramId
Description

Sets the program Id for this query to match credentials 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.
MethodmatchAnyProgram
Description

Matches credentials that have any program.

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

Clears the program terms.

Compliancemandatory This method must be implemented.
MethodmatchCourseCatalogId
Description

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

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

Parametersosid.type.TypecredentialRecordType a credential record type
Returnosid.course.program.records.CredentialQueryRecord the credential query record
ErrorsNULL_ARGUMENT credentialRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(credentialRecordType) is false
Compliancemandatory This method must be implemented.