Examples of saveWeblogEntry()


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

        testEntry.setWebsite(testWeblog);
        testEntry.setCreator(testUser);
        testEntry.setCategory(testWeblog.getDefaultCategory());
       
        // create a weblog entry
        mgr.saveWeblogEntry(testEntry);
        String id = testEntry.getId();
        TestUtils.endSession(true);
       
        // make sure entry was created
        entry = mgr.getWeblogEntry(id);
View Full Code Here

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

        assertNotNull(entry);
        assertEquals(testEntry, entry);
       
        // update a weblog entry
        entry.setTitle("testtest");
        mgr.saveWeblogEntry(entry);
        TestUtils.endSession(true);
       
        // make sure entry was updated
        entry = null;
        entry = mgr.getWeblogEntry(id);
View Full Code Here

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

       
        // make a couple changes
        entry2.setPinnedToMain(Boolean.TRUE);
        entry2.setUpdateTime(new java.sql.Timestamp(entry2.getUpdateTime().getTime()+8822384));
        entry2.setPubTime(entry2.getUpdateTime());
        mgr.saveWeblogEntry(entry2);
        entry3.setStatus(WeblogEntryData.DRAFT);
        entry3.setUpdateTime(new java.sql.Timestamp(entry3.getUpdateTime().getTime()+348829384));
        entry3.setPubTime(entry3.getUpdateTime());
        mgr.saveWeblogEntry(entry3);
       
View Full Code Here

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

        entry2.setPubTime(entry2.getUpdateTime());
        mgr.saveWeblogEntry(entry2);
        entry3.setStatus(WeblogEntryData.DRAFT);
        entry3.setUpdateTime(new java.sql.Timestamp(entry3.getUpdateTime().getTime()+348829384));
        entry3.setPubTime(entry3.getUpdateTime());
        mgr.saveWeblogEntry(entry3);
       
        TestUtils.endSession(true);
       
        log.debug("entry1 = "+entry1.getUpdateTime());
        log.debug("entry2 = "+entry2.getUpdateTime());
View Full Code Here

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

                        weblogMgr.getWeblogCategoryByPath(entry.getWebsite(), cat);
                entry.setCategory(cd);
            }
           
            // save the entry
            weblogMgr.saveWeblogEntry(entry);
            roller.flush();
           
            // notify cache
            flushPageCache(entry.getWebsite());
           
View Full Code Here

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

                // or we fall back to the default Blogger API category
                entry.setCategory(website.getBloggerCategory());
            }
           
            // save the entry
            weblogMgr.saveWeblogEntry(entry);
            roller.flush();
           
            // notify cache
            flushPageCache(entry.getWebsite());
           
View Full Code Here

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

        if (canEdit(website)) {
            // Save it and commit it
            WeblogManager mgr = mRoller.getWeblogManager();
            WeblogEntryData rollerEntry = createRollerEntry(website, entry);
            rollerEntry.setCreator(this.user);
            mgr.saveWeblogEntry(rollerEntry);   
            mRoller.flush();
           
            // Throttle one entry per second
            // (MySQL timestamp has 1 sec resolution, damnit)
            Thread.sleep(1000);
View Full Code Here

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

                rollerEntry.setText(rawUpdate.getText());
                rollerEntry.setStatus(rawUpdate.getStatus());
                rollerEntry.setCategory(rawUpdate.getCategory());
                rollerEntry.setTitle(rawUpdate.getTitle());
               
                mgr.saveWeblogEntry(rollerEntry);
                mRoller.flush();
               
                CacheManager.invalidate(rollerEntry.getWebsite());
                if (rollerEntry.isPublished()) {
                    mRoller.getIndexManager().addEntryReIndexOperation(rollerEntry);
View Full Code Here

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

                if(entry.getAnchor() == null || entry.getAnchor().trim().equals("")) {
                    entry.setAnchor(weblogMgr.createAnchor(entry));
                }

                mLogger.debug("Saving entry");
                weblogMgr.saveWeblogEntry(entry);
                RollerFactory.getRoller().flush();
               
                mLogger.debug("Populating form");
                form.copyFrom(entry, request.getLocale());
               
View Full Code Here

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

                } 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.