OSID Logo
OSID Specifications
forum package
Version 3.0.0
Release Candidate Preview
Interfaceosid.forum.Post
Implementsosid.OsidObject
Description

A Post represents a blob of text posted to a forum by a poster. Like all OSID objects, a Post is identified by its Id and any persisted references should use the Id.

MethodgetTimestamp
Description

Gets the time of this post.

Returnosid.calendaring.DateTimethe time
CompliancemandatoryThis method must be implemented.
MethodgetPosterId
Description

Gets the poster Id of this post.

Returnosid.id.Idthe poster resource Id
CompliancemandatoryThis method must be implemented.
MethodgetPoster
Description

Gets the poster of this post.

Returnosid.resource.Resourcethe poster resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetPostingAgentId
Description

Gets the posting agent Id of this post.

Returnosid.id.Idthe posting agent Id
CompliancemandatoryThis method must be implemented.
MethodgetPostingAgent
Description

Gets the posting agent of this post.

Returnosid.authentication.Agentthe posting agent
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSubjectLine
Description

Gets the subject line of this post.

Returnosid.locale.DisplayTextthe subject
CompliancemandatoryThis method must be implemented.
MethodgetText
Description

Gets the text of the post.

Returnosid.locale.DisplayTextthe entry text
CompliancemandatoryThis method must be implemented.
MethodgetPostRecord
Description

Gets the post record corresponding to the given Post record Type. This method is used to retrieve an object implementing the requested record. The postRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(postRecordType) is true .

Parametersosid.type.TypepostRecordTypethe type of post record to retrieve
Returnosid.forum.records.PostRecordthe post record
ErrorsNULL_ARGUMENT postRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(postRecordType) is false
CompliancemandatoryThis method must be implemented.