public abstract class AbstractPost<T extends ForumConfiguration> extends AbstractComment<T> implements Post<T>
Comment.ModeratorActions, Comment.ModeratorStatus, Comment.TagLAST_SELF_MOD_BY, PN_COMPOSED_BY, PN_COMPOSED_FOR, PN_SUBJECT, POST_POSTFIXCOMMENT_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| 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, toStringbuildJSONString, getAsMap, getId, getProperties, getProperty, getProperty, getResource, getUrl, toJSONStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPageInfogetAttachment, 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, setSortedOrdergetAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringpublic AbstractPost(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager listProviderManager) throws RepositoryException
RepositoryExceptionpublic 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
RepositoryExceptionpublic java.lang.String getSubject()
PostgetSubject 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()
PostisTopicClosed in interface Post<T extends ForumConfiguration>public boolean isForumClosed()
PostisForumClosed 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)
PostsetLatestPost in interface Post<T extends ForumConfiguration>post - the latest post.public void setNumReplies(int replies)
PostsetNumReplies in interface Post<T extends ForumConfiguration>replies - the latest number of replies.public java.lang.String getFriendlyUrl()
SocialComponentgetFriendlyUrl in interface Post<T extends ForumConfiguration>getFriendlyUrl in interface SocialComponentgetFriendlyUrl in class AbstractComment<T extends ForumConfiguration>public void setPagination(CollectionPagination pagination)
AbstractCommentsetPagination in interface SocialCollectionComponentsetPagination in class AbstractComment<T extends ForumConfiguration>pagination - detail information to usepublic java.util.Map<java.lang.String,java.lang.Integer> getViewCounts()
PostgetViewCounts in interface Post<T extends ForumConfiguration>Copyright © 2010 - 2023 Adobe. All Rights Reserved