Package org.jresearch.gossip.dao

Examples of org.jresearch.gossip.dao.ForumDAO


     * @return DOCUMENT ME!
     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        ForumDAO dao = ForumDAO.getInstance();
        ProcessLockForumForm plfForm = (ProcessLockForumForm) form;

        try {
           

            dao.lockForum(plfForm.getForumid(),
                Integer.parseInt(plfForm.getLocked()));
            log(request, "logs.LOG20",plfForm.getForumid());
            setStatusMessage(request, "status.FORUM_LOCKED", plfForm.getLocked());
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
View Full Code Here


   * @return DOCUMENT ME!
   */
  public ActionForward process(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws SystemException {
    ForumDAO dao = ForumDAO.getInstance();
    ProcessTopicForm ptForm = (ProcessTopicForm) form;
    try {
     
      dao.moveThread(ptForm.getTid(), ptForm.getFid());
      log(request, "logs.LOG24", ptForm.getTid() + " to forum fid="
          + ptForm.getFid());
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
View Full Code Here

     * @param response DOCUMENT ME!
     */
    public void afterProcess(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) {

        ForumDAO dao = ForumDAO.getInstance();

        try {
           

            dao.removeEntry(this.updatedLogin);
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
        }
    }
View Full Code Here

     * (non-Javadoc)
     *
     * @see org.jresearch.gossip.actions.admin.rank.SaveRankAction#saveRank(org.jresearch.gossip.forms.RankForm)
     */
    protected void saveRank(RankForm rForm) throws SQLException {
        ForumDAO dao = ForumDAO.getInstance();
        RankInfoDTO rank = new RankInfoDTO(Integer.parseInt(rForm.getId()),
                rForm.getName(), Integer.parseInt(rForm.getCount()));
        dao.updateRank(rank);

    }
View Full Code Here

     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {

        ForumDAO dao = ForumDAO.getInstance();

        try {
           
            dao.updateStyles((StylesForm) form);

            HashMap SkinParams = new HashMap();
            dao.loadSkinParams(IConst.CONFIG.DEFAULT_SKIN_ID, SkinParams);
            request.getSession().setAttribute(IConst.SESSION.STYLE_SETTINGS,
                SkinParams);
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
View Full Code Here

     * (non-Javadoc)
     *
     * @see org.jresearch.gossip.actions.admin.rank.SaveRankAction#saveRank(org.jresearch.gossip.forms.RankForm)
     */
    protected void saveRank(RankForm rForm) throws SQLException {
        ForumDAO dao = ForumDAO.getInstance();
        RankInfoDTO rank = new RankInfoDTO(rForm.getName(), Integer
                .parseInt(rForm.getCount()));
        dao.addRank(rank);
    }
View Full Code Here

     * @return DOCUMENT ME!
     */
    public ActionForward process(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws SystemException {
        ForumDAO dao = ForumDAO.getInstance();
        ProcessForumForm pfForm = (ProcessForumForm) form;

        try {
           

            Forum forum = dao.getForumInfo(Integer.parseInt(pfForm.getFid()));
            ForumForm forumForm = new ForumForm();
            forumForm.setForum_desc(forum.getDescription());
            forumForm.setForum_name(forum.getTitle());
            forumForm.setForumid(pfForm.getFid());
            forumForm.setGroupid(Integer.toString(forum.getGroupid()));
View Full Code Here

   * @return DOCUMENT ME!
   */
  public ActionForward process(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws SystemException {
    ForumDAO dao = ForumDAO.getInstance();
    UserDAO userdao = UserDAO.getInstance();
    ProcessModForm pmForm = (ProcessModForm) form;
    try {
      dao.addMod(pmForm.getFid(), pmForm.getName());
      userdao.setUserStatus(pmForm.getName(), UserStatus.MOD);
      setUpdatedLogin(pmForm.getName());
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
View Full Code Here

     *      javax.servlet.http.HttpServletResponse)
     */
    protected ActionForward process(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws JGossipException {
        ForumDAO dao = ForumDAO.getInstance();
        ProcessItemForm piForm = (ProcessItemForm) form;
        try {
            dao.removeRank(Integer.parseInt(piForm.getId()));
//          Reload Post counted Ranks
      Ranks.getInstance().load();
        } catch (SQLException e) {
            throw new SystemException(e);
        }
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws SystemException {
    HttpSession session = request.getSession();
    User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
    ProcessTopicForm ptForm = (ProcessTopicForm) form;
    ForumDAO dao = ForumDAO.getInstance();
    try {
      if (!dao.checkMod(Integer.parseInt(ptForm.getFid()), user)) {
        return (mapping.findForward(IConst.TOKEN.DENIED));
      }
     
      dao.setThreadSortBy(ptForm.getTid(), 9);
      log(request, "logs.LOG21", ptForm.getTid());
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
      throw new SystemException(sqle);
    }
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.dao.ForumDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.