OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Interfaceosid.calendaring.ScheduleForm
Implementsosid.OsidObjectForm
Implemented Byosid.calendaring.batch.ScheduleBatchForm
Used Byosid.calendaring.ScheduleAdminSession
Description

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

MethodgetScheduleSlotMetadata
Description

Gets the metadata for the schedule slot.

Returnosid.Metadatametadata for the schedule slot
CompliancemandatoryThis method must be implemented.
MethodsetScheduleSlot
Description

Sets the schedule slot.

Parametersosid.id.IdscheduleSlotIdthe new schedule slot Id
ErrorsINVALID_ARGUMENTscheduleSlotId is invalid
NO_ACCESSscheduleSlotId cannot be modified
NULL_ARGUMENTscheduleSlotId is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleSlot
Description

Clears the schedule slot.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriodMetadata
Description

Gets the metadata for the time period.

Returnosid.Metadatametadata for the time period
CompliancemandatoryThis method must be implemented.
MethodsetTimePeriod
Description

Sets the time period.

Parametersosid.id.IdtimePeriodIdthe new time period Id
ErrorsINVALID_ARGUMENTtimePeriodId is invalid
NO_ACCESStimePeriodId cannot be modified
NULL_ARGUMENTtimePeriodId is null
CompliancemandatoryThis method must be implemented.
MethodclearTimePeriod
Description

Clears the time period.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetScheduleStartMetadata
Description

Gets the metadata for the schedule start date.

Returnosid.Metadatametadata for the schedule start
CompliancemandatoryThis method must be implemented.
MethodsetScheduleStart
Description

Sets the schedule start date. This may be set in lieu of a time period to set a specific date range.

Parametersosid.calendaring.DateTimestartthe new start date
ErrorsINVALID_ARGUMENTstart is invalid
NO_ACCESSstart cannot be modified
NULL_ARGUMENTstart is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleStart
Description

Clears the schedule start.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetScheduleEndMetadata
Description

Gets the metadata for the schedule end date.

Returnosid.Metadatametadata for the schedule end
CompliancemandatoryThis method must be implemented.
MethodsetScheduleEnd
Description

Sets the schedule end date. This may be set in lieu of a time period to set a specific date range.

Parametersosid.calendaring.DateTimestartthe new end date
ErrorsINVALID_ARGUMENTend is invalid
NO_ACCESSend cannot be modified
NULL_ARGUMENTend is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleEnd
Description

Clears the schedule end.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetLimitMetadata
Description

Gets the metadata for the weekdays of a weekly schedule.

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

Sets the weekdays of a weekly schedule.

Parameterscardinal[]weekdaysthe new weekday set
ErrorsINVALID_ARGUMENTweekdays is invalid
NO_ACCESSweekdays cannot be modified
NULL_ARGUMENTweekdays is null
CompliancemandatoryThis method must be implemented.
MethodclearLimit
Description

Clears the limit.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodsetLocationDescription
Description

Sets the location description.

Parametersstringlocationthe new location description
ErrorsINVALID_ARGUMENTlocation is invalid
NO_ACCESSlocation cannot be modified
NULL_ARGUMENTlocation is null
CompliancemandatoryThis method must be implemented.
MethodclearLocationDescription
Description

Clears the location description.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetLocationMetadata
Description

Gets the metadata for a location.

Returnosid.Metadatametadata for the location
CompliancemandatoryThis method must be implemented.
MethodsetLocation
Description

Sets the location.

Parametersosid.id.IdlocationIdthe new location
ErrorsINVALID_ARGUMENTlocationId is invalid
NO_ACCESSlocationId cannot be modified
NULL_ARGUMENTlocationId is null
CompliancemandatoryThis method must be implemented.
MethodclearLocation
Description

Clears the location.

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

Gets the ScheduleFormRecord corresponding to the given schedule record Type .

Parametersosid.type.TypescheduleRecordTypethe schedule record type
Returnosid.calendaring.records.ScheduleFormRecordthe schedule form record
ErrorsNULL_ARGUMENTscheduleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(scheduleRecordType) is false
CompliancemandatoryThis method must be implemented.