Package org.apache.jetspeed.portalsite

Examples of org.apache.jetspeed.portalsite.PortalSiteRequestContext


        {
            public Object run()
            {
                try
                {
                    PortalSiteRequestContext requestContext = getMockPortalSiteRequestContext(user, locale, serverName);
                    return requestContext.getUserFolderPath();
                }
                catch (Exception e)
                {
                    return e;
                }
View Full Code Here


        {
            public Object run()
            {
                try
                {
                    PortalSiteRequestContext requestContext = getMockPortalSiteRequestContext(user, locale, serverName);
                    return requestContext.getBaseFolderPath();
                }
                catch (Exception e)
                {
                    return e;
                }
View Full Code Here

                locators = new HashMap();
                locators.put(ProfileLocator.PAGE_LOCATOR, locator);
            }              
            PortalSiteSessionContext sessionContext = (PortalSiteSessionContext)getSessionAttribute(ProfilerValveImpl.PORTAL_SITE_SESSION_CONTEXT_ATTR_KEY);
            String userPrincipal = ((getUserPrincipal() != null) ? getUserPrincipal().getName() : null);
            PortalSiteRequestContext requestContext = sessionContext.newRequestContext(locators, userPrincipal, true, true);
            BaseFragmentsElement managedPageOrTemplate = requestContext.getManagedPageOrTemplate();
            PageTemplate managedPageTemplate = requestContext.getManagedPageTemplate();
            Map managedFragmentDefinitions = requestContext.getManagedFragmentDefinitions();
            ContentPage cpage = pageLayoutComponent.newContentPage(managedPageOrTemplate, managedPageTemplate, managedFragmentDefinitions);
            //System.out.println("page is " + cpage.getPath());
            this.setPage(realPage);           
            this.setPath(pathSave);
            return cpage;
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.portalsite.PortalSiteRequestContext

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.