Interface Post
- All Superinterfaces:
Browsable, Extensible, Identifiable, 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 .
-
Method Summary
Modifier and TypeMethodDescriptionGets the poster of this post.Gets the posterIdof this post.Gets the posting agent of this post.Gets the posting agentIdof this post.getPostRecord(Type postRecordType) Gets the post record corresponding to the givenPostrecordType.This method is used to retrieve an object implementing the requested record.Gets the subject line of this post.getText()Gets the text of the post.Gets the time of this post.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getTimestamp
DateTime getTimestamp()Gets the time of this post.- Returns:
- the time
- Compliance:
mandatory- This method must be implemented.
-
getPosterId
Id getPosterId()Gets the posterIdof this post.- Returns:
- the poster resource
Id - Compliance:
mandatory- This method must be implemented.
-
getPoster
Gets the poster of this post.- Returns:
- the poster resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPostingAgentId
Id getPostingAgentId()Gets the posting agentIdof this post.- Returns:
- the posting agent
Id - Compliance:
mandatory- This method must be implemented.
-
getPostingAgent
Gets the posting agent of this post.- Returns:
- the posting agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSubjectLine
DisplayText getSubjectLine()Gets the subject line of this post.- Returns:
- the subject
- Compliance:
mandatory- This method must be implemented.
-
getText
DisplayText getText()Gets the text of the post.- Returns:
- the entry text
- Compliance:
mandatory- This method must be implemented.
-
getPostRecord
Gets the post record corresponding to the givenPostrecordType.This method is used to retrieve an object implementing the requested record. ThepostRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(postRecordType)istrue.- Parameters:
postRecordType- the type of post record to retrieve- Returns:
- the post record
- Throws:
NullArgumentException-postRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(postRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-