Liferay 7.0-ce-m6

com.liferay.portal.kernel.comment
Class CommentManagerUtil

java.lang.Object
  extended by com.liferay.portal.kernel.comment.CommentManagerUtil

public class CommentManagerUtil
extends Object


Constructor Summary
CommentManagerUtil()
           
 
Method Summary
static void addComment(long userId, long groupId, String className, long classPK, String body, Function<String,ServiceContext> serviceContextFunction)
           
static long addComment(long userId, long groupId, String className, long classPK, String userName, String subject, String body, Function<String,ServiceContext> serviceContextFunction)
           
static long addComment(long userId, String className, long classPK, String userName, long parentCommentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction)
           
static void addDiscussion(long userId, long groupId, String className, long classPK, String userName)
           
static void deleteComment(long commentId)
           
static void deleteDiscussion(String className, long classPK)
           
static CommentManager getCommentManager()
           
static int getCommentsCount(String className, long classPK)
           
static Discussion getDiscussion(long userId, long groupId, String className, long classPK, Function<String,ServiceContext> serviceContextFunction)
           
static DiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)
           
static boolean hasDiscussion(String className, long classPK)
           
 void setCommentManager(CommentManager commentManager)
           
static void subscribeDiscussion(long userId, long groupId, String className, long classPK)
           
static void unsubscribeDiscussion(long userId, String className, long classPK)
           
static 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

CommentManagerUtil

public CommentManagerUtil()
Method Detail

addComment

public static void addComment(long userId,
                              long groupId,
                              String className,
                              long classPK,
                              String body,
                              Function<String,ServiceContext> serviceContextFunction)
                       throws PortalException
Throws:
PortalException

addComment

public static 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

public static 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

public static void addDiscussion(long userId,
                                 long groupId,
                                 String className,
                                 long classPK,
                                 String userName)
                          throws PortalException
Throws:
PortalException

deleteComment

public static void deleteComment(long commentId)
                          throws PortalException
Throws:
PortalException

deleteDiscussion

public static void deleteDiscussion(String className,
                                    long classPK)
                             throws PortalException
Throws:
PortalException

getCommentManager

public static CommentManager getCommentManager()

getCommentsCount

public static int getCommentsCount(String className,
                                   long classPK)

getDiscussion

public static Discussion getDiscussion(long userId,
                                       long groupId,
                                       String className,
                                       long classPK,
                                       Function<String,ServiceContext> serviceContextFunction)
                                throws PortalException
Throws:
PortalException

getDiscussionPermission

public static DiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)

hasDiscussion

public static boolean hasDiscussion(String className,
                                    long classPK)
                             throws PortalException
Throws:
PortalException

subscribeDiscussion

public static void subscribeDiscussion(long userId,
                                       long groupId,
                                       String className,
                                       long classPK)
                                throws PortalException
Throws:
PortalException

unsubscribeDiscussion

public static void unsubscribeDiscussion(long userId,
                                         String className,
                                         long classPK)
                                  throws PortalException
Throws:
PortalException

updateComment

public static long updateComment(long userId,
                                 String className,
                                 long classPK,
                                 long commentId,
                                 String subject,
                                 String body,
                                 Function<String,ServiceContext> serviceContextFunction)
                          throws PortalException
Throws:
PortalException

setCommentManager

public void setCommentManager(CommentManager commentManager)

Liferay 7.0-ce-m6