Examples of GuidesSet


Examples of com.salas.bb.domain.GuidesSet

     */
    protected void doInitializeData(IReportDataProvider provider)
    {
        // Find all feeds of a sort
        data = new LinkedList<IFeed>();
        GuidesSet set = provider.getGuidesSet();
        List<IFeed> feeds = set.getFeeds();
        for (IFeed feed : feeds)
        {
            if (feed.getParentGuides().length > 1) data.add(feed);
        }

View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

        cal.setTimeInMillis(DateUtils.getTodayTime() - Constants.MILLIS_IN_WEEK);
        Date threshold = cal.getTime();

        // Scan through all feeds and find some for the report
        data = new LinkedList<RFeed>();
        GuidesSet set = provider.getGuidesSet();
        List<IFeed> feeds = set.getFeeds();
        for (IFeed feed : feeds)
        {
            if (isEligible(feed, threshold)) data.add(new RFeed(feed));
        }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    /**
     * Tests sorting empty set.
     */
    public void testSortingEmpty()
    {
        GuidesSet set = new GuidesSet();
        SortGuidesByTitleAction.sortGuidesSet(set);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

     */
    public void testSortingOneGuide()
    {
        IGuide guide = guide("0");

        GuidesSet set = new GuidesSet();
        set.add(guide);

        SortGuidesByTitleAction.sortGuidesSet(set);
        assertEquals(1, set.getGuidesCount());
        assertTrue(set.getGuideAt(0) == guide);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    {
        IGuide guide0 = guide("0");
        IGuide guide1 = guide("1");
        IGuide guide2 = guide("2");

        GuidesSet set = new GuidesSet();
        set.add(guide0);
        set.add(guide1);
        set.add(guide2);

        SortGuidesByTitleAction.sortGuidesSet(set);
        assertEquals(3, set.getGuidesCount());
        assertTrue(set.getGuideAt(0) == guide0);
        assertTrue(set.getGuideAt(1) == guide1);
        assertTrue(set.getGuideAt(2) == guide2);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    {
        IGuide guide0 = guide("0");
        IGuide guide1 = guide("1");
        IGuide guide2 = guide("2");

        GuidesSet set = new GuidesSet();
        set.add(guide2);
        set.add(guide1);
        set.add(guide0);

        SortGuidesByTitleAction.sortGuidesSet(set);
        assertEquals(3, set.getGuidesCount());
        assertTrue(set.getGuideAt(0) == guide0);
        assertTrue(set.getGuideAt(1) == guide1);
        assertTrue(set.getGuideAt(2) == guide2);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    public void testCaseInsensitiveSorting()
    {
        IGuide guide0 = guide("a");
        IGuide guide1 = guide("B");

        GuidesSet set = new GuidesSet();
        set.add(guide1);
        set.add(guide0);

        SortGuidesByTitleAction.sortGuidesSet(set);
        assertEquals(2, set.getGuidesCount());
        assertTrue(set.getGuideAt(0) == guide0);
        assertTrue(set.getGuideAt(1) == guide1);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

    private StandardGuide   cg2;
    private StandardGuide   cg3;

    protected void setUp() throws Exception
    {
        cgs = new GuidesSet();

        cg1 = new StandardGuide();
        cg1.setTitle("1");
        cg2 = new StandardGuide();
        cg2.setTitle("2");
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

     */
    protected IGuide getGuideById(long id)
    {
        if (id < 0) return null;

        GuidesSet set = GlobalModel.SINGLETON.getGuidesSet();
        return set.findGuideByID(id);
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet

     */
    protected IFeed getFeedById(long id)
    {
        if (id < 0) return null;

        GuidesSet set = GlobalModel.SINGLETON.getGuidesSet();
        return set.findFeedByID(id);
    }
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.