Liferay 7.0-ce-b4

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 long 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 void deleteGroupComments(long groupId)
           
static Comment fetchComment(long commentId)
           
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 DiscussionStagingHandler getDiscussionStagingHandler()
           
static boolean hasDiscussion(String className, long classPK)
           
static void moveDiscussionToTrash(String className, long classPK)
           
static void restoreDiscussionFromTrash(String className, long classPK)
           
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 long 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

deleteGroupComments

public static void deleteGroupComments(long groupId)
                                throws PortalException
Throws:
PortalException

fetchComment

public static Comment fetchComment(long commentId)

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)

getDiscussionStagingHandler

public static DiscussionStagingHandler getDiscussionStagingHandler()

hasDiscussion

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

moveDiscussionToTrash

public static void moveDiscussionToTrash(String className,
                                         long classPK)

restoreDiscussionFromTrash

public static void restoreDiscussionFromTrash(String className,
                                              long classPK)

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

Liferay 7.0-ce-b4