Package org.jnode.nntp.model

Examples of org.jnode.nntp.model.NewsGroup


    private NewsGroup convert(Echoarea area, Auth auth) {

        Collection<Entity> entities = retrieveEntities(area.getId(), auth);

        NewsGroup newsGroup = new NewsGroup();
        newsGroup.setId(area.getId());
        newsGroup.setName(area.getName());
        newsGroup.setReportedLowWatermark(countLowWatermark(entities));
        newsGroup.setReportedHighWatermark(countHighWatermark(entities));
        newsGroup.setNumberOfArticles(countArticles(entities));
        return newsGroup;
    }
View Full Code Here


    @Override
    public NewsGroup netmail(Auth auth) {
        Collection<Entity> entities = retrieveEntities(Constants.NETMAIL_NEWSGROUP_ID, auth);

        NewsGroup newsGroup = new NewsGroup();
        newsGroup.setId(Constants.NETMAIL_NEWSGROUP_ID);
        newsGroup.setName(Constants.NETMAIL_NEWSGROUP_NAME);
        newsGroup.setNumberOfArticles(countArticles(entities));
        newsGroup.setReportedLowWatermark(countLowWatermark(entities));
        newsGroup.setReportedHighWatermark(countHighWatermark(entities));
        return newsGroup;
    }
View Full Code Here

    @Override
    public Collection<String> process(Collection<String> params, Long id, Long selectedArticleId, Auth auth) {

        String groupName = params.iterator().next();
        NewsGroup group = dataProvider.newsGroup(groupName, auth);
        if (group == null) {
            return responseNotFound();
        }

        Notifier.INSTANSE.notify(new GroupSelectedEvent(group));
View Full Code Here

TOP

Related Classes of org.jnode.nntp.model.NewsGroup

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.