Liferay 7.0-ce-m3

com.liferay.portal.comment
Class CommentManagerImpl

java.lang.Object
  extended by com.liferay.portal.comment.CommentManagerImpl
All Implemented Interfaces:
CommentManager

public class CommentManagerImpl
extends Object
implements CommentManager


Constructor Summary
CommentManagerImpl()
           
 
Method Summary
 void addComment(long userId, long groupId, String className, long classPK, String body, ServiceContext serviceContext)
           
 long addComment(long userId, long groupId, String className, long classPK, String userName, 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)
           
protected  CommentManager getCommentManager()
           
 int getCommentsCount(String className, long classPK)
           
protected  void setDefaultCommentManager(CommentManager defaultCommentManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentManagerImpl

public CommentManagerImpl()
Method Detail

addComment

public void addComment(long userId,
                       long groupId,
                       String className,
                       long classPK,
                       String body,
                       ServiceContext serviceContext)
                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

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

getCommentManager

protected CommentManager getCommentManager()

setDefaultCommentManager

protected void setDefaultCommentManager(CommentManager defaultCommentManager)

Liferay 7.0-ce-m3