public abstract class AbstractPost<T extends ForumConfiguration> extends AbstractComment<T> implements Post<T>
Comment.ModeratorActions, Comment.ModeratorStatus, Comment.Tag
LAST_SELF_MOD_BY, PN_COMPOSED_BY, PN_COMPOSED_FOR, PN_SUBJECT, POST_POSTFIX
COMMENT_RESOURCETYPE, COMMENTCOLLECTION_RESOURCETYPE, JSON_EXTENSION, NODE_TYPE, PROP_APPROVED, PROP_REFERER, PROP_SPAM, PROP_USE_REFERRER_URL, SOCO_SELECTOR
CSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, QUERY_SELECTOR, TRANSLATE_SELECTOR
Constructor and Description |
---|
AbstractPost(Resource resource,
ClientUtilities clientUtils,
CommentSocialComponentListProviderManager listProviderManager) |
AbstractPost(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo,
CommentSocialComponentListProviderManager listProviderManager)
Constructor of a comment.
|
AbstractPost(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo,
Resource latestPost,
int numReplies,
CommentSocialComponentListProviderManager listProviderManager) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getForumId()
Get the forum id for this post.
|
java.lang.String |
getFriendlyUrl()
Get a url that can be used to display this component, most of the time, this is the page url that contains the
component.
|
User |
getLastModifiedUser()
Returns the user that effected the last modification of this post.
|
java.lang.String |
getLatestPost()
Returns the latest post, i.e.
|
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() |
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.
|
void |
setPagination(CollectionPagination pagination)
Set the collection list range.
|
getAttachment, getAttachments, getAuthor, getCanDelete, getCanEdit, getCanReply, getCanTranslate, getConfiguration, getCreated, getCurrentUserFlagText, getFlagReasons, getItems, getMessage, getModeratorActions, getModeratorStatus, getPageInfo, getParent, getParentComponent, getParentId, getPublishDate, getReferrerUrl, getResourceType, getSourceComponent, getSourceComponentId, getState, getTags, getTotalSize, getTranslationAttribution, getTranslationDescription, getTranslationDisplay, getTranslationTitle, getUseFlagReasons, getVotes, isApproved, isDraft, isFeatured, isFlaggedByUser, isPinned, isScheduled, isTopLevel, isUserModerator, isVisible, setSortedOrder, setSortFields, toString
buildJSONString, getAsMap, getId, getProperties, getProperty, getProperty, getResource, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPageInfo
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, isVisible
getItems, getTotalSize, setSortedOrder
getAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
public AbstractPost(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
RepositoryException
public AbstractPost(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
resource
- of the componentclientUtils
- the client utilities instancequeryInfo
- The query request InfolistProviderManager
- the list provider managerRepositoryException
- if an error occurspublic AbstractPost(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo, Resource latestPost, int numReplies, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
RepositoryException
public java.lang.String getSubject()
Post
getSubject
in interface Post<T extends ForumConfiguration>
String
representing the post's subject or null
if not defined.public User getLastModifiedUser()
getLastModifiedUser
in interface Post<T extends ForumConfiguration>
User
last modified this post.public boolean isClosed()
isClosed
in interface Comment<T extends ForumConfiguration>
isClosed
in interface Post<T extends ForumConfiguration>
isClosed
in class AbstractComment<T extends ForumConfiguration>
public boolean isTopicClosed()
Post
isTopicClosed
in interface Post<T extends ForumConfiguration>
public boolean isForumClosed()
Post
isForumClosed
in interface Post<T extends ForumConfiguration>
public boolean isTopic()
isTopic
in interface Post<T extends ForumConfiguration>
true
if this post is a topic.public java.lang.String getForumId()
getForumId
in interface Post<T extends ForumConfiguration>
public java.lang.String getLatestPost()
null
is returned.getLatestPost
in interface Post<T extends ForumConfiguration>
null
if not found.public void setLatestPost(Resource post)
Post
setLatestPost
in interface Post<T extends ForumConfiguration>
post
- the latest post.public void setNumReplies(int replies)
Post
setNumReplies
in interface Post<T extends ForumConfiguration>
replies
- the latest number of replies.public java.lang.String getFriendlyUrl()
SocialComponent
getFriendlyUrl
in interface Post<T extends ForumConfiguration>
getFriendlyUrl
in interface SocialComponent
getFriendlyUrl
in class AbstractComment<T extends ForumConfiguration>
public void setPagination(CollectionPagination pagination)
AbstractComment
setPagination
in interface SocialCollectionComponent
setPagination
in class AbstractComment<T extends ForumConfiguration>
pagination
- detail information to usepublic java.util.Map<java.lang.String,java.lang.Integer> getViewCounts()
Post
getViewCounts
in interface Post<T extends ForumConfiguration>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"