OSID Logo
OSID Specifications
course program package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.program.Credential
Implementsosid.OsidObject
Description

A Credential represents something awarded at program completion.

MethodhasLifeTime
Description

Tests if this credential has a limited lifetime.

Returnboolean true if this credential expires, false if permanent
CompliancemandatoryThis method is must be implemented.
MethodgetLifetime
Description

Gets the lifetime of this credential once awarded.

Returnosid.calendaring.Durationthe lifetime
ErrorsILLEGAL_STATE hasLifetime() is false
CompliancemandatoryThis method must be implemented.
MethodgetCredentialRecord
Description

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

Parametersosid.type.TypecredentialRecordTypethe type of credential record to retrieve
Returnosid.course.program.records.CredentialRecordthe credential record
ErrorsNULL_ARGUMENT credentialRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(credentialRecordType) is false
CompliancemandatoryThis method must be implemented.