Package com.google.gdata.data.projecthosting

Examples of com.google.gdata.data.projecthosting.IssuesFeed


    IssuesEntry issuesEntry = null;
    URL feedUrl;
    try {
      feedUrl = new URL("http://code.google.com/feeds/issues/p/" + project + "/issues/full?id="
          + issueId);
      IssuesFeed issuesFeed = service.getFeed(feedUrl, IssuesFeed.class);
      issuesEntry = issuesFeed.getEntries().get(0);
    } catch (MalformedURLException e) {
      log.log(Level.SEVERE, "getIssuesEntry() failed", e);
    } catch (IOException e) {
      log.log(Level.SEVERE, "getIssuesEntry() failed", e);
      e.printStackTrace();
View Full Code Here


    return entry;
  }

  public List<IssuesEntry> getAllIssueEntries(String project) throws ServiceException, IOException {
    URL feedUrl = new URL("http://code.google.com/feeds/issues/p/" + project + "/issues/full");
    IssuesFeed resultFeed = service.getFeed(feedUrl, IssuesFeed.class);
    return resultFeed.getEntries();
  }
View Full Code Here

      int choice = readInteger("action");
      switch (choice) {
        case 0:
          return;
        case 1:
          IssuesFeed resultFeed = client.queryIssues(query);
          int numResult = resultFeed.getEntries().size();
          System.out.println(
              "Query returned " + numResult + " matching issues.");
          client.printIssues(resultFeed);
          return;
        case 2:
View Full Code Here

   * Declare the extensions of the feeds for the Project Hosting Issue Tracker
   * Data API.
   */
  private void declareExtensions() {
    new IssueCommentsFeed().declareExtensions(extProfile);
    new IssuesFeed().declareExtensions(extProfile);
  }
View Full Code Here

    public IStatus performQuery(TaskRepository repository, IRepositoryQuery mylynQuery,
            TaskDataCollector collector, ISynchronizationSession session, IProgressMonitor monitor) {

        try {
            IGoogleCodeClient client = getClient(repository);
            IssuesFeed issues;
            if (mylynQuery.getAttributes().isEmpty()) {
                issues = client.getAllIssues(monitor);
            } else {
                IssuesQuery googleQuery = client.createNewIssuesQuery();
                QueryUtils.copyAttributes(mylynQuery, googleQuery);
                googleQuery.setMaxResults(Integer.MAX_VALUE);
                issues = client.getQueryIssues(googleQuery, monitor);
            }
            for (IssuesEntry issue : issues.getEntries()) {
                TaskData data = this.taskDataHandler.updateTaskData(repository, issue, monitor);
                collector.accept(data);
            }
            return Status.OK_STATUS;
        } catch (CoreException e) {
View Full Code Here

TOP

Related Classes of com.google.gdata.data.projecthosting.IssuesFeed

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.