Example usage for com.liferay.portal.kernel.comment DiscussionComment getGroupId

List of usage examples for com.liferay.portal.kernel.comment DiscussionComment getGroupId

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.comment DiscussionComment getGroupId.

Prototype

public long getGroupId();

Source Link

Usage

From source file:com.liferay.comment.internal.jsonws.CommentManagerJSONWS.java

License:Open Source License

public List<CommentJSONWS> getComments(long commentId, int start, int end) throws PortalException {

    DiscussionComment discussionComment = _commentManager.fetchDiscussionComment(getUserId(), commentId);

    DiscussionPermission discussionPermission = _commentManager.getDiscussionPermission(getPermissionChecker());

    discussionPermission.checkViewPermission(getCompanyId(discussionComment.getGroupId()),
            discussionComment.getGroupId(), discussionComment.getClassName(), discussionComment.getClassPK());

    return getComments(discussionComment, start, end);
}