com.liferay.portal.kernel.comment
Interface CommentManager
- All Known Implementing Classes:
- CommentManagerImpl, DummyCommentManagerImpl, MBCommentManagerImpl
public interface CommentManager
|
Method Summary |
void |
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)
|
int |
getCommentsCount(String className,
long classPK)
|
Discussion |
getDiscussion(long userId,
long groupId,
String className,
long classPK,
Function<String,ServiceContext> serviceContextFunction)
|
DiscussionPermission |
getDiscussionPermission(PermissionChecker permissionChecker)
|
boolean |
hasDiscussion(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)
|
addComment
void addComment(long userId,
long groupId,
String className,
long classPK,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
- Throws:
PortalException
addComment
long addComment(long userId,
long groupId,
String className,
long classPK,
String userName,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
- Throws:
PortalException
addComment
long addComment(long userId,
String className,
long classPK,
String userName,
long parentCommentId,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
- Throws:
PortalException
addDiscussion
void addDiscussion(long userId,
long groupId,
String className,
long classPK,
String userName)
throws PortalException
- Throws:
PortalException
deleteComment
void deleteComment(long commentId)
throws PortalException
- Throws:
PortalException
deleteDiscussion
void deleteDiscussion(String className,
long classPK)
throws PortalException
- Throws:
PortalException
getCommentsCount
int getCommentsCount(String className,
long classPK)
getDiscussion
Discussion getDiscussion(long userId,
long groupId,
String className,
long classPK,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
- Throws:
PortalException
getDiscussionPermission
DiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)
hasDiscussion
boolean hasDiscussion(String className,
long classPK)
throws PortalException
- Throws:
PortalException
subscribeDiscussion
void subscribeDiscussion(long userId,
long groupId,
String className,
long classPK)
throws PortalException
- Throws:
PortalException
unsubscribeDiscussion
void unsubscribeDiscussion(long userId,
String className,
long classPK)
throws PortalException
- Throws:
PortalException
updateComment
long updateComment(long userId,
String className,
long classPK,
long commentId,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction)
throws PortalException
- Throws:
PortalException