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

PropertyReturnsDescription
commentStringText of the wall post.
filesList<FilePostBuilder>Files to attach to the wall post, built up by repeated calls to newFile.
shareableItemEventShareableItemEventThe 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.
wallEntityBaseEntityThe 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.

ParameterDescription
wallEntitythe 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.

ParameterDescription
wallEntitybeanthe 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.

ParameterDescription
shareableItemEventthe 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.

ParameterDescription
commentthe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.