@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(String externalReferenceCode,
long userId,
long groupId,
String className,
long classPK,
String userName,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction) |
long |
addComment(String externalReferenceCode,
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) |
Discussion |
copyDiscussion(long userId,
long groupId,
String className,
long classPK,
long newClassPK,
Function<String,ServiceContext> serviceContextFunction) |
void |
deleteComment(long commentId) |
void |
deleteDiscussion(String className,
long classPK) |
void |
deleteGroupComments(long groupId) |
Comment |
fetchComment(long commentId) |
Comment |
fetchComment(long groupId,
String externalReferenceCode)
Returns a comment matching with the external reference code and the
group ID
|
DiscussionComment |
fetchDiscussionComment(long userId,
long commentId) |
List<Comment> |
getChildComments(long parentCommentId,
int status,
int start,
int end)
Returns a range of all the comments matching the parent comment ID and
status.
|
int |
getChildCommentsCount(long parentCommentId,
int status)
Returns the number of comments matching the parent comment ID and status.
|
Comment |
getComment(long groupId,
String externalReferenceCode) |
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 model's root comments matching the class name,
class primary key, and status.
|
int |
getRootCommentsCount(String className,
long classPK,
int status)
Returns the number of the model's root comments matching the class name,
class primary key, and 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(String externalReferenceCode,
long userId,
long groupId,
String className,
long classPK,
String userName,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
PortalExceptionlong addComment(String externalReferenceCode,
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
PortalExceptionDiscussion copyDiscussion(long userId, long groupId, String className, long classPK, long newClassPK, Function<String,ServiceContext> serviceContextFunction) 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)
Comment fetchComment(long groupId, String externalReferenceCode)
groupId - the primary key of the groupexternalReferenceCode - the comment's external reference codeDiscussionComment fetchDiscussionComment(long userId, long commentId) throws PortalException
PortalExceptionList<Comment> getChildComments(long parentCommentId, int status, int start, int end)
parentCommentId - the parent comment's IDstatus - the comments' statusstart - 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 - the parent comment's IDstatus - the comments' statusComment getComment(long groupId, String externalReferenceCode) throws PortalException
PortalExceptionint 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 - the class nameclassPK - the model class's primary keystatus - the comments' statusstart - 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 - the class nameclassPK - the model class's primary keystatus - the comments' statusboolean 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