Package views

Examples of views.ArticlesView


        this.articleDao = articleDao;
    }

    @GET
    public ArticlesView show() {
        return new ArticlesView(articleDao.findNewestArticles(5));
    }
View Full Code Here


    }

    @GET
    public ArticlesView search(@QueryParam("term") String term) {
        List<Article> articles = articleDao.findBySlugAndText(term, term);
        return new ArticlesView(articles);
    }
View Full Code Here

        this.articleDao = articleDao;
    }

    @GET
    public ArticlesView searchByTag(@PathParam("tag") String tag) {
        return new ArticlesView(articleDao.findByTag(tag));
    }
View Full Code Here

TOP

Related Classes of views.ArticlesView

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.