Liferay 7.0-ce-m6

com.liferay.portlet.messageboards.comment
Class MBCommentManagerImpl

java.lang.Object
  extended by com.liferay.portlet.messageboards.comment.MBCommentManagerImpl
All Implemented Interfaces:
CommentManager

public class MBCommentManagerImpl
extends Object
implements CommentManager


Constructor Summary
MBCommentManagerImpl()
           
 
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 setMBDiscussionLocalService(MBDiscussionLocalService mbDiscussionLocalService)
           
 void setMBMessageLocalService(MBMessageLocalService mbMessageLocalService)
           
 void setRatingsEntryLocalService(RatingsEntryLocalService ratingsEntryLocalService)
           
 void setRatingsStatsLocalService(RatingsStatsLocalService ratingsStatsLocalService)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBCommentManagerImpl

public MBCommentManagerImpl()
Method Detail

addComment

public void addComment(long userId,
                       long groupId,
                       String className,
                       long classPK,
                       String body,
                       Function<String,ServiceContext> serviceContextFunction)
                throws PortalException
Specified by:
addComment in interface CommentManager
Throws:
PortalException

addComment

public long addComment(long userId,
                       long groupId,
                       String className,
                       long classPK,
                       String userName,
                       String subject,
                       String body,
                       Function<String,ServiceContext> serviceContextFunction)
                throws PortalException
Specified by:
addComment in interface CommentManager
Throws:
PortalException

addComment

public long addComment(long userId,
                       String className,
                       long classPK,
                       String userName,
                       long parentCommentId,
                       String subject,
                       String body,
                       Function<String,ServiceContext> serviceContextFunction)
                throws PortalException
Specified by:
addComment in interface CommentManager
Throws:
PortalException

addDiscussion

public void addDiscussion(long userId,
                          long groupId,
                          String className,
                          long classPK,
                          String userName)
                   throws PortalException
Specified by:
addDiscussion in interface CommentManager
Throws:
PortalException

deleteComment

public void deleteComment(long commentId)
                   throws PortalException
Specified by:
deleteComment in interface CommentManager
Throws:
PortalException

deleteDiscussion

public void deleteDiscussion(String className,
                             long classPK)
                      throws PortalException
Specified by:
deleteDiscussion in interface CommentManager
Throws:
PortalException

getCommentsCount

public int getCommentsCount(String className,
                            long classPK)
Specified by:
getCommentsCount in interface CommentManager

getDiscussion

public Discussion getDiscussion(long userId,
                                long groupId,
                                String className,
                                long classPK,
                                Function<String,ServiceContext> serviceContextFunction)
                         throws PortalException
Specified by:
getDiscussion in interface CommentManager
Throws:
PortalException

getDiscussionPermission

public DiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)
Specified by:
getDiscussionPermission in interface CommentManager

hasDiscussion

public boolean hasDiscussion(String className,
                             long classPK)
Specified by:
hasDiscussion in interface CommentManager

setMBDiscussionLocalService

public void setMBDiscussionLocalService(MBDiscussionLocalService mbDiscussionLocalService)

setMBMessageLocalService

public void setMBMessageLocalService(MBMessageLocalService mbMessageLocalService)

setRatingsEntryLocalService

public void setRatingsEntryLocalService(RatingsEntryLocalService ratingsEntryLocalService)

setRatingsStatsLocalService

public void setRatingsStatsLocalService(RatingsStatsLocalService ratingsStatsLocalService)

subscribeDiscussion

public void subscribeDiscussion(long userId,
                                long groupId,
                                String className,
                                long classPK)
                         throws PortalException
Specified by:
subscribeDiscussion in interface CommentManager
Throws:
PortalException

unsubscribeDiscussion

public void unsubscribeDiscussion(long userId,
                                  String className,
                                  long classPK)
                           throws PortalException
Specified by:
unsubscribeDiscussion in interface CommentManager
Throws:
PortalException

updateComment

public long updateComment(long userId,
                          String className,
                          long classPK,
                          long commentId,
                          String subject,
                          String body,
                          Function<String,ServiceContext> serviceContextFunction)
                   throws PortalException
Specified by:
updateComment in interface CommentManager
Throws:
PortalException

Liferay 7.0-ce-m6