@ProviderType
public interface CommentManager
Modifier and Type | Method and Description |
---|---|
long |
addComment(long userId,
long groupId,
String className,
long classPK,
String body,
Function<String,ServiceContext> serviceContextFunction) |
long |
addComment(String externalReferenceCode,
long userId,
long groupId,
String className,
long classPK,
String userName,
String subject,
String body,
Function<String,ServiceContext> serviceContextFunction) |
long |
addComment(String externalReferenceCode,
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) |
Discussion |
copyDiscussion(long userId,
long groupId,
String className,
long classPK,
long newClassPK,
Function<String,ServiceContext> serviceContextFunction) |
void |
deleteComment(long commentId) |
void |
deleteDiscussion(String className,
long classPK) |
void |
deleteGroupComments(long groupId) |
Comment |
fetchComment(long commentId) |
Comment |
fetchComment(long groupId,
String externalReferenceCode)
Returns a comment matching with the external reference code and the
group ID
|
DiscussionComment |
fetchDiscussionComment(long userId,
long commentId) |
List<Comment> |
getChildComments(long parentCommentId,
int status,
int start,
int end)
Returns a range of all the comments matching the parent comment ID and
status.
|
int |
getChildCommentsCount(long parentCommentId,
int status)
Returns the number of comments matching the parent comment ID and status.
|
Comment |
getComment(long groupId,
String externalReferenceCode) |
int |
getCommentsCount(String className,
long classPK) |
Discussion |
getDiscussion(long userId,
long groupId,
String className,
long classPK,
Function<String,ServiceContext> serviceContextFunction) |
DiscussionStagingHandler |
getDiscussionStagingHandler() |
List<Comment> |
getRootComments(String className,
long classPK,
int status,
int start,
int end)
Returns a range of all the model's root comments matching the class name,
class primary key, and status.
|
int |
getRootCommentsCount(String className,
long classPK,
int status)
Returns the number of the model's root comments matching the class name,
class primary key, and status.
|
boolean |
hasDiscussion(String className,
long classPK) |
void |
moveDiscussionToTrash(String className,
long classPK) |
void |
restoreDiscussionFromTrash(String className,
long classPK) |
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) |
long addComment(long userId, long groupId, String className, long classPK, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
long addComment(String externalReferenceCode, long userId, long groupId, String className, long classPK, String userName, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
long addComment(String externalReferenceCode, long userId, String className, long classPK, String userName, long parentCommentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
void addDiscussion(long userId, long groupId, String className, long classPK, String userName) throws PortalException
PortalException
Discussion copyDiscussion(long userId, long groupId, String className, long classPK, long newClassPK, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
void deleteComment(long commentId) throws PortalException
PortalException
void deleteDiscussion(String className, long classPK) throws PortalException
PortalException
void deleteGroupComments(long groupId) throws PortalException
PortalException
Comment fetchComment(long commentId)
Comment fetchComment(long groupId, String externalReferenceCode)
groupId
- the primary key of the groupexternalReferenceCode
- the comment's external reference codeDiscussionComment fetchDiscussionComment(long userId, long commentId) throws PortalException
PortalException
List<Comment> getChildComments(long parentCommentId, int status, int start, int end)
parentCommentId
- the parent comment's IDstatus
- the comments' statusstart
- the lower bound of the range of commentsend
- the upper bound of the range of comments (not inclusive)int getChildCommentsCount(long parentCommentId, int status)
parentCommentId
- the parent comment's IDstatus
- the comments' statusComment getComment(long groupId, String externalReferenceCode) throws PortalException
PortalException
int getCommentsCount(String className, long classPK)
Discussion getDiscussion(long userId, long groupId, String className, long classPK, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException
DiscussionStagingHandler getDiscussionStagingHandler()
List<Comment> getRootComments(String className, long classPK, int status, int start, int end) throws PortalException
className
- the class nameclassPK
- the model class's primary keystatus
- the comments' statusstart
- the lower bound of the range of commentsend
- the upper bound of the range of comments (not inclusive)PortalException
int getRootCommentsCount(String className, long classPK, int status)
className
- the class nameclassPK
- the model class's primary keystatus
- the comments' statusboolean hasDiscussion(String className, long classPK) throws PortalException
PortalException
void moveDiscussionToTrash(String className, long classPK)
void restoreDiscussionFromTrash(String className, long classPK)
void subscribeDiscussion(long userId, long groupId, String className, long classPK) throws PortalException
PortalException
void unsubscribeDiscussion(long userId, String className, long classPK) throws PortalException
PortalException
long updateComment(long userId, String className, long classPK, long commentId, String subject, String body, Function<String,ServiceContext> serviceContextFunction) throws PortalException
PortalException