OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.CourseOfferingForm
Implementsosid.OsidRelationshipForm
Description

This is the form for creating and updating CourseOfferings. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the CourseOfferingAdminSession. 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 course title.

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

Sets the title.

Parametersstringtitlethe new title
ErrorsINVALID_ARGUMENT title is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT title is null
CompliancemandatoryThis method must be implemented.
MethodclearTitle
Description

Removes the title.

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

Gets the metadata for a course number.

Returnosid.Metadatametadata for the course number
CompliancemandatoryThis method must be implemented.
MethodsetNumber
Description

Sets the course number.

Parametersstringnumberthe new course number
ErrorsINVALID_ARGUMENT number is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT number is null
CompliancemandatoryThis method must be implemented.
MethodclearNumber
Description

Removes the course number.

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

Gets the metadata for the instructors.

Returnosid.Metadatametadata for the instructors
CompliancemandatoryThis method must be implemented.
MethodsetInstructors
Description

Sets the instructors.

Parametersosid.id.Id[]resourceIdsthe new instructors
ErrorsINVALID_ARGUMENT instructorIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT instructorIds is null
CompliancemandatoryThis method must be implemented.
MethodclearInstructors
Description

Removes the instructors.

ErrorsNO_ACCESS Metadata.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_ARGUMENT sponsorIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT sponsorIds is null
CompliancemandatoryThis method must be implemented.
MethodclearSponsors
Description

Removes the sponsors.

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

Gets the metadata for the credits.

Returnosid.Metadatametadata for the credit scale
CompliancemandatoryThis method must be implemented.
MethodsetCredits
Description

Sets the credits.

Parametersosid.id.Id[]gradeIdsthe new credit levels
ErrorsINVALID_ARGUMENT gradeIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeIds is null
CompliancemandatoryThis method must be implemented.
MethodclearCredits
Description

Removes the credits.

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

Gets the metadata for the grading options.

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

Sets the grading options.

Parametersosid.id.Id[]gradeSystemIdsthe new grading options
ErrorsINVALID_ARGUMENT gradeSystemIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeSystemIds is null
CompliancemandatoryThis method must be implemented.
MethodclearGradingOptions
Description

Removes the grading options.

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

Gets the metadata for requires registration flag.

Returnosid.Metadatametadata for registration flag
CompliancemandatoryThis method must be implemented.
MethodsetRequiresRegistration
Description

Sets the requires registration flag.

ParametersbooleanrequiresRegistrationthe new registration flag
ErrorsINVALID_ARGUMENT requiresRegistration is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearRequiresRegistration
Description

Removes the requires registration flag.

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

Gets the metadata for the minimum seats.

Returnosid.Metadatametadata for the minimum seats
CompliancemandatoryThis method must be implemented.
MethodsetMinimumSeats
Description

Sets the minimum seating count.

Parameterscardinalseatsthe new minimum seats
ErrorsINVALID_ARGUMENT seats is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearMinimumSeats
Description

Removes the minimum seats.

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

Gets the metadata for the maximum seats.

Returnosid.Metadatametadata for the maximum seats
CompliancemandatoryThis method must be implemented.
MethodsetMaximumSeats
Description

Sets the maximum seating count.

Parameterscardinalseatsthe new maximum seats
ErrorsINVALID_ARGUMENT seats is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearMaximumSeats
Description

Removes the maximum seats.

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

Gets the metadata for a class url.

Returnosid.Metadatametadata for the url
CompliancemandatoryThis method must be implemented.
MethodsetURL
Description

Sets the url for a class web site.

Parametersstringurlthe new url
ErrorsINVALID_ARGUMENT url is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT url is null
CompliancemandatoryThis method must be implemented.
MethodclearURL
Description

Removes the url.

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

Gets the metadata for a schedule informatoin string.

Returnosid.Metadatametadata for the schedule information
CompliancemandatoryThis method must be implemented.
MethodsetScheduleInfo
Description

Sets the schedule information. This information may be derived from the schedule and not settable here.

ParametersstringscheduleInfothe new schedule info
ErrorsINVALID_ARGUMENT scheduleInfo is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT scheduleInfo is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleInfo
Description

Removes the schedule info.

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

Gets the metadata for manually linking an event.

Returnosid.Metadatametadata for the event
CompliancemandatoryThis method must be implemented.
MethodsetEvent
Description

Sets the event. This information may be derived from the activity schedules.

Parametersosid.id.IdeventIdthe new event
ErrorsINVALID_ARGUMENT eventId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT eventId is null
CompliancemandatoryThis method must be implemented.
MethodclearEvent
Description

Removes the event.

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

Gets the CourseOfferingFormRecord corresponding to the given course offering record Type.

Parametersosid.type.TypecourseOfferingRecordTypea course offering record type
Returnosid.course.records.CourseOfferingFormRecordthe course offering form record
ErrorsNULL_ARGUMENT courseOfferingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(courseOfferingRecordType) is false
CompliancemandatoryThis method must be implemented.