Examples of Forum


Examples of com.saasovation.collaboration.domain.model.forum.Forum

        super();
    }

    public void testCloseDiscussion() throws Exception {

        Forum forum = this.forumAggregate();

        DomainRegistry.forumRepository().save(forum);

        Discussion discussion = this.discussionAggregate(forum);
View Full Code Here

Examples of net.sf.l2j.gameserver.communitybbs.BB.Forum

    StringTokenizer st = new StringTokenizer(ar1, ";");
    int idf = Integer.parseInt(st.nextToken());
    int idt = Integer.parseInt(st.nextToken());
    int idp = Integer.parseInt(st.nextToken());

    Forum f = ForumsBBSManager.getInstance().getForumByID(idf);
    if(f == null)
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>the forum: "+idf+" does not exist !</center><br><br></body></html>","101");
      activeChar.sendPacket(sb);
      activeChar.sendPacket(new ShowBoard(null,"102"));
      activeChar.sendPacket(new ShowBoard(null,"103"));
    }
    else
    {
      Topic t = f.gettopic(idt);
      if(t == null)
      {
        ShowBoard sb = new ShowBoard("<html><body><br><br><center>the topic: "+idt+" does not exist !</center><br><br></body></html>","101");
        activeChar.sendPacket(sb);
        activeChar.sendPacket(new ShowBoard(null,"102"));
        activeChar.sendPacket(new ShowBoard(null,"103"));
      }
      else
      {
        CPost cp = null;
        Post p = getGPosttByTopic(t);
        if(p != null)
        {
          cp = p.getCPost(idp);
        }
        if(cp == null)
        {
          ShowBoard sb = new ShowBoard("<html><body><br><br><center>the post: "+idp+" does not exist !</center><br><br></body></html>","101");
          activeChar.sendPacket(sb);
          activeChar.sendPacket(new ShowBoard(null,"102"));
          activeChar.sendPacket(new ShowBoard(null,"103"));
        }
        else
        {
          p.getCPost(idp).postTxt = ar4;
          p.updatetxt(idp);
          parsecmd("_bbsposts;read;"+ f.getID() +";"+ t.getID(),activeChar);
        }
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.vbulletin.Forum

      throw new IDCreateException(e);
    }
  }

  public IBBObject createBBObject(ID id, String name, Map<String, Object> parameters) {
    return new Forum((ForumID) id, name);
  }
View Full Code Here

Examples of org.fenixedu.academic.domain.messaging.Forum

        request.setAttribute("messages", getContentToDisplay(thread.getMessageSet(), pageNumber, DEFAULT_PAGE_SIZE));

        Person loggedPerson = getLoggedPerson(request);
        request.setAttribute("person", loggedPerson);

        Forum forum = getRequestedForum(request);
        request.setAttribute("forum", this.getRequestedForum(request));

        request.setAttribute("loggedPersonCanWrite", forum.getWritersGroup().isMember(Authenticate.getUser()));
        request.setAttribute("showReplyBox", this.getShowReplyBox(request));

        return mapping.findForward("viewThread");

    }
View Full Code Here

Examples of org.jresearch.gossip.beans.forum.Forum

        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
            if ((currForum.getLocked() == IConst.Forum.STATUS_INVISIBLE)
                    && (user.getStatus() < Integer.parseInt(Configurator
                            .getInstance().get(IConst.CONFIG.INVADER1)))) { return (mapping
                    .findForward(IConst.TOKEN.DENIED)); }

            //      check access rights if forum topics are locked
            if (((currForum.getLocked() == IConst.Forum.STATUS_TOPICS_LOCKED) && messageForm
                    .getTid().equals(""))
                    && (!isUserMod)) { return (mapping
                    .findForward(IConst.TOKEN.DENIED)); }

            // insert new thread if it is necessary
            if (messageForm.getTid().equals("")) {
                messageForm.setTid(dao.insertNewThread(messageForm.getFid()));

                announce = ((dao.isUserMod(user.getName()) || (user.getStatus() > 7)) && IConst.VALUES.TRUE
                        .equals(messageForm.getAnnounce()));
            }

            // check user access rights if current topic or completely forum is
            // locked
            if ((dao.getThreadInfo(Integer.parseInt(messageForm.getTid()))
                    .getLocked() == IConst.Topic.STATUS_LOCKED || currForum
                    .getLocked() == IConst.Forum.STATUS_COMPLETELY_LOCKED)
                    && (!isUserMod)) { return (mapping
                    .findForward(IConst.TOKEN.DENIED)); }

            // mark username for not registered users
View Full Code Here

Examples of org.jresearch.gossip.beans.forum.Forum

                ArrayList forums = ((Group) it.next()).getForums();
                Iterator itr = forums.iterator();

                while (itr.hasNext()) {
                    Forum forum = (Forum) itr.next();
                    StringBuffer option = new StringBuffer("<option value=\"");

                    if (this.addUrl) {
                        StringBuffer href = new StringBuffer(
                                "ShowForum.do?fid=");
                        href.append(forum.getForumid());
                        option.append(response.encodeURL(href.toString()));
                    } else {
                        option.append(forum.getForumid());
                    }

                    option.append("\" title=\"");
                    option.append(HtmlCodec.encode(forum.getTitle()));
                    option.append("\" ");
                    option.append((forum.getForumid() == fid) ? "selected" : "");
                    option.append(" >");
                    option.append(HtmlCodec.encode(forum.getTitle()));
                    option.append("</option>");
                    out.println(option.toString());
                }
            }
        } catch (Exception ex) {
View Full Code Here

Examples of org.jresearch.gossip.beans.forum.Forum

        User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
        int fid = Integer.parseInt(pfForm.getFid());

        try {
         
            Forum currForum = dao.getForumInfo(fid);

            //check access rights if forum invisible
            if ((currForum.getLocked() == IConst.Forum.STATUS_INVISIBLE) &&
                    (user.getStatus() < Integer.parseInt(
                        Configurator.getInstance().get(IConst.CONFIG.INVADER1)))) {
                return (mapping.findForward(IConst.TOKEN.DENIED));
            }
View Full Code Here

Examples of org.jresearch.gossip.beans.forum.Forum

                int id = Integer.parseInt(fid);
                recordsData = dao.getLastTopics(id,
                        Integer.parseInt(Configurator.getInstance().get(IConst.CONFIG.RSS_MAX_ITEM_COUNT)),
                        cl.getTime());

                Forum currForum = dao.getForumInfo(id);
                currForum.setForumid(id);
                request.setAttribute(IConst.REQUEST.CURR_FORUM, currForum);
                forward = "rss_forum_page";
            }

            //TODO - set pubDate
View Full Code Here

Examples of org.jresearch.gossip.beans.forum.Forum

    User user = (User) session.getAttribute(IConst.SESSION.USER_KEY);
    int fid = Integer.parseInt(ptForm.getFid());
    int tid = Integer.parseInt(ptForm.getFid());
    try {
     
      Forum currForum = dao.getForumInfo(fid);
      //      check access rights if forum invisible
      if ((currForum.getLocked() == IConst.Forum.STATUS_INVISIBLE)
          && (user.getStatus() < Integer.parseInt(Configurator
              .getInstance().get(IConst.CONFIG.INVADER1)))) {
        return (mapping.findForward(IConst.TOKEN.DENIED));
      }
      request.setAttribute(IConst.REQUEST.CURR_FORUM, currForum);
View Full Code Here

Examples of org.jresearch.gossip.beans.forum.Forum

    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
              .getInstance().get(IConst.CONFIG.INVADER1)))) {
        return (mapping.findForward(IConst.TOKEN.DENIED));
      }
      Topic currThread = dao.getThreadInfo(Integer.parseInt(pmForm
          .getTid()));
      // check user access rights if current topic or completely forum is
      // locked
      getServlet()
          .log(
              "check user access rights if current topic or completely forum is locked");
      if (((currThread.getLocked() == IConst.Topic.STATUS_LOCKED) || (currForum
          .getLocked() == IConst.Forum.STATUS_COMPLETELY_LOCKED))
          && (!isUserMod)) {
        return (mapping.findForward(IConst.TOKEN.DENIED));
      }
      session.setAttribute(IConst.REQUEST.CURR_THREAD, currThread);
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.