Collects the data needed to post a comment onto an organisation's or profile's wall: the target entity, the comment text or a triggering ShareableItemEvent, and any file attachments. Obtained from ForumManager.newWallPostBuilder, built up fluently with the withX methods and newFile, then passed to ForumManager.processWallPost to create the Comment.
Group: Builders
Properties
| Property | Returns | Description |
|---|---|---|
| comment | String | Text of the wall post. |
| files | List<FilePostBuilder> | Files to attach to the wall post, built up by repeated calls to newFile. |
| shareableItemEvent | ShareableItemEvent | The ShareableItemEvent that triggered this post, if the post is being created as a result of an item being shared rather than typed directly by a user. |
| wallEntity | BaseEntity | The organisation or profile whose wall the post is created on. |
Methods
getWallEntity() · withWallEntity(BaseEntity wallEntity) · withWallEntity(EntityBean wallEntitybean) · getShareableItemEvent() · withShareableItemEvent(ShareableItemEvent shareableItemEvent) · getComment() · withComment(String comment) · getFiles() · newFile()
getWallEntity()
Returns: BaseEntity
The organisation or profile whose wall the post is created on.
withWallEntity(BaseEntity wallEntity)
Returns: WallPostBuilder
Sets the wall entity directly from a persisted BaseEntity and returns this builder for chaining.
| Parameter | Description |
|---|---|
wallEntity | the organisation or profile whose wall the post is created on |
withWallEntity(EntityBean wallEntitybean)
Returns: WallPostBuilder
Sets the wall entity from an EntityBean wrapper and returns this builder for chaining.
| Parameter | Description |
|---|---|
wallEntitybean | the organisation or profile whose wall the post is created on, or null to clear it |
getShareableItemEvent()
Returns: ShareableItemEvent
The ShareableItemEvent that triggered this post, if the post is being created as a result of an item being shared rather than typed directly by a user.
withShareableItemEvent(ShareableItemEvent shareableItemEvent)
Returns: WallPostBuilder
Sets the triggering shareable item event and returns this builder for chaining.
| Parameter | Description |
|---|---|
shareableItemEvent | the event that is causing this post to be created |
getComment()
Returns: String
Text of the wall post.
withComment(String comment)
Returns: WallPostBuilder
Sets the comment text and returns this builder for chaining.
| Parameter | Description |
|---|---|
comment | the text of the wall post |
getFiles()
Returns: List<FilePostBuilder>
Files to attach to the wall post, built up by repeated calls to newFile.
newFile()
Returns: FilePostBuilder
Creates a new file attachment, adds it to this post's list of files, and returns it so its properties can be set.