Package org.rssowl.core.persist.INews

Examples of org.rssowl.core.persist.INews.State


    /* Always keep Sticky and New News */
    if (news.isFlagged() || news.getState() == INews.State.NEW)
      return true;

    /* Keep Unread if Set */
    State state = news.getState();
    if (keepUnread && (state == INews.State.UPDATED || state == INews.State.UNREAD))
      return true;

    /* Keep Labeled if Set */
    if (keepLabeled && !news.getLabels().isEmpty())
View Full Code Here


    news = CoreUtils.replace(news, replacements);

    /* Run Filter */
    List<IEntity> entitiesToSave = new ArrayList<IEntity>(news.size());
    for (INews newsitem : news) {
      State state = newsitem.getState();
      if (state == INews.State.NEW || state == INews.State.UNREAD || state == INews.State.UPDATED) {
        newsitem.setState(INews.State.READ);
        entitiesToSave.add(newsitem);
      }
    }
View Full Code Here

TOP

Related Classes of org.rssowl.core.persist.INews.State

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.