Package com.google.gdata.data.projecthosting

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


  public IssuesEntry createIssue(String project, String title, String content,
      Iterator<String> labels, String user) throws ServiceException, IOException {
    IssuesEntry entry = new IssuesEntry();
    entry.setTitle(new PlainTextConstruct(title));
    entry.setContent(new HtmlTextConstruct(content));
    entry.setStatus(new Status("New"));
    Owner owner = new Owner();
    owner.setUsername(new Username(user));

    Person author = new Person();
    author.setName(user);
View Full Code Here


    // field using setOwnerUpdate() as shown in makeUpdatingComment() below.
    // entry.setOwner(owner);

    entry.setContent(new HtmlTextConstruct("issue description"));
    entry.setTitle(new PlainTextConstruct("issue summary"));
    entry.setStatus(new Status("New"));
    entry.addLabel(new Label("Priority-High"));
    entry.addLabel(new Label("Milestone-2009"));
    entry.addCc(cc);
    entry.setSendEmail(new SendEmail("False"));
View Full Code Here

    author.setName(username);

    // Create issue updates
    Updates updates = new Updates();
    updates.setSummary(new Summary("New issue summary"));
    updates.setStatus(new Status("Accepted"));
    updates.setOwnerUpdate(new OwnerUpdate(username));
    updates.addLabel(new Label("-Priority-High"));
    updates.addLabel(new Label("Priority-Low"));
    updates.addLabel(new Label("-Milestone-2009"));
    updates.addLabel(new Label("Milestone-2010"));
View Full Code Here

    Person author = new Person();
    author.setName(username);

    // Set the Status as Fixed
    Updates updates = new Updates();
    updates.setStatus(new Status("Fixed"));

    // Create issue comment entry
    IssueCommentsEntry entry = new IssueCommentsEntry();
    entry.getAuthors().add(author);
    entry.setContent(new HtmlTextConstruct("This was fixed last week."));
View Full Code Here

            entry.setOwner(owner);
        }

        entry.setContent(new HtmlTextConstruct(description));
        entry.setTitle(new PlainTextConstruct(summary));
        entry.setStatus(new Status("New"));
        entry.setSendEmail(new SendEmail("False"));

        IssuesEntry created = client.createIssue(entry, monitor);
        String issueId = getIssueId(created);
View Full Code Here

                ownerUpdate = new OwnerUpdate(StringUtils.EMPTY);
            }
            updates.setOwnerUpdate(ownerUpdate);
        }

        updates.setStatus(new Status(getStringValue(taskData, GoogleCodeAttribute.STATUS)));

        computeBlockedOnDifference(taskData, oldAttributes, updates);

        entry.getAuthors().add(client.getCurrentUser());
        if (!StringUtils.isEmpty(comment)) {
View Full Code Here

        setAttributeValue(data, GoogleCodeAttribute.TASK_KEY, issueId);

        if (issueEntry.hasStatus()) {
            // {Status value=Fixed}{Status value=Duplicate}{Status
            // value=WontFix}{Status value=Accepted}
            Status status = issueEntry.getStatus();
            setAttributeValue(data, GoogleCodeAttribute.STATUS, status.getValue());
        }

        if (issueEntry.hasLabels()) {
            // [{Label value=Type-Defect}, {Label value=Priority-Medium}, {Label
            // value=Type-Enhancement}]
View Full Code Here

TOP

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

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.