Examples of checkMod()


Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

        }

        try {

            boolean announce = false;
            boolean isUserMod = dao.checkMod(Integer.parseInt(messageForm
                    .getFid()), user);
            Forum currForum = dao.getForumInfo(Integer.parseInt(messageForm
                    .getFid()));

            //      check access rights if forum invisible
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

                mess.setSenderInfo(userdao.getSenderInfo(mess.getSender()));
            }

            request.setAttribute(IConst.REQUEST.RECORDS_DATA, recordsData);

            if (dao.checkMod(fid, user)) {
                request.setAttribute(IConst.REQUEST.MOD_FLAG, IConst.VALUES.TRUE);
            }
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

            while (it.hasNext()) {
                NewTopic nt = (NewTopic) it.next();
                Message mess = nt.getLastMessage();
                mess.setSenderInfo(userdao.getSenderInfo(mess.getSender()));
                nt.setMod_flag(dao.checkMod(nt.getForumid(), user) ? 1 : 0);
            }

            request.setAttribute(IConst.REQUEST.RECORDS_DATA, recordsData);
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

    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.deleteThread(ptForm.getTid(), true);
      log(request, "logs.LOG15", ptForm.getTid());
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

        }
      }

      request.setAttribute(IConst.REQUEST.RECORDS_DATA, recordsData);
      request.setAttribute(IConst.REQUEST.CURR_THREAD, currThread);
      if (dao.checkMod(fid, user)) {
        request.setAttribute(IConst.REQUEST.MOD_FLAG,
            IConst.VALUES.TRUE);
      }
    } catch (SQLException sqle) {
      getServlet().log("Connection.process", sqle);
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

    ForumDAO dao = ForumDAO.getInstance();
    User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
    try {
     
      int fid = Integer.parseInt(pmForm.getFid());
      boolean isUserMod = dao.checkMod(fid, user);
      Forum currForum = dao.getForumInfo(fid);
      //      check access rights if forum invisible
      getServlet().log("check access rights if forum invisible");
      if ((currForum.getLocked() == IConst.Forum.STATUS_INVISIBLE)
          && (user.getStatus() < Integer.parseInt(Configurator
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

    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.lockThread(ptForm.getTid());
      log(request, "logs.LOG21", ptForm.getTid());
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

    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());
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

        User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
        ForumDAO dao = ForumDAO.getInstance();
        AttachmentInfoForm aiForm = (AttachmentInfoForm) form;
       
        try {
            boolean isUserMod = dao.checkMod(Integer.parseInt(aiForm.getFid()),
                    user);
            //          check user access rights
            getServlet().log("check user access rights ");
            if (isUserMod) {
                FileDataInfo fInfo = new FileDataInfo();
View Full Code Here

Examples of org.jresearch.gossip.dao.ForumDAO.checkMod()

        ForumDAO dao = ForumDAO.getInstance();

        try {
           

            boolean isUserMod = dao.checkMod(Integer.parseInt(
                        messageForm.getFid()), user);
            Forum currForum = dao.getForumInfo(Integer.parseInt(
                        messageForm.getFid()));

            //      check access rights if forum invisible
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.