Examples of saveWebsite()


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

            List weblogs12 = mgr.getWebsites(TestUtils.getManagedUser(testUser), Boolean.TRUE, Boolean.TRUE, null, null, 1, 1);
            assertEquals(1, weblogs12.size());
           
            // make sure disabled weblogs are not returned
            weblog.setEnabled(Boolean.FALSE);
            mgr.saveWebsite(weblog);
            TestUtils.endSession(true);
            List weblogs2 = mgr.getWebsites(TestUtils.getManagedUser(testUser), Boolean.TRUE, Boolean.TRUE, null, null, 0, -1);
            assertEquals(1, weblogs2.size());
            weblog = (Weblog) weblogs2.get(0);
            assertNotNull(weblog);
View Full Code Here

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

            weblog = (Weblog) weblogs2.get(0);
            assertNotNull(weblog);
           
            // make sure inactive weblogs are not returned
            weblog.setActive(Boolean.FALSE);
            mgr.saveWebsite(weblog);
            TestUtils.endSession(true);
            List weblogs3 = mgr.getWebsites(TestUtils.getManagedUser(testUser), Boolean.TRUE, Boolean.TRUE, null, null, 0, -1);
            assertEquals(0, weblogs3.size());
           
        } catch(Throwable t) {
View Full Code Here

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

            if(!weblog.isShowAllLangs() && !weblog.isEnableMultiLang()) {
                weblog.setEnableMultiLang(true);
            }
           
            // save config
            umgr.saveWebsite(weblog);
           
            // ROL-1050: apply comment defaults to existing entries
            if(getBean().getApplyCommentDefaults()) {
                wmgr.applyCommentDefaultsToEntries(weblog);
            }
View Full Code Here

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

       
        UserManager umgr = WebloggerFactory.getWeblogger().getUserManager();
        testWeblog = TestUtils.getManagedWebsite(testWeblog);
        origWords = testWeblog.getBlacklist();
        testWeblog.setBlacklist("test");
        umgr.saveWebsite(testWeblog);
        TestUtils.endSession(true);
       
        testWeblog = TestUtils.getManagedWebsite(testWeblog);
        rmgr.applyRefererFilters(testWeblog);
        TestUtils.endSession(true);
View Full Code Here

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

            // always update this weblog's theme and customStylesheet, then save
            website.setEditorTheme(WeblogTheme.CUSTOM);
            if(theme.getStylesheet() != null) {
                website.setCustomStylesheetPath(theme.getStylesheet().getLink());
            }
            userMgr.saveWebsite(website);
           
           
            // now lets import all the theme resources
            FileManager fileMgr = roller.getFileManager();
           
View Full Code Here

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

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

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

                    weblog.setEditorTheme(WeblogTheme.CUSTOM);
                    log.debug("Saving custom theme for weblog "+weblog.getHandle());
                   
                    // save updated weblog and flush
                    UserManager userMgr = WebloggerFactory.getWeblogger().getUserManager();
                    userMgr.saveWebsite(weblog);
                    WebloggerFactory.getWeblogger().flush();
                   
                    // make sure to flush the page cache so ppl can see the change
                    CacheManager.invalidate(weblog);
                   
View Full Code Here

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

                weblog.setEditorTheme(getThemeId());
                log.debug("Saving theme "+getThemeId()+" for weblog "+weblog.getHandle());
               
                // save updated weblog and flush
                UserManager userMgr = WebloggerFactory.getWeblogger().getUserManager();
                userMgr.saveWebsite(weblog);
                WebloggerFactory.getWeblogger().flush();
               
                // make sure to flush the page cache so ppl can see the change
                CacheManager.invalidate(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.