OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.TimePeriodForm
Implementsosid.OsidObjectForm
Implemented Byosid.calendaring.batch.TimePeriodBatchForm
Used Byosid.calendaring.TimePeriodAdminSession
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.Metadata metadata for the start time
Compliancemandatory This method must be implemented.
MethodsetStart
Description

Sets the start time.

Parametersosid.calendaring.DateTimestart the new start time
ErrorsINVALID_ARGUMENT start is invalid
NO_ACCESS start cannot be modified
NULL_ARGUMENT start is null
Compliancemandatory This method must be implemented.
MethodclearStart
Description

Clears the start time.

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

Gets the metadata for an end time.

Returnosid.Metadata metadata for the end time
Compliancemandatory This method must be implemented.
MethodsetEnd
Description

Sets the end time.

Parametersosid.calendaring.DateTimeend the new end time
ErrorsINVALID_ARGUMENT end is invalid
NO_ACCESS end cannot be modified
NULL_ARGUMENT end is null
Compliancemandatory This method must be implemented.
MethodclearEnd
Description

Clears the time period end.

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

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

Parametersosid.type.TypetimePeriodRecordType the time period record type
Returnosid.calendaring.records.TimePeriodFormRecord the time period form record
ErrorsNULL_ARGUMENT timePeriodRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(timePeriodRecordType) is false
Compliancemandatory This method must be implemented.