Package org.apache.roller.presentation.forms

Examples of org.apache.roller.presentation.forms.WeblogTemplateForm


            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rses = RollerSession.getRollerSession(request);
            WebsiteData website = rreq.getWebsite();
            if ( rses.isUserAuthorizedToAdmin(website) )
            {
                WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
                WeblogTemplate data = new WeblogTemplate();
                form.copyTo(data, request.getLocale());
                data.setWebsite(website);
                data.setLastModified( new java.util.Date() );
                data.setDescription("");
                data.setContents("");
                validateLink( data );
View Full Code Here


                BasePageModel pageModel = new BasePageModel(
                    "pageForm.title", request, response, mapping);
                pageModel.setWebsite(pd.getWebsite());
                request.setAttribute("model", pageModel);
               
                WeblogTemplateForm pf = (WeblogTemplateForm)actionForm;
                pf.copyFrom(pd, request.getLocale());
               
                addModelObjects(request, response, mapping, pd.getWebsite());
            }
            else
            {
View Full Code Here

        throws IOException, ServletException
    {
        ActionForward forward = mapping.findForward("editPages.page");
        try
        {
            WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rses = RollerSession.getRollerSession(request);
            request.setAttribute("model", new BasePageModel(
                "pagesForm.title", request, response, mapping));
           
            WebsiteData website = rreq.getWebsite();
            if (website == null && form.getId()!=null)
            {
                UserManager mgr = RollerFactory.getRoller().getUserManager();               
                WeblogTemplate template = mgr.getPage(form.getId());
                website = template.getWebsite();
            }
           
            if ( rses.isUserAuthorizedToAdmin(website))
            {
View Full Code Here

        request.setAttribute("model", new BasePageModel(
            "pagesForm.title", request, response, mapping));
        try
        {
            UserManager mgr = RollerFactory.getRoller().getUserManager();
            WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
            WeblogTemplate template = mgr.getPage(form.getId());
            WebsiteData website = template.getWebsite();
           
            RollerSession rses = RollerSession.getRollerSession(request);         
            if ( rses.isUserAuthorizedToAdmin(website) )
            {
View Full Code Here

            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());
               
                BasePageModel pageModel = new BasePageModel(
                    "editPages.title.removeOK", request, response, mapping);
View Full Code Here

    {
        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 java.util.Date() );

                validateLink( data );

                mgr.savePage( data );
View Full Code Here

TOP

Related Classes of org.apache.roller.presentation.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.