Package org.apache.abdera.model

Examples of org.apache.abdera.model.Feed.addAuthor()


            String defaultName = feed.getTitle();
            if (defaultName == null) {
                defaultName = Common.toFeedIdString(feed.getId());
            }
            author.setName(defaultName);
            feed.addAuthor(author);
        }

        // update author
        if (feedOptions.name != null || feedOptions.email != null
                || feedOptions.uri != null) {
View Full Code Here


            author.setName(existingAuthor.getName());
            author.setEmail(existingAuthor.getEmail());
            if (existingAuthor.getUri() != null) {
                author.setUri(existingAuthor.getUri().toString());
            }
            result.addAuthor(author);
        }
        // for (Category category : feed.getCategories()) {
        // result.addCategory(category.getTerm());
        // java.lang.ClassCastException:
        // org.apache.abdera.parser.stax.FOMExtensibleElement cannot be cast to
View Full Code Here

            feed
                .addLink("http://b216:8080/reporting/reports/?start-index=0&max-results=30&alt=text/plain",
                         "first");
            feed.addLink("http://b216:8080/reporting/reports?alt=application/json", "alternate");
            feed.addLink("http://b216:8080/reporting/reports", "self");
            feed.addAuthor("admin");
            feed.addCategory("urn:com:systinet:reporting:kind",
                             "urn:com:systinet:reporting:kind:definitions:collection",
                             "report definitions");
            Entry e = feed.addEntry();
            e.setId("toptenvalidators");
View Full Code Here

      feed.setId(
        config.getServerConfiguration().
          getServerUri() + "/" +
            config.getFeedId());
      feed.setTitle(config.getFeedTitle());
      feed.addAuthor(config.getFeedAuthor());
      feed.addLink(config.getFeedUri());
      feed.addLink(config.getFeedUri(),"self");
      feed.setUpdated(new Date());
      getEntries(request,feed,root);
      return ProviderHelper.returnBase(
View Full Code Here

    feed.setLanguage("en-US");
    feed.setBaseUri("http://example.org");
   
    feed.setTitle("Example Feed");
    feed.addLink("http://example.org/");
    feed.addAuthor("John Doe");
    feed.setId("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6", false);
    feed.addContributor("Bob Jones");
    feed.addCategory("example");
   
    Entry entry = feed.insertEntry();
View Full Code Here

    feed.setLanguage("en-US");
    feed.setBaseUri("http://example.org");
   
    feed.setTitle("Example Feed");
    feed.addLink("http://example.org/");
    feed.addAuthor("John Doe");
    feed.setId("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6", false);
    feed.addContributor("Bob Jones");
    feed.addCategory("example");
   
    Entry entry = feed.insertEntry();
View Full Code Here

      feed.setId(base + "/collections/entries");
      feed.setTitle("Entries");
      feed.setUpdated(new Date());
      feed.addLink(base + "/collections/entries");
      feed.addLink(base + "/collections/entries", "self");
      feed.addAuthor("James");
      Document<Feed> doc = feed.getDocument();
      return doc;
    } catch (Exception e) {}
    return null;
  }
View Full Code Here

    Feed feed = factory.newFeed();
    feed.setId(getId(request));
    feed.setTitle(getTitle(request));
    feed.addLink("");
    feed.addLink("", "self");
    feed.addAuthor(getAuthor(request));
    feed.setUpdated(new Date());
    return feed;
  }
 
  /**
 
View Full Code Here

        Factory factory = Abdera.getNewFactory();
        Feed f = factory.newFeed();
        f.setBaseUri(uParam.getAbsolutePath().toString());
        f.setTitle("Collection of Books");
        f.setId("http://www.books.com");
        f.addAuthor("BookStore Management Company");
        try {
            for (Book b : books.values()) {
               
                Entry e = AtomUtils.createBookEntry(b);
               
View Full Code Here

   
    feed.setBaseUri("http://\u0645\u062b\u0627\u0644.org/ar/feed.xml");
    feed.setId("tag:\u0645\u062b\u0627\u0644.org,2007:/\u0645\u062b\u0627\u0644");
    feed.setUpdated(new Date());
    feed.setTitle("\u0645\u062b\u0644\u0627\u0020\u0627\u0644\u0646\u0635\u0020\u0627\u0644\u0639\u0631\u0628\u064a");
    feed.addAuthor("\u062c\u064a\u0645\u0633");
    feed.addLink("", "self");
    feed.addLink("http://\u0645\u062b\u0627\u0644.org/ar/blog");
   
    Entry entry = feed.addEntry();
    entry.setId("tag:\u0645\u062b\u0627\u0644.org,2007:/\u0645\u062b\u0627\u0644/1");
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.