Examples of Topics


Examples of com.coherentlogic.wb.client.core.domain.Topics

        QueryBuilder queryBuilder =
            new QueryBuilder (restTemplate,
                "http://api.worldbank.org/");

        Topics result = queryBuilder
            .topic("13")
            .setPerPage(100)
            .doGet(Topics.class);

        String escapedURI = queryBuilder.getEscapedURI();
View Full Code Here

Examples of com.coherentlogic.wb.client.core.domain.Topics

        QueryBuilder queryBuilder =
            new QueryBuilder (restTemplate,
                "http://api.worldbank.org");

        Topics result = queryBuilder
            .topics()
            .doGet(Topics.class);

        reviewPaginationProperties(1, 1, 50, 21, result);

        List<Topic> topicList = result.getTopicList();

        assertNotNull(topicList);
        assertEquals(21, topicList.size());

        Topic thirdTopic = topicList.get(2);
View Full Code Here

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

      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.domain.model.component.topic.Topics

      MultiLineLabel projectDescriptionLabel = new MultiLineLabel(
          "projectDescription", projectDescription);
      item.add(projectDescriptionLabel);

      App app = (App) getApplication();
      Topics topics = (Topics) app.getEntry("Topics");
      Topic projectTopic = (Topic) topics.getTopic(project.getName());
      Links projectTopicLinks;
      if (projectTopic == null) {
        projectTopicLinks = new Links(project.getDomainModel());
      } else {
        projectTopicLinks = (Links) projectTopic.getLinks();
View Full Code Here

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

  }

  private static ModelContext getNewModelContext(
      final ModelContext modelContext) {
    ModelContext newModelContext = new ModelContext(modelContext);
    Topics topics = (Topics) modelContext.getLookupEntities();
    Topics orderedTopics = topics.getTopicsOrderedByName();
    newModelContext.setLookupEntities(orderedTopics);
    return newModelContext;
  }
View Full Code Here

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

    }
  }

  public Topic getTopic() {
    if (topic == null) {
      Topics topics = (Topics) getDomainModel().getEntry("Topics");
      topic = (Topic) topics.retrieveByOid(new Oid(topicOid));
    }
    return topic;
  }
View Full Code Here

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

  }

  public void setTopicOid(Long topicOid) {
    this.topicOid = topicOid;
    if (topicOid != null) {
      Topics topics = (Topics) getDomainModel().getEntry("Topics");
      topic = (Topic) topics.retrieveByOid(new Oid(topicOid));
    }
  }
View Full Code Here

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

    Quotes quotes = getQuotes();
    quotes.output("Quotes");
  }

  private void outputTopics() {
    Topics topics = getTopics();
    topics.output("Topics");
  }
View Full Code Here

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

      }
    }
  }

  private void test03() {
    Topics topics = getTopics();
    Topic firstTopic = (Topic) topics.first();
    if (firstTopic != null) {
      Topics firstTopicSubtopics = firstTopic.getSubtopics();
      Topic firstSubtopic = (Topic) firstTopicSubtopics.first();
      if (firstSubtopic != null) {
        Links firstSubtopicLinks = (Links) firstSubtopic.getLinks();
        firstSubtopicLinks.output("First Subtopic Links");
      }
    }
View Full Code Here

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

    }
  }

  private void test13() {
    try {
      Topics topics = getTopics();
      Topic topic = new Topic(this.getDomainModel());
      topic.setName("SE");
      topic.setDescription("Software Engineering");
      if (topics.add(topic)) {
        topic.output("Software Engineering");
      }
    } catch (ActionException ae) {
      log.info("Add topic problem: " + ae.getMessage());
    }
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.