Examples of WebsiteData


Examples of org.apache.roller.pojos.WebsiteData

       
        // request appears to be valid, lets render
        try {
            UserManager userMgr = RollerFactory.getRoller().getUserManager();
           
            WebsiteData website = null;
            if (request.getAttribute(RollerRequest.OWNING_WEBSITE) != null)
            {
                UserData user = (UserData)
                    request.getAttribute(RollerRequest.OWNING_WEBSITE);
            }
            else
            {
                website = rreq.getWebsite();
            }
           
            // construct a temporary Website object for this request
            // and set the EditorTheme to our previewTheme
            WebsiteData tmpWebsite = new WebsiteData();
            tmpWebsite.setData(website);
            if(previewTheme != null)
                tmpWebsite.setEditorTheme(previewTheme.getName());
            else
                tmpWebsite.setEditorTheme(Theme.CUSTOM);
           
            org.apache.roller.pojos.Template page = null;
           
            page = tmpWebsite.getDefaultPage();
           
            // Still no page ID ... probably someone with no templates
            // trying to preview a "custom" theme
            if ( page == null ) {
                // lets just call it a 404 and return
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.