Package org.apache.roller.weblogger.business

Examples of org.apache.roller.weblogger.business.WeblogManager.saveWeblogCategory()


            // copy updated attributes
            getBean().copyTo(getCategory());
           
            // save changes
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
            wmgr.saveWeblogCategory(getCategory());
            WebloggerFactory.getWeblogger().flush();
           
            // notify caches
            CacheManager.invalidate(getCategory());
           
View Full Code Here


            // add new folder to parent
            getCategory().addCategory(newCategory);
           
            // save changes
            WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
            wmgr.saveWeblogCategory(newCategory);
            WebloggerFactory.getWeblogger().flush();
           
            // notify caches
            CacheManager.invalidate(newCategory);
           
View Full Code Here

        WeblogCategory catParent = root;
        if(parent != null) {
            catParent = parent;
        }
        WeblogCategory testCat = new WeblogCategory(weblog, catParent, name, null, null);
        mgr.saveWeblogCategory(testCat);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
       
        // query for object
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.