Examples of Topic


Examples of org.gtugs.domain.Topic

    if (events == null || events.size() == 0) {
      List<Topic> topics = new ArrayList<Topic>(eventsGrouped.size());

      for (Map.Entry topicEntry : (Set<Map.Entry>) eventsGrouped.entrySet()) {
        Topic topic = new Topic();
        topic.setName((String) topicEntry.getKey());
        topic.setNumEvents(((Long) topicEntry.getValue()).intValue());
        topics.add(topic);
      }

      // Sort the array on numEvents
      for (int i = 1; i < topics.size(); i++) {
        int numEvents = topics.get(i).getNumEvents();
        int j = i - 1;
        boolean done = false;
        do {
          if (topics.get(j).getNumEvents() < numEvents) {
            Topic swapped = topics.remove(j + 1);
            topics.add(j, swapped);
            j--;
            if (j < 0) {
              done = true;
            }
View Full Code Here

Examples of org.jamwiki.model.Topic

            + wiki.generatePageId(FilterUtil.normalizeWikiLink(decodedName)), OlatWikiDataHandler.class);
      } catch (UnsupportedEncodingException e) {
        //
      }
    }
    Topic topic = new Topic();
    if (decodedName.startsWith(IMAGE_NAMESPACE)) {
      String imageName = topicName.substring(IMAGE_NAMESPACE.length());
      if (!wiki.mediaFileExists(imageName)) return null;
      topic.setName(imageName);
      topic.setTopicType(Topic.TYPE_IMAGE);
      return topic;
    } else if (decodedName.startsWith(MEDIA_NAMESPACE)) {
      String mediaName = topicName.substring(MEDIA_NAMESPACE.length(), topicName.length());
      if (!wiki.mediaFileExists(mediaName)) return null;
      topic.setName(mediaName);
      topic.setTopicType(Topic.TYPE_FILE);
      return topic;
    }
    if (wiki.pageExists(wiki.generatePageId(FilterUtil.normalizeWikiLink(decodedName)))) {
      topic.setName(topicName);
      return topic;
    }
    return null;
  }
View Full Code Here

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

    public Topic getThreadInfo(int tid) throws SQLException {
        Connection connection = this.dataSource.getConnection();
        PreparedStatement st = connection.prepareStatement(dbDriver
                .getQueries().getForumQueries().getSql_THREAD_INFO());
        ResultSet rs = null;
        Topic _thread = new Topic();

        try {
            st.setInt(1, tid);
            rs = (ResultSet) st.executeQuery();

            if (rs.next()) {
                _thread.setLocked(rs.getInt("locked"));
            }

            return _thread;
        } finally {
            if (rs != null) {
View Full Code Here

Examples of org.jtalks.jcommune.model.entity.Topic

     *
     * @param post {@link org.jtalks.jcommune.model.entity.Post} the breadcrumbed post.
     * @return {@link Breadcrumb} the filled breadcrumb for the Post location.
     */
    private Breadcrumb preparePostBreadcrumb(Post post) {
        Topic topic = post.getTopic();
        return new Breadcrumb(
                topic.getId(),
                BreadcrumbLocation.TOPIC,
                topic.getTitle());
    }
View Full Code Here

Examples of org.mapache.business.topic.Topic

    public Object getAsObject(FacesContext facesContext,
                              UIComponent uiComponent,
                              String string) throws ConverterException {
        if(string.equals("-1")){
            Topic t = new Topic();
            t.setTopicID(-1);
            return t;
        }
        try {
            return new BusinessController().loadTopicByTopicID(Integer.parseInt(string));
        } catch (MapacheException e) {
View Full Code Here

Examples of org.objectweb.joram.client.jms.Topic

      strbuf.setLength(0);
      strbuf.append("cluster#").append(i).append(".destName");
      if (isQueue()) {
        dest = new Queue((String) ref.get(strbuf.toString()).getContent());
      } else {
        dest = new Topic((String) ref.get(strbuf.toString()).getContent());
      }
      cluster.put((String) refAddr.getContent(), dest);
      i++;
    }
  }
View Full Code Here

Examples of org.objectweb.joram.client.jms.Topic

      strbuf.setLength(0);
      strbuf.append("cluster#").append(i).append(".destName");
      if (isQueue()) {
        dest = new Queue((String) h.get(strbuf.toString()));
      } else {
        dest = new Topic((String) h.get(strbuf.toString()));
      }
      cluster.put(key, dest);
      i++;
    }
View Full Code Here

Examples of org.objectweb.joram.client.jms.Topic

    javax.jms.QueueConnectionFactory qcf =
      QueueTcpConnectionFactory.create("localhost", 16010);
    javax.jms.TopicConnectionFactory tcf =
      TopicTcpConnectionFactory.create("localhost", 16010);

    Topic tOrders = Topic.create(0);
    Queue qItems = Queue.create(0);
    Queue qCheck = Queue.create(0);
    Queue qChecked = Queue.create(0);
    Queue qBills = Queue.create(0);
    Queue qDelivery = Queue.create(0);

    // Setting access permissions:
    tOrders.setWriter(web);
    tOrders.setReader(billing);
    tOrders.setReader(inventory);
    tOrders.setReader(customer);
    qCheck.setWriter(billing);
    qCheck.setReader(control);
    qChecked.setWriter(control);
    qChecked.setReader(billing);
    qBills.setWriter(billing);
View Full Code Here

Examples of org.objectweb.joram.client.jms.Topic

    System.out.println("SSL Classic administration...");

    AdminModule.connect("root", "root", 60, "org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient");

    Queue queue = Queue.create("queue");
    Topic topic = Topic.create("topic");
   
    User.create("anonymous", "anonymous");

    queue.setFreeReading();
    topic.setFreeReading();
    queue.setFreeWriting();
    topic.setFreeWriting();

    javax.jms.ConnectionFactory cf =
      TcpConnectionFactory.create("localhost",
                                  16010,
                                  "org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient");
View Full Code Here

Examples of org.objectweb.joram.client.jms.Topic

    ConnectionFactory cf = HATcpConnectionFactory.create("hajoram://localhost:2560,localhost:2561,localhost:2562");
    ((HATcpConnectionFactory) cf).getParameters().connectingTimer = 30;

    AdminModule.connect(cf, "root", "root");

    Topic topic = Topic.create(0,"topic");

    AdminModule.disconnect();


    Connection cnx = cf.createConnection("anonymous", "anonymous");
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.