OSID Logo
OSID Specifications
course requisite package
Version 3.1.0
Interfaceosid.course.requisite.CredentialRequirementForm
Implementsosid.OsidRuleForm
osid.OsidAggregateableForm
Used Byosid.course.requisite.RequisiteAdminSession
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.

Like all OsidForms, CredentialRequirementForm is stateful and must not be accessed by multiple processing threads.

MethodgetCredentialsMetadata
Description

Gets the metadata for the credentials.

Returnosid.Metadata metadata for the credentials
Compliancemandatory This method must be implemented.
MethodsetCredentials
Description

Sets the credentials.

Parametersosid.id.Id[]credentialIds the new credentials
ErrorsINVALID_ARGUMENT credentialIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT credentialIds is null
Compliancemandatory This method must be implemented.
MethodclearCredentials
Description

Removes the credentials.

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

Gets the metadata for the minimum number of credentials.

Returnosid.Metadata metadata for the minimum number
Compliancemandatory This method must be implemented.
MethodsetMinimumNumber
Description

Sets the minimum number of credentials to complete from the set.

Parameterscardinalnumber the new minimum number
ErrorsINVALID_ARGUMENT number is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMinimumNumber
Description

Clears the minimum number of credentials.

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

Gets the metadata for the target number of credentials in the set.

Returnosid.Metadata metadata for the target set number
Compliancemandatory This method must be implemented.
MethodsetTargetSetNumber
Description

Sets the target number of credentials in the set.

Parameterscardinalnumber the new target set number
ErrorsINVALID_ARGUMENT number is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearTargetSetNumber
Description

Clears the target set number.

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

Gets the metadata for the timeframe.

Returnosid.Metadata metadata for the timeframe
Compliancemandatory This method must be implemented.
MethodsetTimeframe
Description

Sets the timeframe.

Parametersosid.calendaring.Durationduration the new duration
ErrorsINVALID_ARGUMENT duration is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT duration is null
Compliancemandatory This method must be implemented.
MethodclearTimeframe
Description

Clears the timeframe.

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

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

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