Package nl.topicus.onderwijs.dashboard.keys

Examples of nl.topicus.onderwijs.dashboard.keys.Key


    Map<Key, List<Train>> newTrains = new HashMap<Key, List<Train>>();
    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(NSService.class);
    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      Key location = configEntry.getKey();
      String station = configEntry.getValue().get("station").toString();
      List<Train> newDeps = fetchDepartures(location, station);
      newTrains.put(location, newDeps == null ? trains.get(location)
          : newDeps);
    }
View Full Code Here


  }

  public void onConfigure(DashboardRepository repository) {
    for (Entry<Key, Map<String, ?>> settingsEntry : getSettings()
        .getServiceSettings(TwitterService.class).entrySet()) {
      Key key = settingsEntry.getKey();

      TwitterSettings settings = new TwitterSettings(
          settingsEntry.getValue());

      String oAuthConsumerKey = settings.getApplicationKey().getKey();
View Full Code Here

    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(GitHubService.class);
    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      try {
        Key project = configEntry.getKey();
        String owner = configEntry.getValue().get("owner").toString();
        String repository = configEntry.getValue().get("repository")
            .toString();
        String username = (String) configEntry.getValue().get(
            "username");
View Full Code Here

    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(SomOnderwijsportaalRetriever.class);

    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      Key project = configEntry.getKey();
      Map<String, String> urls = (Map<String, String>) configEntry
          .getValue().get("urls");
      TopicusApplicationStatus status = getProjectData(project, urls);
      newStatusses.put(project, status);
    }
View Full Code Here

    Map<Key, List<Issue>> newIssues = new HashMap<Key, List<Issue>>();
    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(MantisService.class);
    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      Key project = configEntry.getKey();
      String url = configEntry.getValue().get("url").toString();
      String username = configEntry.getValue().get("username").toString();
      String password = configEntry.getValue().get("password").toString();
      List<Integer> projectIds = (List<Integer>) configEntry.getValue()
          .get("projects");
View Full Code Here

    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(ParnassysStatusRetriever.class);

    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      Key project = configEntry.getKey();
      Map<String, String> urls = (Map<String, String>) configEntry
          .getValue().get("urls");
      TopicusApplicationStatus status = getProjectData(project, urls);
      newStatusses.put(project, status);
    }
View Full Code Here

    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(CobraStatusRetriever.class);

    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      Key project = configEntry.getKey();
      Map<String, String> urls = (Map<String, String>) configEntry
          .getValue().get("urls");
      TopicusApplicationStatus status = getProjectData(project, urls);
      newStatusses.put(project, status);
    }
View Full Code Here

    Map<Key, List<Commit>> newCommits = new HashMap<Key, List<Commit>>();
    Map<Key, Map<String, ?>> serviceSettings = getSettings()
        .getServiceSettings(SvnService.class);
    for (Map.Entry<Key, Map<String, ?>> configEntry : serviceSettings
        .entrySet()) {
      Key project = configEntry.getKey();
      String url = configEntry.getValue().get("url").toString();
      String username = configEntry.getValue().get("username").toString();
      String password = configEntry.getValue().get("password").toString();
      newCommits.put(project,
          fetchCommits(project, url, username, password));
View Full Code Here

TOP

Related Classes of nl.topicus.onderwijs.dashboard.keys.Key

Copyright © 2018 www.massapicom. 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.