public interface Post extends OsidObject
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.
Modifier and Type | Method and Description |
---|---|
Resource |
getPoster()
Gets the poster of this post.
|
Id |
getPosterId()
Gets the poster
Id of this post. |
Agent |
getPostingAgent()
Gets the posting agent of this post.
|
Id |
getPostingAgentId()
Gets the posting agent
Id of this post. |
PostRecord |
getPostRecord(Type postRecordType)
Gets the post record corresponding to the given
Post
record Type. |
DisplayText |
getSubjectLine()
Gets the subject line of this post.
|
DisplayText |
getText()
Gets the text of the post.
|
DateTime |
getTimestamp()
Gets the time of this post.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
DateTime getTimestamp()
mandatory
- This method must be implemented. Id getPosterId()
Id
of this post. Id
mandatory
- This method must be implemented. Resource getPoster() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getPostingAgentId()
Id
of this post. Id
mandatory
- This method must be implemented. Agent getPostingAgent() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. DisplayText getSubjectLine()
mandatory
- This method must be implemented. DisplayText getText()
mandatory
- This method must be implemented. PostRecord getPostRecord(Type postRecordType) throws OperationFailedException
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
.postRecordType
- the type of post record to retrieveNullArgumentException
- postRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(postRecordType)
is false
mandatory
- This method must be implemented.