OSID Logo
OSID Specifications
forum package
Version 3.0.0
Interfaceosid.forum.PostForm
Implementsosid.OsidObjectForm
Implemented Byosid.forum.batch.PostBatchForm
Used Byosid.forum.PostAdminSession
Description

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

MethodgetTimestampMetadata
Description

Gets the metadata for the timestamp.

Returnosid.Metadatametadata for the timestamp
CompliancemandatoryThis method must be implemented.
MethodsetTimestamp
Description

Sets the timestamp.

Parametersosid.calendaring.DateTimetimestampthe new timestamp
ErrorsINVALID_ARGUMENTtimestamp is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTtimestamp is null
CompliancemandatoryThis method must be implemented.
MethodclearTimestamp
Description

Clears the poster.

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

Gets the metadata for the poster.

Returnosid.Metadatametadata for the poster
CompliancemandatoryThis method must be implemented.
MethodsetPoster
Description

Sets the poster.

Parametersosid.id.IdresourceIdthe new poster
ErrorsINVALID_ARGUMENTresourceId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearPoster
Description

Clears the poster.

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

Gets the metadata for the subject line.

Returnosid.Metadatametadata for the subject line
CompliancemandatoryThis method must be implemented.
MethodsetSubjectLine
Description

Sets the subject line.

ParametersstringsubjectLinethe new subject line
ErrorsINVALID_ARGUMENTsubjectLine is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTsubjectLine is null
CompliancemandatoryThis method must be implemented.
MethodclearSubjectLine
Description

Clears the subject line.

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

Gets the metadata for the text.

Returnosid.Metadatametadata for the text
CompliancemandatoryThis method must be implemented.
MethodsetText
Description

Sets the text.

Parametersstringtextthe new text
ErrorsINVALID_ARGUMENTtext is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTtext is null
CompliancemandatoryThis method must be implemented.
MethodclearText
Description

Clears the text.

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

Gets the PostFormRecord corresponding to the given post record Type .

Parametersosid.type.TypepostRecordTypethe post record type
Returnosid.forum.records.PostFormRecordthe post form record
ErrorsNULL_ARGUMENTpostRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(postRecordType) is false
CompliancemandatoryThis method must be implemented.