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 java.lang.String |
LAST_SELF_MOD_BY
JCR properties that maintains the id of the user that effected the last modification of this topic.
|
static java.lang.String |
PN_COMPOSED_BY
The property that stores the original author
|
static java.lang.String |
PN_COMPOSED_FOR
The property that is used in request when creating post on behalf of a different user
|
static java.lang.String |
PN_SUBJECT
The pn subject.
|
static java.lang.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_SELECTORCSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, QUERY_SELECTOR, TRANSLATE_SELECTOR| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getForumId()
Get the forum id for this post.
|
java.lang.String |
getFriendlyUrl()
Gets the friendly url.
|
User |
getLastModifiedUser()
Returns the user that effected the last modification of this post.
|
java.lang.String |
getLatestPost()
Returns the latest post, i.e.
|
PageInfo |
getPageInfo()
Gets information about the pages for this collection.
|
java.lang.String |
getSubject()
This method returns the forum post's subject as entered by the user.
|
java.util.Map<java.lang.String,java.lang.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 |
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, getState, getTags, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isDraft, isFeatured, isFlaggedByUser, isPinned, isScheduled, isTopLevel, isUserModerator, isVisiblegetItems, getTotalSize, setPagination, setSortedOrdergetAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringstatic final java.lang.String LAST_SELF_MOD_BY
static final java.lang.String PN_SUBJECT
static final java.lang.String POST_POSTFIX
static final java.lang.String PN_COMPOSED_FOR
static final java.lang.String PN_COMPOSED_BY
java.lang.String getSubject()
String representing the post's subject or null if not defined.User getLastModifiedUser()
User last modified this post.boolean isClosed()
isClosed in interface Comment<T extends CommentCollectionConfiguration>true if this topic is closed.boolean isTopic()
true if this post is a topic.java.lang.String getForumId()
java.lang.String getLatestPost()
null is returned.null if not found.java.lang.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()
java.util.Map<java.lang.String,java.lang.Integer> getViewCounts()
Copyright © 2010 - 2023 Adobe. All Rights Reserved