public class CommentManagerUtil
extends Object
Constructor and Description |
---|
CommentManagerUtil() |
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
As of Judson (7.1.x), replaced by
_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) |
public static long addComment(long userId, long groupId, String className, long classPK, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
public static long addComment(long userId, long groupId, String className, long classPK, String userName, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
public static long addComment(long userId, String className, long classPK, String userName, long parentCommentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
public static void addDiscussion(long userId, long groupId, String className, long classPK, String userName) throws PortalException
PortalException
public static void deleteComment(long commentId) throws PortalException
PortalException
public static void deleteDiscussion(String className, long classPK) throws PortalException
PortalException
public static void deleteGroupComments(long groupId) throws PortalException
PortalException
public static Comment fetchComment(long commentId)
@Deprecated public static CommentManager getCommentManager()
_getCommentManager()
public static int getCommentsCount(String className, long classPK)
public static Discussion getDiscussion(long userId, long groupId, String className, long classPK, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
public static DiscussionPermission getDiscussionPermission(PermissionChecker permissionChecker)
public static DiscussionStagingHandler getDiscussionStagingHandler()
public static boolean hasDiscussion(String className, long classPK) throws PortalException
PortalException
public static void moveDiscussionToTrash(String className, long classPK)
public static void restoreDiscussionFromTrash(String className, long classPK)
public static void subscribeDiscussion(long userId, long groupId, String className, long classPK) throws PortalException
PortalException
public static void unsubscribeDiscussion(long userId, String className, long classPK) throws PortalException
PortalException
public static long updateComment(long userId, String className, long classPK, long commentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException