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) |
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() |
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
PortalException
long addComment(long userId, long groupId, String className, long classPK, String userName, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
long addComment(long userId, String className, long classPK, String userName, long parentCommentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
void addDiscussion(long userId, long groupId, String className, long classPK, String userName) throws PortalException
PortalException
void deleteComment(long commentId) throws PortalException
PortalException
void deleteDiscussion(String className, long classPK) throws PortalException
PortalException
void deleteGroupComments(long groupId) throws PortalException
PortalException
Comment fetchComment(long commentId)
int getCommentsCount(String className, long classPK)
Discussion getDiscussion(long userId, long groupId, String className, long classPK, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
DiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)
DiscussionStagingHandler getDiscussionStagingHandler()
boolean hasDiscussion(String className, long classPK) throws PortalException
PortalException
void moveDiscussionToTrash(String className, long classPK)
void restoreDiscussionFromTrash(String className, long classPK)
void subscribeDiscussion(long userId, long groupId, String className, long classPK) throws PortalException
PortalException
void unsubscribeDiscussion(long userId, String className, long classPK) throws PortalException
PortalException
long updateComment(long userId, String className, long classPK, long commentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException