Package org.rssowl.core.internal.persist

Examples of org.rssowl.core.internal.persist.NewsContainer


   * @param folder
   */
  public FolderNewsMark(IFolder folder) {
    super(folder.getId(), folder.getParent(), folder.getName());
    fFolder = folder;
    fNewsContainer = new NewsContainer(Collections.<INews.State, Boolean> emptyMap());
    fillNews(folder);
  }
View Full Code Here


    DynamicDAO.save(bin);

    /* Ensure that arrays are treated specially by db4o, don't need to delete them manually */
    assertFalse(fDb.ext().isStored(bin.internalGetNewsContainer().internalGetNewsIds()));

    NewsContainer newsContainer = bin.internalGetNewsContainer();
    DynamicDAO.delete(bin);
    assertFalse(fDb.ext().isStored(newsContainer));
  }
View Full Code Here

          /* Resolve news counts from folder */
          else if (entity instanceof IFolder) {
            IFolder folder = (IFolder) entity;
            FolderNewsMark resolver = new FolderNewsMark(folder);

            NewsContainer newsContainer = resolver.resolveNewsContainer(monitor);
            totalCount = newsContainer.getNewsCount(INews.State.getVisible());
            newCount = newsContainer.getNewsCount(EnumSet.of(INews.State.NEW));
            unreadCount = newsContainer.getNewsCount(EnumSet.of(INews.State.UNREAD));
            updatedCount = newsContainer.getNewsCount(EnumSet.of(INews.State.UPDATED));
          }
        }

        @Override
        protected void runInUI(IProgressMonitor monitor) {
View Full Code Here

     * Ensure that arrays are treated specially by db4o, don't need to delete
     * them manually
     */
    assertFalse(fDb.ext().isStored(bin.internalGetNewsContainer().internalGetNewsIds()));

    NewsContainer newsContainer = bin.internalGetNewsContainer();
    DynamicDAO.delete(bin);
    assertFalse(fDb.ext().isStored(newsContainer));
  }
View Full Code Here

  public NewsContainer resolveNewsContainer(IProgressMonitor monitor) {
    return doResolve(NewsFilter.Type.SHOW_ALL, monitor, true);
  }

  private NewsContainer doResolve(NewsFilter.Type type, IProgressMonitor monitor, boolean resolveContainer) {
    NewsContainer container = null;
    if (resolveContainer)
      container = new NewsContainer(Collections.<INews.State, Boolean> emptyMap());

    /* Clear caches */
    synchronized (this) {
      fNewsContainer.clear();
    }
View Full Code Here

TOP

Related Classes of org.rssowl.core.internal.persist.NewsContainer

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.