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

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

Introduction

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

Prototype

public String getClassName();

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