OSID Logo
OSID Specifications
offering package
Version 3.1.0
Interfaceosid.offering.CanonicalUnit
Implementsosid.OsidObject
osid.Operable
Used Byosid.offering.CanonicalUnitAdminSession
osid.offering.CanonicalUnitList
osid.offering.CanonicalUnitLookupSession
osid.offering.Offering
Description

A Canonical Unit is an approved item to be offered.

MethodgetTitle
Description

Gets the title for this canonical unit.

Returnosid.locale.DisplayText the title
Compliancemandatory This method must be implemented.
MethodgetCode
Description

Gets the code for this canonical unit.

Returnstring the code
Compliancemandatory This method must be implemented.
MethodgetOfferedCyclicTimePeriodIds
Description

Gets the cyclic period Ids in which this CU can be offered. If there are no time cycles, then it can be offered any time.

Returnosid.id.IdList a list of cyclic period Ids
Compliancemandatory This method must be implemented.
MethodgetOfferedCyclicTimePeriods
Description

Gets the cyclic periods in which this CU can be offered. If there are no time cycles, then it can be offered any time.

Returnosid.calendaring.cycle.CyclicTimePeriodList a list of cyclic periods
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasResults
Description

Tests if this canonical has results when offered.

Returnboolean true if this canonical has results, false otherwise
Compliancemandatory This method must be implemented.
MethodgetResultOptionIds
Description

Gets the various result option Ids allowed for results.

Returnosid.id.IdList the returned list of grading option Ids
ErrorsILLEGAL_STATE hasResults() is false
Compliancemandatory This method must be implemented.
MethodgetResultOptions
Description

Gets the various result options allowed for this canonical unit.

Returnosid.grading.GradeSystemList the returned list of grading options
ErrorsILLEGAL_STATE hasResults() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasSponsors
Description

Tests if this canonical has sponsors.

Returnboolean true if this canonical has sponsors, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSponsorIds
Description

Gets the sponsor Ids.

Returnosid.id.IdList the sponsor Ids
ErrorsILLEGAL_STATE hasSponsors() is false
Compliancemandatory This method must be implemented.
MethodgetSponsors
Description

Gets the sponsors.

Returnosid.resource.ResourceList the sponsors
ErrorsILLEGAL_STATE hasSponsors() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetCanonicalUnitRecord
Description

Gets the record corresponding to the given CanonicalUnit record Type. This method is used to retrieve an object implementing the requested record. The canonicalUnitRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(canonicalUnitRecordType) is true.

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