Package org.rssowl.core.model.reference

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


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

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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(), new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(), new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(), new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
View Full Code Here


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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(),
        new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(),
        new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(),
        new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
View Full Code Here

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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(),
        new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(),
        new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(),
        new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
View Full Code Here

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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(),
        new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(),
        new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(),
        new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
View Full Code Here

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

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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(), new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(), new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(), new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
View Full Code Here

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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(),
        new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(),
        new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(),
        new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
View Full Code Here

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

    IFeed feed1 = createFeedWithNews(new URL("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed1.getLink(),
        new FeedReference(feed1.getId()), "BookMark1");

    IFeed feed2 = createFeedWithNews(new URL("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
    fFactory.createBookMark(null, folder, feed2.getLink(),
        new FeedReference(feed2.getId()), "BookMark2");

    IFeed feed3 = createFeedWithNews(new URL("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
    fFactory.createBookMark(null, folder, feed3.getLink(),
        new FeedReference(feed3.getId()), "BookMark3");

    fDao.saveFolder(folder);

    IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
    List<IMark> marks = folder.getMarks();
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()), "BookMark1");

    fDao.saveFolder(folder);

    IBookMark bookmark = (IBookMark) folder.getMarks().get(0);
    assertEquals(100, countNews(bookmark));
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()), "BookMark1");

    fDao.saveFolder(folder);

    IBookMark bookmark = (IBookMark) folder.getMarks().get(0);
    assertEquals(100, countNews(bookmark));
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()), "BookMark1");

    fDao.saveFolder(folder);

    IBookMark bookmark = (IBookMark) folder.getMarks().get(0);
    assertEquals(100, countNews(bookmark));
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.