Package com.salas.bb.domain

Examples of com.salas.bb.domain.SearchFeed$NoDupArticleDateComparator


                if (qfeed != null) qfeed.setDedupProperties(isDedup, from, to);
                feed = qfeed;
            } else
            {
                Query searchQuery = dialog.getFeedSearchQuery();
                SearchFeed sfeed = controller.createSearchFeed(null, title, searchQuery, purgeLimit);
                if (sfeed != null) sfeed.setDedupProperties(isDedup, from, to, false);
                controller.updateSearchFeed(sfeed);
               
                feed = sfeed;
            }
View Full Code Here


        ICriteria criteria = query.addCriteria();
        criteria.setProperty(ArticleTextProperty.INSTANCE);
        criteria.setComparisonOperation(StringContainsCO.INSTANCE);
        criteria.setValue("*a*");

        SearchFeed feed = new SearchFeed();
        feed.setQuery(query);
        feed.setArticlesLimit(1);

        StandardArticle article = new StandardArticle("aaa");
        article.setID(1); // Make impression of that it was already saved
        feed.addArticleIfMatching(article);
        assertEquals("Article wasn't added.", 1, feed.getArticlesCount());

        // Checking
        HsqlPersistenceManager.clearFeedID(feed);
        assertFalse("Article ID shouldn't be reset because the article doesn't " +
            "belong to this feed.", -1 == article.getID());
View Full Code Here

TOP

Related Classes of com.salas.bb.domain.SearchFeed$NoDupArticleDateComparator

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.