Liferay 7.0-ce-m3

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, ServiceContext serviceContext)
           
 long addComment(long userId, long groupId, String className, long classPK, String userName, 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)
           
 

Method Detail

addComment

void addComment(long userId,
                long groupId,
                String className,
                long classPK,
                String body,
                ServiceContext serviceContext)
                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

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)

Liferay 7.0-ce-m3