Package org.apache.roller.ui.authoring.struts.forms

Examples of org.apache.roller.ui.authoring.struts.forms.WeblogTemplateForm


            RollerSession rses = RollerSession.getRollerSession(request);
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            WeblogTemplate page = (WeblogTemplate) rreq.getPage();
            WebsiteData website = page.getWebsite();
            if ( rses.isUserAuthorizedToAdmin(website) ) {
                WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
                form.copyFrom(page, request.getLocale());
               
                addModelObjects(request, response, mapping, page.getWebsite(), page);
               
                BasePageModel pageModel = new BasePageModel(
                        "editPages.title.removeOK", request, response, mapping);
View Full Code Here


            HttpServletResponse response)
            throws IOException, ServletException {
        ActionForward forward = mapping.findForward("editPage.page");
        try {
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
            UserManager mgr = RollerFactory.getRoller().getUserManager();
            WeblogTemplate data = mgr.getPage(form.getId());
            WebsiteData website = data.getWebsite();
           
            RollerSession rses = RollerSession.getRollerSession(request);
            if (rses.isUserAuthorizedToAdmin(website)) {
                form.copyTo(data, request.getLocale());
                data.setLastModified( new Date() );
               
                validateLink( data );
               
                mgr.savePage( data );
View Full Code Here

TOP

Related Classes of org.apache.roller.ui.authoring.struts.forms.WeblogTemplateForm

Copyright © 2018 www.massapicom. 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.