OSID Logo
OSID Specifications
course requisite package
Version 3.1.0
Interfaceosid.course.requisite.CredentialRequirement
Implementsosid.OsidRule
osid.Aggregateable
Used Byosid.course.requisite.CredentialRequirementList
osid.course.requisite.Requisite
osid.course.requisite.RequisiteAdminSession
osid.course.requisite.RequisiteLookupSession
Description

A CredentialRequirement is an OsidRule and represents a requirement based on a set of Credentials.

Like all OsidObjects, CredentialRequirement is managed by its OsidSessions and may not be accessed by concurrent processing threads.

MethodgetAltRequisites
Description

Gets any Requisites that may be substituted in place of this CredentialRequirement. One or more Requisites must be satisifed to be a substitute for this credential requirement. Inactive Requisites are not evaluated but if no active requisite exists, then this term is ignored.

Returnosid.course.requisite.Requisite[] the alternate requisites
Compliancemandatory This method must be implemented.
MethodgetCredentialIds
Description

Gets the Ids of the Credentials.

Returnosid.id.IdList the credential Ids
Compliancemandatory This method must be implemented.
MethodgetCredentials
Description

Gets the Credentials. If requiresMinimumNumber() is false , then all Credentials in this set must be completed for this requirement.

Returnosid.course.program.CredentialList the credentials
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodrequiresMinimumNumber
Description

Tests if a minimum number of Credentials from the set must be completed to satisfy this CredentialRequirement.

Returnboolean true if a minimum number of credentials is required, false otherwise
Compliancemandatory This method must be implemented.
MethodgetMinimumNumber
Description

The minimum number of Credentials in this CredentialRequirement to complete from the set.

Returncardinal the minimum number of credentials
ErrorsILLEGAL_STATE requiresMinimumNumber() is false
Compliancemandatory This method must be implemented.
MethodhasTargetNumberForSet
Description

Tests if the set should contain a minimum number of Credentials to be a valid requirement.

Returnboolean true if the set has a minimum credential count, false otherwise
Compliancemandatory This method must be implemented.
MethodgetTargetSetNumber
Description

The minimum number of credentials in the set to be a valid requirement.

Returncardinal the minimum number of credentials in the set
ErrorsILLEGAL_STATE hasTargetNumberForSet() is false
Compliancemandatory This method must be implemented.
MethodhasTimeframe
Description

Tests if the credential has to be earned within the required duration.

Returnboolean true if the credential must be earned within a required time, false if it could have been earned at any time in the past
Compliancemandatory This method must be implemented.
MethodgetTimeframe
Description

Gets the timeframe in which the credential has to be earned. A negative duration indicates the credential had to be earned within the specified amount of time in the past. A posiitive duration indicates the credential must be earned within the specified amount of time in the future. A zero duration indicates the credential must be earned in the current term.

Returnosid.calendaring.Duration the time frame
ErrorsILLEGAL_STATE hasTimeframe() is false
Compliancemandatory This method must be implemented.
MethodgetCredentialRequirementRecord
Description

Gets the credential requirement record corresponding to the given CredentialRequirement record Type. This method is used to retrieve an object implementing the requested record. The credentialRequirementRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(credentialRequirementRecordType) is true.

Parametersosid.type.TypecredentialRequirementRecordType the type of credential requirement record to retrieve
Returnosid.course.requisite.records.CredentialRequirementRecord the credential requirement record
ErrorsNULL_ARGUMENT credentialRequirementRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(credentialRequirementRecordType) is false
Compliancemandatory This method must be implemented.