Пример #1
0
  public void deleteKBComment(ActionRequest actionRequest, ActionResponse actionResponse)
      throws Exception {

    ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);

    if (!themeDisplay.isSignedIn()) {
      return;
    }

    long kbCommentId = ParamUtil.getLong(actionRequest, "kbCommentId");

    KBCommentLocalServiceUtil.deleteKBComment(kbCommentId);
  }