OSID Logo
OSID Specifications
offering package
Version 3.0.0
Interfaceosid.offering.CanonicalUnitForm
Implementsosid.OsidObjectForm
osid.OsidOperableForm
Implemented Byosid.offering.batch.CanonicalUnitBatchForm
Used Byosid.offering.CanonicalUnitAdminSession
Description

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

MethodgetTitleMetadata
Description

Gets the metadata for a title.

Returnosid.Metadatametadata for the title
CompliancemandatoryThis method must be implemented.
MethodsetTitle
Description

Sets the title.

Parametersstringtitlethe title
ErrorsINVALID_ARGUMENTtitle is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTtitle is null
CompliancemandatoryThis method must be implemented.
MethodclearTitle
Description

Clears the title.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCodeMetadata
Description

Gets the metadata for a given name.

Returnosid.Metadatametadata for the given name
CompliancemandatoryThis method must be implemented.
MethodsetCode
Description

Sets the code.

Parametersstringcodethe code
ErrorsINVALID_ARGUMENTcode is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcode is null
CompliancemandatoryThis method must be implemented.
MethodclearCode
Description

Clears the code.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetOfferedCyclicTimePeriodsMetadata
Description

Gets the metadata for a the cyclic time periods.

Returnosid.Metadatametadata for the cyclic time periods
CompliancemandatoryThis method must be implemented.
MethodsetOfferedCyclicTimePeriods
Description

Sets the cyclic time periods.

Parametersosid.id.Id[]cyclicTimePeriodIdsthe cyclic time periods
ErrorsINVALID_ARGUMENTcylciPeriodIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcyclicPeriodIds is null
CompliancemandatoryThis method must be implemented.
MethodclearOfferedCyclicTimePeriods
Description

Clears the cyclic time periods.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetResultOptionsMetadata
Description

Gets the metadata for the grading options.

Returnosid.Metadatametadata for the prerequisite information
CompliancemandatoryThis method must be implemented.
MethodsetResultOptions
Description

Sets the grading options.

Parametersosid.id.Id[]gradeSystemIdsthe new grading options
ErrorsINVALID_ARGUMENTgradeSystemIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTgradeSystemIds is null
CompliancemandatoryThis method must be implemented.
MethodclearResultOptions
Description

Removes the grading options.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetSponsorsMetadata
Description

Gets the metadata for the sponsors.

Returnosid.Metadatametadata for the sponsors
CompliancemandatoryThis method must be implemented.
MethodsetSponsors
Description

Sets the sponsors.

Parametersosid.id.Id[]sponsorIdsthe new sponsors
ErrorsINVALID_ARGUMENTsponsorIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTsponsorIds is null
CompliancemandatoryThis method must be implemented.
MethodclearSponsors
Description

Removes the sponsors.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitFormRecord
Description

Gets the CanonicalUnitFormRecord interface corresponding to the given canonical unit record Type .

Parametersosid.type.TypecanonicalUnitRecordTypethe canonical unit record type
Returnosid.offering.records.CanonicalUnitFormRecordthe record
ErrorsNULL_ARGUMENTcanonicalUnitRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(canonicalUnitRecordType) is false
CompliancemandatoryThis method must be implemented.