OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.Schedule
Implementsosid.OsidObject
Used Byosid.OsidEnabler
osid.calendaring.ScheduleAdminSession
osid.calendaring.ScheduleList
osid.calendaring.ScheduleLookupSession
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.Id the schedule slot Id
Compliancemandatory This method must be implemented.
MethodgetScheduleSlot
Description

Gets the schedule slot included inside this one.

Returnosid.calendaring.ScheduleSlot the schedule slot
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This 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.Id the time period Id
ErrorsILLEGAL_STATE hasTimePeriod() is false
Compliancemandatory This 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.TimePeriod the time period
ErrorsILLEGAL_STATE hasTimePeriod() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.DateTime the start date
Compliancemandatory This 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.DateTime the end date
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetLimit
Description

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

Returncardinal the limit
ErrorsILLEGAL_STATE hasLimitl() is false
Compliancemandatory This method must be implemented.
MethodgetLocationDescription
Description

Gets a descriptive location.

Returnosid.locale.DisplayText the location
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetLocationId
Description

Gets the location Id.

Returnosid.id.Id a location Id
ErrorsILLEGAL_STATE hasLocation() is false
Compliancemandatory This method must be implemented.
MethodgetLocation
Description

Gets the Location.

Returnosid.mapping.Location a location
ErrorsILLEGAL_STATE hasLocation() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.Duration the total duration
Compliancemandatory This 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.TypescheduleRecordType the type of the record to retrieve
Returnosid.calendaring.records.ScheduleRecord the schedule record
ErrorsNULL_ARGUMENT scheduleRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(scheduleRecordType) is false
Compliancemandatory This method must be implemented.