Package org.jboss.seam.wiki.core.feeds

Examples of org.jboss.seam.wiki.core.feeds.FeedDAO.findFeed()


        Feed feed = null;
        try {
            log.debug("trying to retrieve feed for id: " + feedId);
            Long feedIdentifier = Long.valueOf(feedId);
            FeedDAO feedDAO = (FeedDAO)Component.getInstance(FeedDAO.class);
            feed = feedDAO.findFeed(feedIdentifier);
        } catch (NumberFormatException ex) {
            log.debug("feed identifier couldn't be converted to java.lang.Long");
        }
        return feed;
    }
View Full Code Here


        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("Anonymous Guest", "AAA", feedDAO.findFeed(1l), 1);
            }
        }.run();

    }
View Full Code Here

        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("Regular Member", "AAA", feedDAO.findFeed(1l), 1);
            }
        }.run();

    }
View Full Code Here

        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("Anonymous Guest", "BBB", feedDAO.findFeed(2l), 1);
                checkFeedHasEntries(feedDAO.findFeed(1l), 1);
            }
        }.run();

    }
View Full Code Here

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("Anonymous Guest", "BBB", feedDAO.findFeed(2l), 1);
                checkFeedHasEntries(feedDAO.findFeed(1l), 1);
            }
        }.run();

    }
View Full Code Here

        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("System Administrator", "BBB", feedDAO.findFeed(2l), 0);
                checkFeedHasEntries(feedDAO.findFeed(1l), 1);
            }
        }.run();

    }
View Full Code Here

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("System Administrator", "BBB", feedDAO.findFeed(2l), 0);
                checkFeedHasEntries(feedDAO.findFeed(1l), 1);
            }
        }.run();

    }
View Full Code Here

        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("Anonymous Guest", "AAA", feedDAO.findFeed(1l), 1);
                checkTestDocumentIsOnFeed("Anonymous Guest", "BBB", feedDAO.findFeed(2l), 1);
            }
        }.run();

    }
View Full Code Here

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("Anonymous Guest", "AAA", feedDAO.findFeed(1l), 1);
                checkTestDocumentIsOnFeed("Anonymous Guest", "BBB", feedDAO.findFeed(2l), 1);
            }
        }.run();

    }
View Full Code Here

        }.run();

        new NonFacesRequest("/wiki.xhtml") {
            protected void renderResponse() throws Exception {
                FeedDAO feedDAO = (FeedDAO)getInstance(FeedDAO.class);
                checkTestDocumentIsOnFeed("System Administrator", "AAA", feedDAO.findFeed(1l), 0);
                checkTestDocumentIsOnFeed("System Administrator", "BBB", feedDAO.findFeed(2l), 0);
            }
        }.run();

    }
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.