Package org.apache.roller.presentation

Examples of org.apache.roller.presentation.BasePageModel


       
                ActionMessages messages = new ActionMessages();
                messages.add(null, new ActionMessage("maintenance.message.indexed"));
                saveMessages(request, messages);
      }
            request.setAttribute("model", new BasePageModel(
                "maintenance.title", request, response, mapping));
        }
    catch (RollerException re)
    {
      mLogger.error("Unexpected exception",re.getRootCause());
View Full Code Here


                 ActionMessages messages = new ActionMessages();
                 messages.add(null, new ActionMessage("maintenance.message.flushed"));
                 saveMessages(request, messages);

            }
            request.setAttribute("model", new BasePageModel(
                "maintenance.title", request, response, mapping));
        }
        catch (Exception e)
        {
            throw new ServletException(e);
View Full Code Here

            throws IOException, ServletException {
       
        ActionForward forward = mapping.findForward("cacheInfo.page");
       
        try {
            BasePageModel pageModel = new BasePageModel(
                    "cacheInfo.title", request, response, mapping);
            request.setAttribute("model",pageModel);               
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rollerSession = RollerSession.getRollerSession(request);
            if (rollerSession.isGlobalAdminUser() ) {
View Full Code Here

            throws IOException, ServletException {
       
        ActionForward forward = mapping.findForward("cacheInfo.page");
       
        try {
            BasePageModel pageModel = new BasePageModel(
                    "cacheInfo.title", request, response, mapping);
            request.setAttribute("model",pageModel);               
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rollerSession = RollerSession.getRollerSession(request);
            if (rollerSession.isGlobalAdminUser() ) {
View Full Code Here

            request.setAttribute("state","edit");
               
            // Pass bookmark's Folder on as attribute.                
            parentFolder = bd.getFolder();

            request.setAttribute("model", new BasePageModel(
                "bookmarkForm.edit.title", request, response, mapping));
        }
        else if (null != request.getParameter("correct"))
        {
            // We are correcting a previously submtted form.
            request.setAttribute("state","correcting");
               
            // Folder is specified by request param, pass it on as attribute.                
            parentFolder = bmgr.getFolder(rreq.getFolder().getId());       
           
            request.setAttribute("model", new BasePageModel(
                "bookmarkForm.correct.title", request, response, mapping));
        }
        else
        {
            // We are adding a new bookmark
            request.setAttribute("state","add");
           
            // Folder is specified by request param, pass it on as attribute.                
            parentFolder = bmgr.getFolder(rreq.getFolder().getId());
           
            request.setAttribute("model", new BasePageModel(
                "bookmarkForm.add.title", request, response, mapping));
        }
       
        // Build folder path for display on page
        if (null != parentFolder)
View Full Code Here

            if (!isAuthorized(rreq, website))
            {
                return mapping.findForward("access-denied");
            }

            BasePageModel pageModel =
                    new BasePageModel("pings.title", req, res, mapping);
            req.setAttribute("model",pageModel);
       
            List commonPingTargets = pingTargetMgr.getCommonPingTargets();
            req.setAttribute("commonPingTargets", commonPingTargets);
View Full Code Here

        try
        {
            if (rreq.getWebsite() != null
                 && rollerSession.isUserAuthorizedToAuthor(rreq.getWebsite()) )
            {
                BasePageModel pageModel = new BasePageModel(
                        "referers.todaysReferers", req, res, mapping);
                req.setAttribute("model", pageModel);
                req.setAttribute("pageHits",
                    new Integer(refmgr.getDayHits(rreq.getWebsite())));
View Full Code Here

            FolderData fd = rreq.getFolder();
            form.copyFrom(fd, request.getLocale());
            parentFolder = fd.getParent();
           
            BasePageModel pageModel = new BasePageModel(
                "folderForm.add.title", request, response, mapping);
            pageModel.setWebsite(parentFolder.getWebsite());
            request.setAttribute("model", pageModel);
        }
        else if (null != request.getParameter("correct"))
        {
            // We are correcting a previously submtted form.
            request.setAttribute("state","correcting");
           
            String parentId = request.getParameter(RollerRequest.PARENTID_KEY);
            parentFolder = bmgr.getFolder(parentId);
           
            BasePageModel pageModel = new BasePageModel(
                "folderForm.correct.title", request, response, mapping);
            pageModel.setWebsite(parentFolder.getWebsite());
            request.setAttribute("model", pageModel);
        }
        else
        {
            // We are adding a new bookmark
            request.setAttribute("state","add");
           
            String parentId = request.getParameter(RollerRequest.PARENTID_KEY);
            parentFolder = bmgr.getFolder(parentId);
           
            BasePageModel pageModel = new BasePageModel(
                "folderForm.add.title", request, response, mapping);
            pageModel.setWebsite(parentFolder.getWebsite());
            request.setAttribute("model", pageModel);
        }
       
        request.setAttribute(RollerRequest.PARENTID_KEY, parentFolder.getId());
        request.setAttribute("parentFolder", parentFolder);
View Full Code Here

            RollerSession rses = RollerSession.getRollerSession(request);
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            WebsiteData website = rreq.getWebsite();
            if ( rses.isUserAuthorizedToAdmin(website) ) {
               
                BasePageModel pageModel = new BasePageModel(
                        "themeEditor.title", request, response, mapping);
                request.setAttribute("model",pageModel);         
                   
                // get users current theme and our themes list
                Roller roller = RollerFactory.getRoller();
View Full Code Here

                // get users current theme
                Roller roller = RollerFactory.getRoller();
                ThemeManager themeMgr = roller.getThemeManager();
               
                   
                BasePageModel pageModel = new BasePageModel(
                        "themeEditor.title", request, response, mapping);
                request.setAttribute("model",pageModel);         
                   
                String username = rses.getAuthenticatedUser().getUserName();
                String currentTheme = website.getEditorTheme();
View Full Code Here

TOP

Related Classes of org.apache.roller.presentation.BasePageModel

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.