コード例 #1
0
  @Override
  public boolean hasViewPermission(PermissionChecker permissionChecker) throws PortalException {

    DiscussionPermission discussionPermission =
        CommentManagerUtil.getDiscussionPermission(permissionChecker);

    return discussionPermission.hasPermission(_workflowableComment.getCommentId(), ActionKeys.VIEW);
  }
コード例 #2
0
  @Override
  public boolean hasEditPermission(PermissionChecker permissionChecker) throws PortalException {

    DiscussionPermission discussionPermission =
        CommentManagerUtil.getDiscussionPermission(permissionChecker);

    return discussionPermission.hasUpdatePermission(_workflowableComment.getCommentId());
  }