OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.CredentialForm
Implementsosid.OsidObjectForm
Implemented Byosid.course.program.batch.CredentialBatchForm
Used Byosid.course.program.CredentialAdminSession
Description

This is the form for creating and updating Credentials. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the CredentialAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetLifetimeMetadata
Description

Gets the metadata for a credential lifetime.

Returnosid.Metadata metadata for the lifetime
Compliancemandatory This method must be implemented.
MethodsetLifetime
Description

Sets the lifetime.

Parametersosid.calendaring.Durationlifetime the new lifetime
ErrorsINVALID_ARGUMENT lifetime is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT lifetime is null
Compliancemandatory This method must be implemented.
MethodclearLifetime
Description

Removes the lifetime.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCredentialFormRecord
Description

Gets the CredentialFormRecord corresponding to the given course record Type .

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