Package org.apache.roller.presentation

Examples of org.apache.roller.presentation.RollerSession


        ActionMapping mapping,
        WebsiteData website)
    throws RollerException
    {            
        UserManager mgr = RollerFactory.getRoller().getUserManager();       
        RollerSession rses = RollerSession.getRollerSession(request);
        RollerRequest rreq = RollerRequest.getRollerRequest(request);
               
        UserData user = rses.getAuthenticatedUser();
        request.setAttribute("user", user);

        WebsiteData wd = rreq.getWebsite();
        request.setAttribute("website", website);
View Full Code Here


            return mapping.findForward("access-denied");
        }
           
        BasePageModel pageModel = new BasePageModel(
            "inviteMember.title", request, response, mapping);       
        RollerSession rses = RollerSession.getRollerSession(request);
       
        // Ensure use has admin perms for this weblog
        if (pageModel.getWebsite() != null && rses.isUserAuthorizedToAdmin(pageModel.getWebsite())) {               
            request.setAttribute("model", pageModel);       
            InviteMemberForm form = (InviteMemberForm)actionForm;
            form.setWebsiteId(pageModel.getWebsite().getId());
            ActionForward forward = mapping.findForward("inviteMember.page");
            return forward;
View Full Code Here

        UserManager umgr = RollerFactory.getRoller().getUserManager();
        UserData user = umgr.getUserByUsername(form.getUserName());
       
        BasePageModel pageModel = new BasePageModel(
            "inviteMember.title", request, response, mapping);             
        RollerSession rses = RollerSession.getRollerSession(request);
       
        // Ensure use has admin perms for this weblog
        if (pageModel.getWebsite() != null && rses.isUserAuthorizedToAdmin(pageModel.getWebsite())) {
                      
            if (user == null)
            {
                errors.add(ActionErrors.GLOBAL_ERROR,
                    new ActionError("inviteMember.error.userNotFound"));
View Full Code Here

            throws Exception
    {
         ActionForward forward = mapping.findForward("createWebsite.page");
        CreateWebsiteForm form = (CreateWebsiteForm)actionForm;
       
        RollerSession rses = RollerSession.getRollerSession(request);
        UserData user = rses.getAuthenticatedUser();       
        form.setLocale(user.getLocale());
        form.setTimeZone(user.getTimeZone());        
        form.setEmailAddress(user.getEmailAddress());

        if (!RollerConfig.getBooleanProperty("groupblogging.enabled")) {
View Full Code Here

TOP

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

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.