T - the generic typepublic interface Post<T extends CommentCollectionConfiguration> extends Comment<T>
Post represents a topic of a forum, or a post of a topics. The 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_COMPOSED_BY
The property that stores the original author
|
static String |
PN_COMPOSED_FOR
The property that is used in request when creating post on behalf of a different user
|
static String |
PN_SUBJECT
The pn subject.
|
static String |
POST_POSTFIX
The post postfix.
|
COMMENT_RESOURCETYPE, COMMENTCOLLECTION_RESOURCETYPE, JSON_EXTENSION, NODE_TYPE, PROP_APPROVED, PROP_REFERER, PROP_SPAM, PROP_USE_REFERRER_URL, SOCO_SELECTORDEFAULT_SELECTOR, INDEX_SELECTOR, QUERY_SELECTOR, TRANSLATE_SELECTOR| Modifier and Type | Method and Description |
|---|---|
String |
getForumId()
Get the forum id for this post.
|
String |
getFriendlyUrl()
Gets the friendly url.
|
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.
|
Map<String,Integer> |
getViewCounts()
Gets the view counts for this post by time segment.
|
boolean |
isClosed()
Indicates whether this forum or topic is closed for further addition of topics/posts.
|
boolean |
isForumClosed()
Checks if is forum closed.
|
boolean |
isPinned()
Indicates whether this post is pinned.
|
boolean |
isTopic()
Check if this instance is a Post or not.
|
boolean |
isTopicClosed()
Checks if is topic closed.
|
void |
setLatestPost(Resource post)
Set latest post.
|
void |
setNumReplies(int replies)
Set the number of replies.
|
getAttachment, getAttachments, getAuthor, getCanDelete, getCanEdit, getCanReply, getCanTranslate, getConfiguration, getCreated, getCurrentUserFlagText, getFlagReasons, getMessage, getModeratorActions, getModeratorStatus, getParentId, getPublishDate, getReferrerUrl, getSourceComponentId, getTags, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isDraft, isFlaggedByUser, isScheduled, isTopLevel, isUserModerator, isVisiblegetItems, getTotalSize, setPagination, setSortedOrdergetAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringstatic final String LAST_SELF_MOD_BY
static final String PN_SUBJECT
static final String POST_POSTFIX
static final String PN_COMPOSED_FOR
static final String PN_COMPOSED_BY
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>true if this topic is closed.boolean isTopic()
true if this post is a topic.String getForumId()
String getLatestPost()
null is returned.null if not found.String getFriendlyUrl()
getFriendlyUrl in interface SocialComponentvoid setLatestPost(Resource post)
post - the latest post.void setNumReplies(int replies)
replies - the latest number of replies.PageInfo getPageInfo()
getPageInfo in interface Comment<T extends CommentCollectionConfiguration>boolean isTopicClosed()
boolean isForumClosed()
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"