OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.Schedule
Implementsosid.OsidObject
Description

A Schedule is a scheduled time slot offered within a time interval at a location. The time interval may be inferred from an associated TimePeriod or managed explicitly without a TimePeriod.

MethodgetScheduleSlotId
Description

Gets the Id of the schedule slot.

Returnosid.id.Idthe schedule slot Id
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSlot
Description

Gets the schedule slot included inside this one.

Returnosid.calendaring.ScheduleSlotthe schedule slot
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasTimePeriod
Description

Tests if a TimePeriod is associated with this schedule. The time period determines the start and end time of the recurring series.

Returnboolean true if there is an associated TimePeriod, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriodId
Description

Gets the TimePeriod Id for this recurring event. A Schedule with an associated TimePeriod overrides any start or end date set.

Returnosid.id.Idthe time period Id
ErrorsILLEGAL_STATE hasTimePeriod() is false
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriod
Description

Gets the TimePeriod for this recurring event. A Schedule with an associated TimePeriod overrides any start or end date set.

Returnosid.calendaring.TimePeriodthe time period
ErrorsILLEGAL_STATE hasTimePeriod() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetScheduleStart
Description

Gets the start date of this schedule. If hasTimePeriod() is true, the start date is the start date of the associated TimePeriod.

Returnosid.calendaring.DateTimethe start date
CompliancemandatoryThis method must be implemented.
MethodgetScheduleEnd
Description

Gets the end date of this schedule. If hasTimePeriod() is true, the end date is the end date of the associated TimePeriod.

Returnosid.calendaring.DateTimethe end date
CompliancemandatoryThis method must be implemented.
MethodhasLimit
Description

Tests if this schedule has a limit on the number of occurrences.

Returnboolean true if there is a limit false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetLimit
Description

Gets the limit of the number of occurences of this schedule.

Returncardinalthe limit
ErrorsILLEGAL_STATE hasLimitl() is false
CompliancemandatoryThis method must be implemented.
MethodgetLocationDescription
Description

Gets a descriptive location.

Returnosid.locale.DisplayTextthe location
CompliancemandatoryThis method must be implemented.
MethodhasLocation
Description

Tests if a location is associated with this event.

Returnboolean true if there is an associated location, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetLocationId
Description

Gets the location Id .

Returnosid.id.Ida location Id
ErrorsILLEGAL_STATE hasLocation() is false
CompliancemandatoryThis method must be implemented.
MethodgetLocation
Description

Gets the Location.

Returnosid.mapping.Locationa location
ErrorsILLEGAL_STATE hasLocation() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetTotalDuration
Description

Gets a total duration for the entire schedule based on the duration of schedule slots and span of the schedule.

Returnosid.calendaring.Durationthe total duration
CompliancemandatoryThis method must be implemented.
MethodgetScheduleRecord
Description

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

Parametersosid.type.TypescheduleRecordTypethe type of the record to retrieve
Returnosid.calendaring.records.ScheduleRecordthe schedule record
ErrorsNULL_ARGUMENT scheduleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(scheduleRecordType) is false
CompliancemandatoryThis method must be implemented.