Examples of Topic


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

      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 net.sf.pmr.messageBoards.domain.Topic

        board.setDescription("Board where we discuss about latest movies");
        board.setBasicProject(basicProject);
        board.setPersistanceVersion(1);

        // topic
        Topic topic = new TopicImpl();
        topic.setTitle("les cl�s de bagnole");

        // create a message idem to the one in the database
        messageToUpdateOrDelete = new MessageImpl();
        messageToUpdateOrDelete.setId(1);
        messageToUpdateOrDelete.setBoard(board);
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.indexing.Topic

        if (subjectName == null) {
            subjectName = getTitle();
        }

        return new Topic(subjectUri, subjectName);
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.Topic

    public void testBrokerConfiguredCorrectly() throws Exception {

        // Validate the system properties are being evaluated in xbean.
        assertEquals("testbroker", brokerService.getBrokerName());

        Topic topic = (Topic)broker.addDestination(context, new ActiveMQTopic("FOO.BAR"),true);
        DispatchPolicy dispatchPolicy = topic.getDispatchPolicy();
        assertTrue("dispatchPolicy should be RoundRobinDispatchPolicy: " + dispatchPolicy, dispatchPolicy instanceof RoundRobinDispatchPolicy);

        SubscriptionRecoveryPolicy subscriptionRecoveryPolicy = topic.getSubscriptionRecoveryPolicy();
        assertTrue("subscriptionRecoveryPolicy should be LastImageSubscriptionRecoveryPolicy: " + subscriptionRecoveryPolicy,
                   subscriptionRecoveryPolicy instanceof LastImageSubscriptionRecoveryPolicy);

        LOG.info("destination: " + topic);
        LOG.info("dispatchPolicy: " + dispatchPolicy);
        LOG.info("subscriptionRecoveryPolicy: " + subscriptionRecoveryPolicy);

        topic = (Topic)broker.addDestination(context, new ActiveMQTopic("ORDERS.BOOKS"),true);
        dispatchPolicy = topic.getDispatchPolicy();
        assertTrue("dispatchPolicy should be StrictOrderDispatchPolicy: " + dispatchPolicy, dispatchPolicy instanceof StrictOrderDispatchPolicy);

        subscriptionRecoveryPolicy = topic.getSubscriptionRecoveryPolicy();
        assertTrue("subscriptionRecoveryPolicy should be TimedSubscriptionRecoveryPolicy: " + subscriptionRecoveryPolicy,
                   subscriptionRecoveryPolicy instanceof TimedSubscriptionRecoveryPolicy);
        TimedSubscriptionRecoveryPolicy timedSubcriptionPolicy = (TimedSubscriptionRecoveryPolicy)subscriptionRecoveryPolicy;
        assertEquals("getRecoverDuration()", 60000, timedSubcriptionPolicy.getRecoverDuration());
View Full Code Here

Examples of org.apache.muse.ws.notification.topics.Topic

       
        Element[] children = XmlUtils.getElements(root, WstConstants.TOPIC_QNAME);
       
        for (int n = 0; n < children.length; ++n)
        {
            Topic topic = new SimpleTopic(children[n], this);
            addTopic(topic);
        }
    }
View Full Code Here

Examples of org.apache.ws.notification.topics.Topic

         TopicSpace topicSpace      = topicSpaces[i];
         String     targetNamespace = topicSpace.getTargetNamespace(  );
         Iterator   iterator        = topicSpace.topicIterator(  );
         while ( iterator.hasNext(  ) )
         {
            Topic  topic          = (Topic) iterator.next(  );
            String topicName      = topic.getName(  );
            QName  rootTopicQName = new QName( targetNamespace, topicName );

            if ( topic.isVisible(  ) )
            {
               addSimpleTopicExpression( prop, rootTopicQName );
            }

            Iterator subTopics = topic.topicIterator(  );
            while ( subTopics.hasNext(  ) )
            {
               Topic subTopic = (Topic) subTopics.next(  );
               addConcreteTopicExpressions( prop, rootTopicQName, subTopic );
            }
         }
      }
View Full Code Here

Examples of org.domain.model.component.topic.Topic

      add(new HomePageMenuPanel("homePageMenuPanel", this));

      ModelContext topicsModelContext = new ModelContext();
      topicsModelContext.setDomainModel(app.getDomainModel());
      Topics topics = (Topics) app.getEntry("Topics");
      Topic modelAndWebTopic = (Topic) topics.getTopic(MODEL_AND_WEB);
      if (modelAndWebTopic != null) {
        Topics modelAndWebTopicSubtopics = (Topics) modelAndWebTopic
            .getSubtopics();
        topicsModelContext.setEntities(modelAndWebTopicSubtopics);
      } else {
        topicsModelContext.setEntities(topics);
      }
View Full Code Here

Examples of org.drools.planner.examples.examination.domain.Topic

        private void readTopicListAndStudentList(Examination examination) throws IOException {
            Map<Integer, Student> studentMap = new HashMap<Integer, Student>();
            int examSize = readHeaderWithNumber("Exams");
            List<Topic> topicList = new ArrayList<Topic>(examSize);
            for (int i = 0; i < examSize; i++) {
                Topic topic = new Topic();
                topic.setId((long) i);
                String line = bufferedReader.readLine();
                String[] lineTokens = line.split(SPLIT_REGEX);
                topic.setDuration(Integer.parseInt(lineTokens[0]));
                List<Student> topicStudentList = new ArrayList<Student>(lineTokens.length - 1);
                for (int j = 1; j < lineTokens.length; j++) {
                    topicStudentList.add(findOrCreateStudent(studentMap, Integer.parseInt(lineTokens[j])));
                }
                topic.setStudentList(topicStudentList);
                topic.setFrontLoadLarge(false);
                topicList.add(topic);
            }
            examination.setTopicList(topicList);
            List<Student> studentList = new ArrayList<Student>(studentMap.values());
            examination.setStudentList(studentList);
View Full Code Here

Examples of org.eclipse.help.internal.Topic

   * e.g. "path/myfile.html" -> "/my.plugin/path/myfile.html"
   */
  private class NormalizeHandler extends ProcessorHandler {
    public short handle(UAElement element, String id) {
      if (element instanceof Topic) {
        Topic topic = (Topic)element;
        String href = topic.getHref();
        if (href != null) {
          topic.setHref(normalize(href, id));
        }
        return HANDLED_CONTINUE;
      }
      else if (element instanceof Toc) {
        Toc toc = (Toc)element;
View Full Code Here

Examples of org.fusesource.mqtt.client.Topic

            public void onSuccess(Void value) {
                String subscribeTopicName = configuration.getSubscribeTopicName();
                subscribeTopicName = subscribeTopicName != null ? subscribeTopicName.trim() : null;

                if (subscribeTopicName != null && !subscribeTopicName.isEmpty()) {
                    Topic[] topics = {new Topic(subscribeTopicName, configuration.getQoS())};
                    connection.subscribe(topics, new Callback<byte[]>() {
                        public void onSuccess(byte[] value) {
                            promise.onSuccess(value);
                            connected = true;
                        }
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.