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

A TimePeriod represents a span of time in which recurring events are expanded.

MethodgetStart
Description

Gets the start time of the time period.

Returnosid.calendaring.DateTimethe start time
CompliancemandatoryThis method must be implemented.
MethodgetEnd
Description

Gets the end time of the time period.

Returnosid.calendaring.DateTimethe end time
CompliancemandatoryThis method must be implemented.
MethodgetExceptionIds
Description

Gets the exception Ids to this time period. Recurring events overlapping with these events do not appear in any recurring event for this time period.

Returnosid.id.IdListlist of exception event Ids
CompliancemandatoryThis method must be implemented.
MethodgetExceptions
Description

Gets the exceptions to this time period. Recurring events overlapping with these events do not appear in any recurring event for this time period.

Returnosid.calendaring.EventListevent exceptions
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriodRecord
Description

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

Parametersosid.type.TypetimePeriodRecordTypethe type of the record to retrieve
Returnosid.calendaring.records.TimePeriodRecordthe time period record
ErrorsNULL_ARGUMENT timePeriodRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(timePeriodRecordType) is false
CompliancemandatoryThis method must be implemented.