OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.PeriodForm
Implementsosid.OsidObjectForm
Description

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

MethodgetDisplayLabelMetadata
Description

Gets the metadata for a display label title.

Returnosid.Metadatametadata for the display label
CompliancemandatoryThis method must be implemented.
MethodsetDisplayLabel
Description

Sets the display label.

ParametersstringdisplayLabelthe new display label
ErrorsINVALID_ARGUMENT displayLabel is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT displayLabel is null
CompliancemandatoryThis method must be implemented.
MethodclearDisplayLabel
Description

Removes the display label.

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

Gets the metadata for an open date.

Returnosid.Metadatametadata for the open date
CompliancemandatoryThis method must be implemented.
MethodsetOpenDate
Description

Sets the open date.

Parametersosid.calendaring.DateTimedatethe new open date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS date cannot be modified
NULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodclearOpenDate
Description

Clears the open date.

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

Gets the metadata for the close date.

Returnosid.Metadatametadata for the close date
CompliancemandatoryThis method must be implemented.
MethodsetCloseDate
Description

Sets the close date.

Parametersosid.calendaring.DateTimedatethe new close date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS date cannot be modified
NULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodclearCloseDate
Description

Clears the close date.

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

Gets the metadata for the billing date.

Returnosid.Metadatametadata for the billing date
CompliancemandatoryThis method must be implemented.
MethodsetBillingDate
Description

Sets the billing date.

Parametersosid.calendaring.DateTimedatethe new billing date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS date cannot be modified
NULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodclearBillingDate
Description

Clears the billing date.

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

Gets the metadata for the due date.

Returnosid.Metadatametadata for the due date
CompliancemandatoryThis method must be implemented.
MethodsetDueDate
Description

Sets the due date.

Parametersosid.calendaring.DateTimedatethe new due date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS date cannot be modified
NULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodclearDueDate
Description

Clears the due date.

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

Gets the PeriodFormRecord corresponding to the given period record Type.

Parametersosid.type.TypeperiodRecordTypea period record type
Returnosid.billing.records.PeriodFormRecordthe period form record
ErrorsNULL_ARGUMENT periodRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(periodRecordType) is false
CompliancemandatoryThis method must be implemented.