Package org.apache.roller.weblogger.business

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


            // make sure test weblog does not exist
            weblog = mgr.getWebsiteByHandle(testWeblog.getHandle());
            assertNull(weblog);

            // add test weblog
            mgr.addWebsite(testWeblog);
            String id = testWeblog.getId();
            TestUtils.endSession(true);

            // make sure test weblog exists
            weblog = null;
View Full Code Here


        testWeblog.setDateCreated(new java.util.Date());
        testWeblog.setCreator(creator);
       
        // add weblog
        UserManager mgr = WebloggerFactory.getWeblogger().getUserManager();
        mgr.addWebsite(testWeblog);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
       
        // query for the new weblog and return it
View Full Code Here

                    wd.setEditorPage(defs[0]);
                } catch (Exception ex) {
                    log.error("ERROR setting default editor page for weblog", ex);
                }
               
                mgr.addWebsite(wd);
                getRoller().flush();
                CacheManager.invalidate(wd);
                websiteDatas.add(wd);
            }
           
View Full Code Here

            wd.setEditorPage(defs[0]);
           
            try {
                // add weblog and flush
                UserManager mgr = WebloggerFactory.getWeblogger().getUserManager();
                mgr.addWebsite(wd);
                WebloggerFactory.getWeblogger().flush();
               
                // tell the user their weblog was created
                addMessage("createWebsite.created", getBean().getHandle());
               
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.