OSID Logo
OSID Specifications
course requisite package
Version 3.1.0
Interfaceosid.course.requisite.CredentialRequirementQuery
Implementsosid.OsidRuleQuery
osid.OsidAggregateableQuery
Description

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

MethodmatchAltRequisiteId
Description

Sets the alt requisite Id for this query.

Parametersosid.id.IdaltRequisiteId an alt requisite Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT altRequisiteId is null
Compliancemandatory This method must be implemented.
MethodclearAltRequisiteIdTerms
Description

Clears the alt requisite Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAltRequisiteQuery
Description

Tests if a RequisiteQuery is available.

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

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

Returnosid.course.requisite.RequisiteQuery the query
ErrorsUNIMPLEMENTED supportsAltRequisiteQuery() is false
Complianceoptional This method must be implemented if supportsAltRequisiteQuery() is true.
MethodmatchAnyAltRequisite
Description

Matches credential requirements that have any alternate requisite.

Parametersbooleanmatch true to match, false to match none
Compliancemandatory This method must be implemented.
MethodclearAltRequisiteTerms
Description

Clears the alternate 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 the query
ErrorsUNIMPLEMENTED supportsCredentialQuery() is false
Complianceoptional This method must be implemented if supportsCredentialQuery() is true.
MethodmatchAnyCredential
Description

Matches credential requirements that have any credential.

Parametersbooleanmatch true to match, false to match none
Compliancemandatory This method must be implemented.
MethodclearCredentialTerms
Description

Clears the credential terms.

Compliancemandatory This method must be implemented.
MethodmatchRequiresMinimumNumber
Description

Matches credential requirements that require a minimum number of credentials.

Parametersbooleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearRequiresMinimumNumberTerms
Description

Clears the requires minimum number terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumNumber
Description

Matches credential requirements with a minimum number between the given values 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.
MethodmatchAnyMinimumNumber
Description

Matches credential requirements with any minimum number.

Parametersbooleanmatch true to match, false to match none
Compliancemandatory This method must be implemented.
MethodclearMinimumNumberTerms
Description

Clears the minimum number terms.

Compliancemandatory This method must be implemented.
MethodmatchHasTargetNumberForSet
Description

Matches credential requirements that have a target credential count for the set.

Parametersbooleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearHasTargetNumberForSetTerms
Description

Clears the has target number for set terms.

Compliancemandatory This method must be implemented.
MethodmatchTargetSetNumber
Description

Matches credential requirements with a target set credential count between the given values 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.
MethodmatchAnyTargetSetNumber
Description

Matches credential requirements with any target set number.

Parametersbooleanmatch true to match, false to match none
Compliancemandatory This method must be implemented.
MethodclearTargetSetNumberTerms
Description

Clears the target set number terms.

Compliancemandatory This method must be implemented.
MethodmatchHasTimeframe
Description

Matches credential requirements that have a timeframe.

Parametersbooleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearHasTimeframeTerms
Description

Clears the has timeframe terms.

Compliancemandatory This method must be implemented.
MethodgetCredentialRequirementQueryRecord
Description

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

Parametersosid.type.TypecredentialRequirementQueryRecordType a CredentialRequirement record type
Returnosid.course.requisite.records.CredentialRequirementQueryRecord the query record
ErrorsNULL_ARGUMENT credentialRequirementQueryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(credentialRequirementQueryRecordType) is false
Compliancemandatory This method must be implemented.