OSID Logo
OSID Specifications
course requisite package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.requisite.CredentialRequirementForm
Implementsosid.OsidRuleForm
osid.OsidAggregateableForm
Description

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

MethodgetTimeframeMetadata
Description

Gets the metadata for the timeframe.

Returnosid.Metadatametadata for the timeframe
CompliancemandatoryThis method must be implemented.
MethodsetTimeframe
Description

Sets the timeframe.

Parametersosid.calendaring.Durationdurationthe new duration
ErrorsINVALID_ARGUMENT duration is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT duration is null
CompliancemandatoryThis method must be implemented.
MethodclearTimeframe
Description

Clears the timeframe.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCredentialRequirementFormRecord
Description

Gets the CredentialRequirementFormRecord corresponding to the given credential requirement record Type.

Parametersosid.type.TypecredentialRequirementRecordTypea credential requirement record type
Returnosid.course.requisite.records.CredentialRequirementFormRecordthe credential requirement form record
ErrorsNULL_ARGUMENT credentialRequirementRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(credentialRequirementRecordType) is false
CompliancemandatoryThis method must be implemented.