Package org.apache.roller.presentation

Examples of org.apache.roller.presentation.BasePageModel


    {
        ActionForward forward = mapping.findForward(VIEW_PAGE);
        RollerRequest rreq = RollerRequest.getRollerRequest(req);
        try
        {
            BasePageModel pageModel =
                new BasePageModel(getPingTargetsTitle(), req, res, mapping);
            req.setAttribute("model",pageModel);           
            if (!hasRequiredRights(rreq, rreq.getWebsite()))
            {
                return mapping.findForward(ACCESS_DENIED_PAGE);
            }
View Full Code Here


        PingTargetManager pingTargetMgr =
                RollerFactory.getRoller().getPingTargetManager();
        PingTargetForm pingTargetForm = (PingTargetForm) form;
        try
        {
            BasePageModel pageModel =
                new BasePageModel(getPingTargetEditTitle(), req, res, mapping);
            req.setAttribute("model",pageModel);           
            if (!hasRequiredRights(rreq, rreq.getWebsite()))
            {
                return mapping.findForward(ACCESS_DENIED_PAGE);
            }
View Full Code Here

     */
    public ActionForward addNew(ActionMapping mapping, ActionForm form,
                                HttpServletRequest req, HttpServletResponse res)
        throws Exception
    {
        BasePageModel pageModel =
            new BasePageModel(getPingTargetEditTitle(), req, res, mapping);
        req.setAttribute("model",pageModel);           
        return mapping.findForward(PING_TARGET_EDIT_PAGE);
    }
View Full Code Here

    {
        ActionForward forward = mapping.findForward(PING_TARGET_EDIT_PAGE);
        RollerRequest rreq = RollerRequest.getRollerRequest(req);
        try
        {
            BasePageModel pageModel =
                new BasePageModel(getPingTargetEditTitle(), req, res, mapping);
            req.setAttribute("model",pageModel);           
            if (!hasRequiredRights(rreq, rreq.getWebsite()))
            {
                return mapping.findForward(ACCESS_DENIED_PAGE);
            }
View Full Code Here

    {
        ActionForward forward = mapping.findForward(PING_TARGET_DELETE_PAGE);
        RollerRequest rreq = RollerRequest.getRollerRequest(req);
        try
        {
            BasePageModel pageModel = new BasePageModel(
                    getPingTargetDeleteOKTitle(), req, res, mapping);
            req.setAttribute("model",pageModel);           
            if (!hasRequiredRights(rreq, rreq.getWebsite()))
            {
                return mapping.findForward(ACCESS_DENIED_PAGE);
View Full Code Here

    Hashtable params = new Hashtable();
    RollerRequest rreq = RollerRequest.getRollerRequest(req);
    try
    {
            WebsiteData website = rreq.getWebsite();
            BasePageModel pageModel = (BasePageModel)req.getAttribute("model");
            if (website == null && pageModel != null)
            {
                website = pageModel.getWebsite();             
            }
            if (website != null)
            {
                params.put(RollerRequest.WEBLOG_KEY, website.getHandle());
            }
View Full Code Here

        {
            UserData user = null;
            if (rses != null) user = rses.getAuthenticatedUser();
           
            WebsiteData website = rreq.getWebsite();
            BasePageModel pageModel = (BasePageModel)req.getAttribute("model");
            if (pageModel != null)
            {
                website = pageModel.getWebsite();
            }           
           
            PermissionsData permsData = null;
            if (user != null && website != null)
            {
View Full Code Here

            form.copyFrom(ud, request.getLocale());
            form.setPasswordText(null);
            form.setPasswordConfirm(null);
            form.setLocale(ud.getLocale());
            form.setTimeZone(ud.getTimeZone());
            request.setAttribute("model", new BasePageModel(
                "yourProfile.title", request, response, mapping));
        }
        catch (Exception e)
        {
            mLogger.error("ERROR in action",e);
View Full Code Here

                // save the updated profile
                UserManager mgr = RollerFactory.getRoller().getUserManager();
                mgr.saveUser(data);
                RollerFactory.getRoller().flush();

                request.setAttribute("model", new BasePageModel(
                        "yourProfile.title", request, response, mapping));
               
                saveMessages(request, msgs);
            }
            else
View Full Code Here

      ActionForm          actionForm,
      HttpServletRequest  request,
      HttpServletResponse response)
      throws ServletException
  {
        request.setAttribute("model", new BasePageModel(
           "maintenance.title", request, response, mapping));
    return mapping.findForward("maintenance.page");
  }
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.