OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.TimePeriodForm
Implementsosid.OsidObjectForm
Description

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

MethodgetStartMetadata
Description

Gets the metadata for a start time.

Returnosid.Metadatametadata for the start time
CompliancemandatoryThis method must be implemented.
MethodsetStart
Description

Sets the start time.

Parametersosid.calendaring.DateTimestartthe new start time
ErrorsINVALID_ARGUMENT start is invalid
NO_ACCESS start cannot be modified
NULL_ARGUMENT start is null
CompliancemandatoryThis method must be implemented.
MethodclearStart
Description

Clears the start time.

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

Gets the metadata for an end time.

Returnosid.Metadatametadata for the end time
CompliancemandatoryThis method must be implemented.
MethodsetEnd
Description

Sets the end time.

Parametersosid.calendaring.DateTimeendthe new end time
ErrorsINVALID_ARGUMENT end is invalid
NO_ACCESS end cannot be modified
NULL_ARGUMENT end is null
CompliancemandatoryThis method must be implemented.
MethodclearEnd
Description

Clears the time period end.

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

Gets the TimePeriodFormRecord corresponding to the given time period record Type.

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