Package org.apache.jetspeed.om.page

Examples of org.apache.jetspeed.om.page.ContentPageImpl


    public static RequestContext buildFullRequestContext()
    {
        // Build a request object and populate it with fragments
        RequestContext a_oRC = setupRequestContext("remove", "1234", "0", "0");

        ContentPage a_oContentPage = new ContentPageImpl(setupPage());
        a_oRC.setPage(a_oContentPage);

        return a_oRC;
    }
View Full Code Here


                config, null);
       
        a_oRC.setSubject(new Subject());
       
        Page a_oPage = setupPage();
        ContentPage a_oContentPage = new ContentPageImpl(a_oPage);

        a_oRC.setPage(a_oContentPage);

        return a_oRC;
    }
View Full Code Here

                    try {
                        PageManager pageManager =
                            (PageManager) engine.getComponentManager().getComponent(PageManager.class);
                        Page page = pageManager.getPage(testPage);
                        assertNotNull(page);
                        requestContext.setPage(new ContentPageImpl(page));

                        if (!isParallelMode) {
                            pageAggregator.build(requestContext);
                        } else {
                            asyncPageAggregator.build(requestContext);
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.jetspeed.page.PageManager#getContentPage(java.lang.String)
     */
    public ContentPage getContentPage(String path) throws PageNotFoundException, NodeException
    {       
        return new ContentPageImpl(getPage(path));
    }
View Full Code Here

     * @see org.apache.jetspeed.page.PageManager#getContentPage(java.lang.String)
     */
    public ContentPage getContentPage(String path) throws PageNotFoundException, NodeException
    {
        // return proxied page
        return new ContentPageImpl(getPage(path));
    }
View Full Code Here

                // user site view using the request context locators;
                // the managed page accesed here is the raw selected page
                // as returned by the PageManager component; accessing
                // the managed page here selects the current page for the
                // request
                request.setPage(new ContentPageImpl(requestContext.getManagedPage()));
                request.setProfileLocators(requestContext.getLocators());
               
                request.setAttribute(PortalReservedParameters.PAGE_EDIT_ACCESS_ATTRIBUTE,getPageActionAccess(request));               
            }
View Full Code Here

                this.pageManager.createUserHomePagesFromRoles(context.getSubject());
                page = this.pageManager.getPage(Folder.USER_FOLDER
                                                + context.getRequest().getUserPrincipal().getName()
                                                + Folder.PATH_SEPARATOR
                                                + Folder.FALLBACK_DEFAULT_PAGE);                
                context.setPage(new ContentPageImpl(page));
                context.getRequest().getSession().removeAttribute(ProfilerValveImpl.PORTAL_SITE_SESSION_CONTEXT_ATTR_KEY);               
            }           
        }
        catch (Exception e)
        {
View Full Code Here

        a_oLocalLayout.addFragment(a_oFrag4);
        a_oLocalLayout.addFragment(a_oFrag5);

        Page a_oPage = new PageImpl();
        a_oPage.setRootFragment(a_oLayout);
        ContentPage a_oContentPage = new ContentPageImpl(a_oPage);
        a_oRC.setPage(a_oContentPage);

        return a_oRC;
    }
View Full Code Here

        RequestContext a_oRC = new JetspeedRequestContext(request, response,
                config, null);

        Page a_oPage = setupPage();
        ContentPage a_oContentPage = new ContentPageImpl(a_oPage);

        a_oRC.setPage(a_oContentPage);

        return a_oRC;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.jetspeed.page.PageManager#getContentPage(java.lang.String)
     */
    public ContentPage getContentPage(String path) throws PageNotFoundException, NodeException
    {       
        return new ContentPageImpl(getPage(path));
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.page.ContentPageImpl

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.