Package org.apache.roller.business

Examples of org.apache.roller.business.WeblogManager.saveWeblogEntry()


        // now add another entry in another blog
        entry = TestUtils.setupWeblogEntry("entry3", testWeblog2
                .getDefaultCategory(), testWeblog2, testUser);
        entry.addTag("ONE");
        entry.addTag("three");
        mgr.saveWeblogEntry(entry);

        // let's fetch "site" tags now
        tags = mgr.getTags(null, null, null, -1);
        assertEquals(3, tags.size());
View Full Code Here


        testEntry.setCreator(user);
        testEntry.setCategory(cat);
       
        // store entry
        WeblogManager mgr = RollerFactory.getRoller().getWeblogManager();
        mgr.saveWeblogEntry(testEntry);
       
        // query for object
        WeblogEntryData entry = mgr.getWeblogEntry(testEntry.getId());
       
        if(entry == null)
View Full Code Here

                } else {
                    entry.setStatus(WeblogEntryData.DRAFT);
                }
               
                // save the entry
                weblogMgr.saveWeblogEntry(entry);
                roller.flush();
               
                // notify cache
                flushPageCache(entry.getWebsite());
               
View Full Code Here

            } else {
                entry.setStatus(WeblogEntryData.DRAFT);
            }
           
            // save the entry
            weblogMgr.saveWeblogEntry(entry);
            roller.flush();
           
            // notify cache
            flushPageCache(entry.getWebsite());
           
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.