public interface Post<T extends CommentCollectionConfiguration> extends Comment<T>
Post.isTopic()
method indicates whether an
instance of a Post is a topic or not.Comment.ModeratorActions, Comment.ModeratorStatus, Comment.Tag
Modifier and Type | Field and Description |
---|---|
static String |
LAST_SELF_MOD_BY
JCR properties that maintains the id of the user that effected the last modification of this topic.
|
static String |
PN_SUBJECT |
static String |
POST_POSTFIX |
COMMENT_RESOURCETYPE, COMMENTCOLLECTION_RESOURCETYPE, JSON_EXTENSION, NODE_TYPE, PROP_APPROVED, PROP_SPAM, SOCO_SELECTOR
Modifier and Type | Method and Description |
---|---|
String |
getForumId()
Get the forum id for this post.
|
String |
getFriendlyUrl() |
User |
getLastModifiedUser()
Returns the user that effected the last modification of this post.
|
String |
getLatestPost()
Returns the latest post, i.e.
|
PageInfo |
getPageInfo()
Gets information about the pages for this collection.
|
String |
getSubject()
This method returns the forum post's subject as entered by the user.
|
boolean |
isClosed()
Indicates whether this forum or topic is closed for further addition of topics/posts.
|
boolean |
isForumClosed() |
boolean |
isPinned()
Indicates whether this post is pinned.
|
boolean |
isTopic()
Check if this instance is a Post or not.
|
boolean |
isTopicClosed() |
void |
setLatestPost(Resource post)
Set latest post.
|
void |
setNumReplies(int replies)
Set the number of replies
|
createConfiguration, getAttachment, getAttachments, getAuthor, getCanDelete, getCanEdit, getCanReply, getCanTranslate, getConfiguration, getCreated, getCurrentUserFlagText, getFlagReasons, getMessage, getModeratorActions, getModeratorStatus, getParentId, getTags, getUseFlagReasons, getVotes, isApproved, isFlaggedByUser, isTopLevel, isUserModerator, isVisible
getItems, getTotalSize, setPagination, setSortedOrder
getAsMap, getId, getProperties, getResource, getResourceType, getUrl, toJSONString
static final String LAST_SELF_MOD_BY
static final String PN_SUBJECT
static final String POST_POSTFIX
String getSubject()
String
representing the post's subject or null
if not defined.User getLastModifiedUser()
User
last modified this post.boolean isPinned()
true
if this post is pinned.boolean isClosed()
isClosed
in interface Comment<T extends CommentCollectionConfiguration>
boolean isTopic()
true
if this post is a topic.String getForumId()
String getLatestPost()
null
is returned.null
if not found.String getFriendlyUrl()
void setLatestPost(Resource post)
post
- the latest post.void setNumReplies(int replies)
numReplies
- the latest number of replies.PageInfo getPageInfo()
getPageInfo
in interface Comment<T extends CommentCollectionConfiguration>
boolean isTopicClosed()
boolean isForumClosed()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"