OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.ScheduleSlotForm
Implementsosid.OsidObjectForm
osid.OsidContainableForm
Description

This is the form for creating and updating ScheduleSlots. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the ScheduleSlotAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetWeekdayMetadata
Description

Gets the metadata for the weekdays of a weekly schedule.

Returnosid.Metadatametadata for the weekday
CompliancemandatoryThis method must be implemented.
MethodsetWeekdays
Description

Sets the weekdays of a weekly schedule.

Parameterscardinal[]weekdaysthe new weekday set
ErrorsINVALID_ARGUMENT weekdays is invalid
NO_ACCESS weekdays cannot be modified
NULL_ARGUMENT weekdays is null
CompliancemandatoryThis method must be implemented.
MethodgetWeeklyIntervalMetadata
Description

Gets the metadata for the interval of a weekly schedule.

Returnosid.Metadatametadata for the weekly interval
CompliancemandatoryThis method must be implemented.
MethodsetWeeklyInterval
Description

Sets the interval of a weekly schedule.

Parametersintegerintervalthe new weekly interval
ErrorsINVALID_ARGUMENT interval is invalid
NO_ACCESS interval cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetWeekOfMonthMetadata
Description

Gets the metadata for the week of the month of a weekly schedule.

Returnosid.Metadatametadata for the week of the month
CompliancemandatoryThis method must be implemented.
MethodsetWeekOfMonth
Description

Sets the week of the month of a weekly schedule.

Parametersintegerweekthe new week of the month
ErrorsINVALID_ARGUMENT week is invalid
NO_ACCESS week cannot be modified
CompliancemandatoryThis method must be implemented.
MethodgetWeekdayTimeMetadata
Description

Gets the metadata for the weekday time of a weekly schedule.

Returnosid.Metadatametadata for the weekday time
CompliancemandatoryThis method must be implemented.
MethodsetWeekdayTime
Description

Sets the weekday time of a weekly schedule.

Parametersosid.calendaring.Timetimethe new time
ErrorsINVALID_ARGUMENT time is invalid
NO_ACCESS time cannot be modified
NULL_ARGUMENT time is null
CompliancemandatoryThis method must be implemented.
MethodclearWeekdaySchedule
Description

Clears the weekday schedule items.

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

Gets the metadata for the fixed interval.

Returnosid.Metadatametadata for the fixed interval.
CompliancemandatoryThis method must be implemented.
MethodsetFixedInterval
Description

Sets the fixed interval.

Parametersosid.calendaring.Durationintervalthe new fixed interval
ErrorsINVALID_ARGUMENT interval is invalid
NO_ACCESS interval cannot be modified
NULL_ARGUMENT interval is null
CompliancemandatoryThis method must be implemented.
MethodclearFixedInterval
Description

Clears the fixed interval items.

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

Gets the metadata for the duration of the slot.

Returnosid.Metadatametadata for the duration
CompliancemandatoryThis method must be implemented.
MethodsetDuration
Description

Sets the duration.

Parametersosid.calendaring.Durationdurationthe new duration
ErrorsINVALID_ARGUMENT duration is invalid
NO_ACCESS duration cannot be modified
NULL_ARGUMENT duration is null
CompliancemandatoryThis method must be implemented.
MethodclearDuration
Description

Clears the duration terms.

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

Gets the ScheduleSlotFormRecord corresponding to the given schedule record Type.

Parametersosid.type.TypescheduleSlotRecordTypethe schedule slot record type
Returnosid.calendaring.records.ScheduleSlotFormRecordthe schedule slot form record
ErrorsNULL_ARGUMENT scheduleSlotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(scheduleSlotRecordType) is false
CompliancemandatoryThis method must be implemented.