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

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

Introduction

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

Prototype

public long getClassPK();

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);
}