OSID Logo
OSID Specifications
forum package
Version 3.1.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.Metadata metadata for the timestamp
Compliancemandatory This method must be implemented.
MethodsetTimestamp
Description

Sets the timestamp.

Parametersosid.calendaring.DateTimetimestamp the new timestamp
ErrorsINVALID_ARGUMENT timestamp is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT timestamp is null
Compliancemandatory This method must be implemented.
MethodclearTimestamp
Description

Clears the poster.

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

Gets the metadata for the poster.

Returnosid.Metadata metadata for the poster
Compliancemandatory This method must be implemented.
MethodsetPoster
Description

Sets the poster.

Parametersosid.id.IdresourceId the new poster
ErrorsINVALID_ARGUMENT resourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearPoster
Description

Clears the poster.

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

Gets the metadata for the subject line.

Returnosid.Metadata metadata for the subject line
Compliancemandatory This method must be implemented.
MethodsetSubjectLine
Description

Sets the subject line.

ParametersstringsubjectLine the new subject line
ErrorsINVALID_ARGUMENT subjectLine is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT subjectLine is null
Compliancemandatory This method must be implemented.
MethodclearSubjectLine
Description

Clears the subject line.

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

Gets the metadata for the text.

Returnosid.Metadata metadata for the text
Compliancemandatory This method must be implemented.
MethodsetText
Description

Sets the text.

Parametersstringtext the new text
ErrorsINVALID_ARGUMENT text is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT text is null
Compliancemandatory This method must be implemented.
MethodclearText
Description

Clears the text.

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

Gets the PostFormRecord corresponding to the given post record Type.

Parametersosid.type.TypepostRecordType the post record type
Returnosid.forum.records.PostFormRecord the post form record
ErrorsNULL_ARGUMENT postRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(postRecordType) is false
Compliancemandatory This method must be implemented.