Package org.apache.roller.weblogger.business

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


        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

        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

            // 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

            // 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

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.