Package org.apache.jetspeed.velocity

Examples of org.apache.jetspeed.velocity.PageActionAccess


        }
        ContentPage page = requestContext.getPage();
        Theme theme = decorationFactory.getTheme(page, requestContext);
        requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_ATTRIBUTE, theme);
       
        PageActionAccess pageActionAccess = getPageActionAccess(requestContext, page);
       
        ContentFragment rootFragment = page.getRootContentFragment();
       
        initFragment(requestContext, theme, rootFragment, pageActionAccess);
       
View Full Code Here


    protected PageActionAccess getPageActionAccess(RequestContext requestContext, Page page)
    {
        String key = page.getId();
        boolean loggedOn = isLoggedOn(requestContext);
        boolean anonymous = !loggedOn;
        PageActionAccess pageActionAccess = null;

  
        Map sessionActions = (Map) requestContext.getSessionAttribute(JetspeedPowerToolImpl.POWER_TOOL_SESSION_ACTIONS);
        if (sessionActions == null)
        {
            sessionActions = new HashMap();
            requestContext.setSessionAttribute(JetspeedPowerToolImpl.POWER_TOOL_SESSION_ACTIONS, sessionActions);
        }
        else
        {
            pageActionAccess = (PageActionAccess) sessionActions.get(key);
        }
        if (pageActionAccess == null)
        {
            pageActionAccess = new PageActionAccess(anonymous, page);
            sessionActions.put(key, pageActionAccess);
        }
        else
        {
            pageActionAccess.checkReset(loggedOn, page);
        }
       
       
        return pageActionAccess;
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.velocity.PageActionAccess

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.