Examples of saveWebsite()


Examples of org.apache.roller.model.UserManager.saveWebsite()

                        String username = rses.getAuthenticatedUser().getUserName();
                       
                        website.setEditorTheme(newTheme);
                       
                        UserManager userMgr = RollerFactory.getRoller().getUserManager();
                        userMgr.saveWebsite(website);
                        RollerFactory.getRoller().flush();
                       
                        mLogger.debug("Saved theme "+newTheme+" for "+username);
                       
                        // make sure to flush the page cache so ppl can see the change
View Full Code Here

Examples of org.apache.roller.model.UserManager.saveWebsite()

                log.debug("Setting default day page to "+dayTemplate.getId());
                website.setWeblogDayPageId(dayTemplate.getId());
            }
           
            // save our updated website
            userMgr.saveWebsite(website);
           
        } catch (Exception e) {
            log.error("ERROR in action",e);
            throw new RollerException( e );
        }      
View Full Code Here

Examples of org.apache.roller.model.UserManager.saveWebsite()

            wd.setEmailAddress(entry.getEmailAddress());
        }
       
        try {
            UserManager mgr = getRoller().getUserManager();
            mgr.saveWebsite(wd);
            getRoller().flush();           
            CacheManager.invalidate(wd);
        } catch (RollerException re) {
            throw new InternalException("ERROR: Could not update website data", re);
        }
View Full Code Here

Examples of org.apache.roller.model.UserManager.saveWebsite()

                        wd.setAllowComments(Boolean.FALSE);
                        messages.add(null, new ActionMessage(
                            "websiteSettings.commentsOffForInactiveWeblog"));
                    }
                                       
                    umgr.saveWebsite(wd)
                   
                    // ROL-1050: apply comment defaults to existing entries
                    if (form.getApplyCommentDefaults() != null && form.getApplyCommentDefaults().booleanValue()) {
                        wmgr.applyCommentDefaultsToEntries(wd);
                    }
View Full Code Here

Examples of org.apache.roller.model.UserManager.saveWebsite()

                        log.debug("expiring"+weblog.getHandle());
                       
                        // to expire weblog content we have to update the
                        // last modified time of the weblog and save it
                        weblog.setLastModified(now);
                        uMgr.saveWebsite(weblog);
                       
                    } catch (RollerException ex) {
                        log.warn("couldn't lookup entry "+websiteid);
                    }
                }
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.saveWebsite()

           
            // some caches are based on weblog last-modified, so update it
            weblog.setLastModified(new Date());
           
            UserManager umgr = WebloggerFactory.getWeblogger().getUserManager();
            umgr.saveWebsite(weblog);
            WebloggerFactory.getWeblogger().flush();
           
            // also notify cache manager
            CacheManager.invalidate(weblog);
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.saveWebsite()

           
            // if this person happened to create a Weblog template from
            // scratch then make sure and set the defaultPageId
            if(WeblogTemplate.DEFAULT_PAGE.equals(newTemplate.getName())) {
                getActionWeblog().setDefaultPageId(newTemplate.getId());
                mgr.saveWebsite(getActionWeblog());
            }
           
            // flush results to db
            WebloggerFactory.getWeblogger().flush();
           
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.saveWebsite()

            assertNotNull(weblog);
            assertEquals(testWeblog, weblog);

            // modify weblog and save
            weblog.setName("testtesttest");
            mgr.saveWebsite(weblog);
            TestUtils.endSession(true);

            // make sure changes were saved
            weblog = null;
            weblog = mgr.getWebsite(id);
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.saveWebsite()

            assertNotNull(weblog);
            assertEquals(testWeblog1.getHandle(), weblog.getHandle());
           
            // make sure disable weblogs are not returned
            weblog.setEnabled(Boolean.FALSE);
            mgr.saveWebsite(weblog);
            TestUtils.endSession(true);
            weblog = null;
            weblog = mgr.getWebsiteByHandle(testWeblog1.getHandle());
            assertNull(weblog);
           
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.saveWebsite()

            assertNull(weblog);
           
            // restore enabled state
            weblog = mgr.getWebsiteByHandle(testWeblog1.getHandle(), Boolean.FALSE);
            weblog.setEnabled(Boolean.TRUE);
            mgr.saveWebsite(weblog);
            TestUtils.endSession(true);
            weblog = null;
            weblog = mgr.getWebsiteByHandle(testWeblog1.getHandle());
            assertNotNull(weblog);
           
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.