Package com.google.gdata.data

Examples of com.google.gdata.data.HtmlTextConstruct


          int commentId = projectHostingHelper.getCommentEntryId(entry.getId(), issueJdoEntry
              .getProjectName(), issueJdoEntry.getIssueId() + "");
          TextContent textContent = (TextContent) entry.getContent();
          String content = null;
          if (textContent != null && textContent.getContent() != null) {
            HtmlTextConstruct htmlConstruct = (HtmlTextConstruct) textContent.getContent();
            content = htmlConstruct.getHtml();
          }
          String author = entry.getAuthors().get(0).getName();

          Blip newBlip = wavelet.reply("\n");
          newBlip.append("Comment #" + commentId + " from " + author);
View Full Code Here


  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();
View Full Code Here

    return issuesEntry;
  }

  public IssueCommentsEntry createComment(String project, int issueId, String name, String content) {
    IssueCommentsEntry entry = new IssueCommentsEntry();
    entry.setContent(new HtmlTextConstruct(content));

    Person author = new Person();
    author.setName(name);
    entry.getAuthors().add(author);
View Full Code Here

     * Test method for 'org.apache.lucene.gdata.search.analysis.DomIndexable.applyPath(String)'
     */
    public void testApplyPath() throws NotIndexableException, XPathExpressionException {
        String content = "fooo bar<br>";
        ServerBaseEntry entry = new ServerBaseEntry();
        entry.setContent(new HtmlTextConstruct(content));
        entry.setServiceConfig(new ProvidedServiceStub());
       
            Indexable ind = new DomIndexable(entry);
            Node n = ind.applyPath("/entry/content");
            assertNotNull(n);
View Full Code Here

    Person author = entry.getAuthors().get(0);
    printPerson("Reporter", author.getName(), author.getUri());

    TextContent textContent = (TextContent) entry.getContent();
    if ((textContent != null) && (textContent.getContent() != null)) {
      HtmlTextConstruct textConstruct =
          (HtmlTextConstruct) textContent.getContent();
      System.out.println("\tDescription\n\t\t" + textConstruct.getHtml());
    }

    if (entry.hasStatus()) {
      System.out.println("\tStatus\n\t\t" + entry.getStatus().getValue());
    }
View Full Code Here

    Person author = entry.getAuthors().get(0);
    printPerson("Author", author.getName(), author.getUri());

    TextContent textContent = (TextContent) entry.getContent();
    if ((textContent != null) && (textContent.getContent() != null)) {
      HtmlTextConstruct textConstruct =
          (HtmlTextConstruct) textContent.getContent();
      System.out.println("\tComment\n\t\t" + textConstruct.getHtml());
    }

    if (entry.hasUpdates()) {
      Updates updates = entry.getUpdates();
View Full Code Here

    // Uncomment the following line to set the owner along with issue creation.
    // It's intentionally commented out so we can demonstrate setting the owner
    // 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);
View Full Code Here

    updates.addCcUpdate(new CcUpdate("-" + username));

    // Create issue comment entry
    IssueCommentsEntry entry = new IssueCommentsEntry();
    entry.getAuthors().add(author);
    entry.setContent(new HtmlTextConstruct("some comment"));
    entry.setUpdates(updates);
    entry.setSendEmail(new SendEmail("False"));

    return entry;
  }
View Full Code Here

    author.setName(username);

    // Create issue comment entry
    IssueCommentsEntry entry = new IssueCommentsEntry();
    entry.getAuthors().add(author);
    entry.setContent(new HtmlTextConstruct("Some comment"));
    entry.setSendEmail(new SendEmail("False"));

    return entry;
  }
View Full Code Here

    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."));
    entry.setUpdates(updates);
    entry.setSendEmail(new SendEmail("False"));

    return entry;
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.HtmlTextConstruct

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.