Package org.rssowl.core.model.reference

Examples of org.rssowl.core.model.reference.FeedReference


    IFolder root1 = fFactory.createFolder(null, null, "Root 1");
    IFolder subRoot = fFactory.createFolder(null, root1, "Sub Root 1");

    IBookMark mark1 = fFactory.createBookMark(null, root1, feed.getLink(),
        new FeedReference(feed.getId()), "Mark 1");
    IBookMark mark2 = fFactory.createBookMark(null, root1, feed.getLink(),
        new FeedReference(feed.getId()), "Mark 2");
    IBookMark mark3 = fFactory.createBookMark(null, subRoot, feed.getLink(),
        new FeedReference(feed.getId()), "Mark 3");
    IBookMark mark4 = fFactory.createBookMark(null, subRoot, feed.getLink(),
        new FeedReference(feed.getId()), "Mark 4");

    IFolder root2 = fFactory.createFolder(null, null, "Root 2");
    IBookMark mark5 = fFactory.createBookMark(null, root2, feed.getLink(),
        new FeedReference(feed.getId()), "Mark 5");
    IBookMark mark6 = fFactory.createBookMark(null, root2, feed.getLink(),
        new FeedReference(feed.getId()), "Mark 6");

    /* Relax Root 1 */
    List<IEntity> entities = new ArrayList<IEntity>();
    entities.add(root1);
    entities.add(root2);
View Full Code Here


    IFolder folder = fDao.saveFolder(fFactory.createFolder(null, null, "Root"));

    IFeed feed = createFeedWithNews(new URL("http://www.url.com"), 100, 20, today - 7 * DAY, today - 6 * DAY, 0);
    fFactory.createBookMark(null, folder, feed.getLink(),
        new FeedReference(feed.getId()), "BookMark");

    fDao.saveFolder(folder);

    /* Add unpersisted News */
    INews news1 = fFactory.createNews(null, feed, new Date());
View Full Code Here

    long today = DateUtils.getToday().getTimeInMillis();

    IFolder folder = fDao.saveFolder(fFactory.createFolder(null, null, "Root"));

    IFeed feed = createFeedWithNews(new URL("http://www.url.com"), 100, 20, today - 7 * DAY, today - 6 * DAY, 0);
    fFactory.createBookMark(null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark");

    fDao.saveFolder(folder);

    /* Add unpersisted News */
    INews news1 = fFactory.createNews(null, feed, new Date());
View Full Code Here

    long today = DateUtils.getToday().getTimeInMillis();

    IFolder folder = fDao.saveFolder(fFactory.createFolder(null, null, "Root"));

    IFeed feed = createFeedWithNews(new URL("http://www.url.com"), 100, 20, today - 7 * DAY, today - 6 * DAY, 0);
    fFactory.createBookMark(null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark");

    fDao.saveFolder(folder);

    /* Add unpersisted News */
    INews news1 = fFactory.createNews(null, feed, new Date());
View Full Code Here

    IFolder folder = fDao.saveFolder(fFactory.createFolder(null, null, "Root"));

    IFeed feed = createFeedWithNews(new URL("http://www.url.com"), 100, 20, today - 7 * DAY, today - 6 * DAY, 0);
    fFactory.createBookMark(null, folder, feed.getLink(),
        new FeedReference(feed.getId()), "BookMark");

    fDao.saveFolder(folder);

    /* Add unpersisted News */
    INews news1 = fFactory.createNews(null, feed, new Date());
View Full Code Here

    IFolder folder = fDao.saveFolder(fFactory.createFolder(null, null, "Root"));

    IFeed feed = createFeedWithNews(new URL("http://www.url.com"), 100, 20, today - 7 * DAY, today - 6 * DAY, 0);
    fFactory.createBookMark(null, folder, feed.getLink(),
        new FeedReference(feed.getId()), "BookMark");

    fDao.saveFolder(folder);

    /* Add unpersisted News */
    INews news1 = fFactory.createNews(null, feed, new Date());
View Full Code Here

  public final FeedReference loadFeedReference(URL link) {
    IFeed feed = DBHelper.loadFeed(fDb, link, null);
    if (feed == null) {
      return null;
    }
    return new FeedReference(feed.getId());
  }
View Full Code Here

  /*
   * @see org.rssowl.core.model.types.IBookMark#getFeedReference()
   */
  public FeedReference getFeedReference() {
    return new FeedReference(fFeedId);
  }
View Full Code Here

    /* Save some Feeds first */
    final List<FeedReference> feedRefs = new ArrayList<FeedReference>();
    final List<IFeed> feeds = interpretFeedsHelper();
    final int limit = feeds.size() / 2;
    for (int i = 0; i < limit; i++)
      feedRefs.add(new FeedReference(fDao.saveFeed(feeds.get(i)).getId()));

    /* Tasks to resolve Feeds */
    for (int i = 0; i < limit; i++) {
      final int a = i;

View Full Code Here

  private List<FeedReference> saveFeedsHelper() throws PersistenceException {
    List<IFeed> feeds = interpretFeedsHelper();
    List<FeedReference> feedRefs = new ArrayList<FeedReference>();
    for (IFeed feed : feeds)
      feedRefs.add(new FeedReference(fDao.saveFeed(feed).getId()));

    return feedRefs;
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.reference.FeedReference

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.