OSID Logo
OSID Specifications
offering package
Version 3.1.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.Metadata metadata for the title
Compliancemandatory This method must be implemented.
MethodsetTitle
Description

Sets the title.

Parametersstringtitle the title
ErrorsINVALID_ARGUMENT title is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT title is null
Compliancemandatory This method must be implemented.
MethodclearTitle
Description

Clears the title.

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

Gets the metadata for a given name.

Returnosid.Metadata metadata for the given name
Compliancemandatory This method must be implemented.
MethodsetCode
Description

Sets the code.

Parametersstringcode the code
ErrorsINVALID_ARGUMENT code is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT code is null
Compliancemandatory This method must be implemented.
MethodclearCode
Description

Clears the code.

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

Gets the metadata for a the cyclic time periods.

Returnosid.Metadata metadata for the cyclic time periods
Compliancemandatory This method must be implemented.
MethodsetOfferedCyclicTimePeriods
Description

Sets the cyclic time periods.

Parametersosid.id.Id[]cyclicTimePeriodIds the cyclic time periods
ErrorsINVALID_ARGUMENT cylciPeriodIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT cyclicPeriodIds is null
Compliancemandatory This method must be implemented.
MethodclearOfferedCyclicTimePeriods
Description

Clears the cyclic time periods.

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

Gets the metadata for the grading options.

Returnosid.Metadata metadata for the prerequisite information
Compliancemandatory This method must be implemented.
MethodsetResultOptions
Description

Sets the grading options.

Parametersosid.id.Id[]gradeSystemIds the new grading options
ErrorsINVALID_ARGUMENT gradeSystemIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeSystemIds is null
Compliancemandatory This method must be implemented.
MethodclearResultOptions
Description

Removes the grading options.

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

Gets the metadata for the sponsors.

Returnosid.Metadata metadata for the sponsors
Compliancemandatory This method must be implemented.
MethodsetSponsors
Description

Sets the sponsors.

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

Removes the sponsors.

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

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

Parametersosid.type.TypecanonicalUnitRecordType the canonical unit record type
Returnosid.offering.records.CanonicalUnitFormRecord the record
ErrorsNULL_ARGUMENT canonicalUnitRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(canonicalUnitRecordType) is false
Compliancemandatory This method must be implemented.