@ProviderType
public interface CommentManager
| Modifier and Type | Method and Description |
|---|---|
long |
addComment(long userId,
long groupId,
String className,
long classPK,
String body,
Function<String,ServiceContext> serviceContextFunction) |
long |
addComment(long userId,
long groupId,
String className,
long classPK,
String userName,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction) |
long |
addComment(long userId,
String className,
long classPK,
String userName,
long parentCommentId,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction) |
void |
addDiscussion(long userId,
long groupId,
String className,
long classPK,
String userName) |
void |
deleteComment(long commentId) |
void |
deleteDiscussion(String className,
long classPK) |
void |
deleteGroupComments(long groupId) |
Comment |
fetchComment(long commentId) |
DiscussionComment |
fetchDiscussionComment(long userId,
long commentId) |
List<Comment> |
getChildComments(long parentCommentId,
int status,
int start,
int end)
Returns a range of all the comments which parent is identified by the
provided
parentCommentId and with the given status. |
int |
getChildCommentsCount(long parentCommentId,
int status)
Returns the total count of comments which parent is identified by the
provided
parentCommentId and with the given status. |
int |
getCommentsCount(String className,
long classPK) |
Discussion |
getDiscussion(long userId,
long groupId,
String className,
long classPK,
Function<String,ServiceContext> serviceContextFunction) |
DiscussionPermission |
getDiscussionPermission(PermissionChecker permissionChecker) |
DiscussionStagingHandler |
getDiscussionStagingHandler() |
List<Comment> |
getRootComments(String className,
long classPK,
int status,
int start,
int end)
Returns a range of all the root comments of a model identified by the
provide combination of
className-classPK and with the
given status. |
int |
getRootCommentsCount(String className,
long classPK,
int status)
Returns the total count of root comments of a model identified by the
provide combination of
className-classPK and with the
given status. |
boolean |
hasDiscussion(String className,
long classPK) |
void |
moveDiscussionToTrash(String className,
long classPK) |
void |
restoreDiscussionFromTrash(String className,
long classPK) |
void |
subscribeDiscussion(long userId,
long groupId,
String className,
long classPK) |
void |
unsubscribeDiscussion(long userId,
String className,
long classPK) |
long |
updateComment(long userId,
String className,
long classPK,
long commentId,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction) |
long addComment(long userId,
long groupId,
String className,
long classPK,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
PortalExceptionlong addComment(long userId,
long groupId,
String className,
long classPK,
String userName,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
PortalExceptionlong addComment(long userId,
String className,
long classPK,
String userName,
long parentCommentId,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
PortalExceptionvoid addDiscussion(long userId,
long groupId,
String className,
long classPK,
String userName)
throws PortalException
PortalExceptionvoid deleteComment(long commentId)
throws PortalException
PortalExceptionvoid deleteDiscussion(String className,
long classPK)
throws PortalException
PortalExceptionvoid deleteGroupComments(long groupId)
throws PortalException
PortalExceptionComment fetchComment(long commentId)
DiscussionComment fetchDiscussionComment(long userId, long commentId) throws PortalException
PortalExceptionList<Comment> getChildComments(long parentCommentId, int status, int start, int end)
parentCommentId and with the given status.parentCommentId - the ID of the parent commentstatus - the status of the commentsstart - the lower bound of the range of commentsend - the upper bound of the range of comments (not inclusive)int getChildCommentsCount(long parentCommentId,
int status)
parentCommentId and with the given status.parentCommentId - the ID of the parent commentstatus - the status of the commentsint getCommentsCount(String className,
long classPK)
Discussion getDiscussion(long userId, long groupId, String className, long classPK, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalExceptionDiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)
DiscussionStagingHandler getDiscussionStagingHandler()
List<Comment> getRootComments(String className, long classPK, int status, int start, int end) throws PortalException
className-classPK and with the
given status. This count includes only direct comments to the
model, it does not include replies.className - the classnameclassPK - the model classPKstatus - the status of the commentsstart - the lower bound of the range of commentsend - the upper bound of the range of comments (not inclusive)PortalExceptionint getRootCommentsCount(String className,
long classPK,
int status)
className-classPK and with the
given status. This count includes only direct comments to the
model, it does not include replies.className - the classnameclassPK - the model classPKstatus - the status of the commentsboolean hasDiscussion(String className,
long classPK)
throws PortalException
PortalExceptionvoid moveDiscussionToTrash(String className,
long classPK)
void restoreDiscussionFromTrash(String className,
long classPK)
void subscribeDiscussion(long userId,
long groupId,
String className,
long classPK)
throws PortalException
PortalExceptionvoid unsubscribeDiscussion(long userId,
String className,
long classPK)
throws PortalException
PortalExceptionlong updateComment(long userId,
String className,
long classPK,
long commentId,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
PortalException