Examples of checkMod()


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

                return (new ActionForward("/ShowThread.do?fid=" +
                    messageForm.getFid() + "&tid=" + messageForm.getTid() +
                    "&block=" + messageForm.getBlock(), true));
            } else {
                // check user access rights
                if (dao.checkMod(Integer.parseInt(messageForm.getFid()), user) ||
                        (user.getName().equals(mess.getSender()) &&
                        (currThread.getLocked() == IConst.Topic.STATUS_UNLOCKED))) {
                    dao.updateMessage(messageForm);

                    //subscribe user to e-mail from this thread...
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();
        ProcessAttachForm paForm = (ProcessAttachForm) form;
       
        try {
            boolean isUserMod = dao.checkMod(Integer.parseInt(paForm.getFid()),
                    user);
            //          check user access rights
            getServlet().log("check user access rights ");
            if (isUserMod) {
                dao.removeAttachment(Integer.parseInt(paForm.getId()));
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();
        ProcessAttachForm paForm = (ProcessAttachForm) form;
       
        try {
            boolean isUserMod = dao.checkMod(Integer.parseInt(paForm.getFid()),
                    user);
            //          check user access rights
            getServlet().log("check user access rights ");
            if (isUserMod) {
                if(request.getAttribute("attachmentInfoForm")!=null){
View Full Code Here

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

    User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
    ProcessMessageForm pmForm = (ProcessMessageForm) form;
    try {
     
      int fid = Integer.parseInt(pmForm.getFid());
      boolean isUserMod = dao.checkMod(fid, user);
      Topic currThread = dao.getThreadInfo(Integer.parseInt(pmForm
          .getTid()));
      Message mess = dao.getMessage(pmForm.getMid());
      if (mess == null) {
        return (new ActionForward("/ShowThread.do?fid="
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.