Examples of saveFolder()


Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

            WeblogBookmarkFolder dest = new WeblogBookmarkFolder(root, "dest", null, testWeblog);
            bmgr.saveFolder(dest);

            // create source folder f1
            WeblogBookmarkFolder f1 = new WeblogBookmarkFolder(root, "f1", null, testWeblog);
            bmgr.saveFolder(f1);

            // create bookmark b1 inside source folder f1
            WeblogBookmark b1 = new WeblogBookmark(
                    f1, "b1", "testbookmark",
                    "http://example.com", "http://example.com/rss",
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

                    new Integer(1), new Integer(1), "image.gif");
            f1.addBookmark(b1);

            // create folder f2 inside f1
            WeblogBookmarkFolder f2 = new WeblogBookmarkFolder(f1, "f2", null, testWeblog);
            bmgr.saveFolder(f2);

            // create bookmark b2 inside folder f2
            WeblogBookmark b2 = new WeblogBookmark(
                    f2, "b2", "testbookmark",
                    "http://example.com", "http://example.com/rss",
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

                    new Integer(1), new Integer(1), "image.gif");
            f2.addBookmark(b2);

            // create folder f3 inside folder f2
            WeblogBookmarkFolder f3 = new WeblogBookmarkFolder(f2, "f3", null, testWeblog);
            bmgr.saveFolder(f3);

            // crete bookmark b3 inside folder f3
            WeblogBookmark b3 = new WeblogBookmark(
                    f3, "b3", "testbookmark",
                    "http://example.com", "http://example.com/rss",
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

        WeblogBookmarkFolder folderParent = root;
        if(parent != null) {
            folderParent = parent;
        }
        WeblogBookmarkFolder testFolder = new WeblogBookmarkFolder(folderParent, name, null, weblog);
        mgr.saveFolder(testFolder);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
       
        // query for object
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

        WeblogBookmarkFolder folderParent = root;
        if(parent != null) {
            folderParent = parent;
        }
        WeblogBookmarkFolder testFolder = new WeblogBookmarkFolder(folderParent, name, null, weblog);
        mgr.saveFolder(testFolder);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
       
        // query for object
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

            // add new folder to parent
            getFolder().addFolder(newFolder);
           
            // save changes
            BookmarkManager bmgr = WebloggerFactory.getWeblogger().getBookmarkManager();
            bmgr.saveFolder(newFolder);
            WebloggerFactory.getWeblogger().flush();
           
            // notify caches
            CacheManager.invalidate(newFolder);
           
View Full Code Here

Examples of org.apache.roller.weblogger.business.BookmarkManager.saveFolder()

            // copy updated attributes
            getBean().copyTo(getFolder());
           
            // save changes
            BookmarkManager bmgr = WebloggerFactory.getWeblogger().getBookmarkManager();
            bmgr.saveFolder(getFolder());
            WebloggerFactory.getWeblogger().flush();
           
            // notify caches
            CacheManager.invalidate(getFolder());
           
View Full Code Here

Examples of org.rssowl.core.model.dao.IModelDAO.saveFolder()

    return str.toString();
  }

  private IBookMark createBookMark(IFeed feed) throws PersistenceException {
    IModelDAO dao = NewsModel.getDefault().getPersistenceLayer().getModelDAO();
    IFolder folder = dao.saveFolder(NewsModel.getDefault().getTypesFactory().createFolder(null, null, "Root"));

    return dao.saveBookMark(NewsModel.getDefault().getTypesFactory().createBookMark(null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark"));
  }
}
View Full Code Here

Examples of org.rssowl.core.model.dao.IModelDAO.saveFolder()

    assertEquals(newCounter, getNewCount(feed));
  }

  private IBookMark createBookMark(IFeed feed) throws PersistenceException {
    IModelDAO dao = NewsModel.getDefault().getPersistenceLayer().getModelDAO();
    IFolder folder = dao.saveFolder(NewsModel.getDefault().getTypesFactory().createFolder(null, null, "Root"));

    return dao.saveBookMark(NewsModel.getDefault().getTypesFactory().createBookMark(
        null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark"));
  }
}
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.