@AccessControlled
@JSONWebService
public class CommentManagerJSONWS
extends com.liferay.portal.kernel.service.BaseServiceImpl
| Constructor and Description |
|---|
CommentManagerJSONWS() |
| Modifier and Type | Method and Description |
|---|---|
long |
addComment(long groupId,
java.lang.String className,
long classPK,
java.lang.String body) |
protected com.liferay.portal.kernel.util.Function<java.lang.String,com.liferay.portal.kernel.service.ServiceContext> |
createServiceContextFunction() |
protected com.liferay.portal.kernel.util.Function<java.lang.String,com.liferay.portal.kernel.service.ServiceContext> |
createServiceContextFunction(int workflowAction) |
protected com.liferay.portal.kernel.util.Function<java.lang.String,com.liferay.portal.kernel.service.ServiceContext> |
createServiceContextFunction(long companyId) |
void |
deleteComment(long commentId) |
protected java.util.List<CommentJSONWS> |
getAllComments(com.liferay.portal.kernel.comment.DiscussionCommentIterator threadDiscussionCommentIterator) |
java.util.List<CommentJSONWS> |
getComments(long groupId,
java.lang.String className,
long classPK,
int start,
int end) |
int |
getCommentsCount(long groupId,
java.lang.String className,
long classPK) |
protected long |
getCompanyId(long groupId) |
protected java.lang.String |
getUserName() |
boolean |
hasDiscussion(long groupId,
java.lang.String className,
long classPK) |
protected void |
setCommentManager(com.liferay.portal.kernel.comment.CommentManager commentManager) |
protected void |
setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) |
void |
subscribeDiscussion(long groupId,
java.lang.String className,
long classPK) |
void |
unsubscribeDiscussion(long groupId,
java.lang.String className,
long classPK) |
long |
updateComment(java.lang.String className,
long classPK,
long commentId,
java.lang.String subject,
java.lang.String body) |
public long addComment(long groupId,
java.lang.String className,
long classPK,
java.lang.String body)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteComment(long commentId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<CommentJSONWS> getComments(long groupId, java.lang.String className, long classPK, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getCommentsCount(long groupId,
java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasDiscussion(long groupId,
java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void subscribeDiscussion(long groupId,
java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void unsubscribeDiscussion(long groupId,
java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic long updateComment(java.lang.String className,
long classPK,
long commentId,
java.lang.String subject,
java.lang.String body)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected com.liferay.portal.kernel.util.Function<java.lang.String,com.liferay.portal.kernel.service.ServiceContext> createServiceContextFunction()
protected com.liferay.portal.kernel.util.Function<java.lang.String,com.liferay.portal.kernel.service.ServiceContext> createServiceContextFunction(int workflowAction)
protected com.liferay.portal.kernel.util.Function<java.lang.String,com.liferay.portal.kernel.service.ServiceContext> createServiceContextFunction(long companyId)
protected java.util.List<CommentJSONWS> getAllComments(com.liferay.portal.kernel.comment.DiscussionCommentIterator threadDiscussionCommentIterator)
protected long getCompanyId(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected java.lang.String getUserName()
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void setCommentManager(com.liferay.portal.kernel.comment.CommentManager commentManager)
protected void setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService)