Package org.apache.jetspeed.container.state

Examples of org.apache.jetspeed.container.state.NavigationalState


       

        ///////////////////////////////////////////////////////////////////////////////////////////////
        ContentDispatcher dispatcher = renderer.getDispatcher(context, true);
        // handle maximized state
        NavigationalState nav = context.getPortalURL().getNavigationalState();
        PortletWindow window = nav.getMaximizedWindow();
        if (null != window)
        {
            renderMaximizedWindow(context, page, root, window);
        }
        else
View Full Code Here


        return responseMimeTypes.iterator();
     }

     public PortletMode getPortletMode(PortletWindow portletWindow)
     {
         NavigationalState navState = context.getPortalURL().getNavigationalState();
         return navState.getMode(portletWindow);
     }
View Full Code Here

         return navState.getMode(portletWindow);
     }

     public WindowState getWindowState(PortletWindow portletWindow)
     {
         NavigationalState navState = context.getPortalURL().getNavigationalState();        
         return navState.getState(portletWindow);
     }
View Full Code Here

     * @throws PortletEntityNotStoredException
     */
    protected PortletMode getPortletMode(RequestContext requestContext, ContentFragment fragment)
            throws FailedToRetrievePortletWindow, PortletEntityNotStoredException
    {
        NavigationalState nav = requestContext.getPortalURL().getNavigationalState();
        return nav.getMode(windowAccessor.getPortletWindow(fragment));
    }
View Full Code Here

     * @throws FailedToRetrievePortletWindow
     * @throws Exception
     */
    protected WindowState getWindowState(RequestContext requestContext, ContentFragment fragment) throws FailedToRetrievePortletWindow, PortletEntityNotStoredException
    {
        NavigationalState nav = requestContext.getPortalURL().getNavigationalState();
        return nav.getState(windowAccessor.getPortletWindow(fragment));   
    }
View Full Code Here

        contentServer.prepareContentPaths(context, page);

        ///////////////////////////////////////////////////////////////////////////////////////////////
        ContentDispatcher dispatcher = renderer.getDispatcher(context, (strategy == STRATEGY_PARALLEL));
        // handle maximized state
        NavigationalState nav = context.getPortalURL().getNavigationalState();
        PortletWindow window = nav.getMaximizedWindow();
        if (null != window)
        {
            renderMaximizedWindow(context, page, root, window);
        }
        else
View Full Code Here

       
        context = new JetspeedRequestContext(request, response, config, null );
               
        url = component.createURL(context.getRequest(), context.getCharacterEncoding());
        context.setPortalURL(url);
        NavigationalState nav = url.getNavigationalState();

        // Check that they come out correctly
        assertTrue("window mode is not set", nav.getMode(window).equals(PortletMode.EDIT));
        assertTrue("window state is not set", nav.getState(window).equals(WindowState.MAXIMIZED));
        PortletWindow target = nav.getPortletWindowOfAction();
        assertNotNull("target window is null", target);
        assertEquals("target window should equal window 111", target.getId(), "111");

        PortletWindow maximizedWindow = nav.getMaximizedWindow();
        assertNotNull("maximized window is null", maximizedWindow);
        assertEquals("maximized window should equal window 111", maximizedWindow.getId(), "111");

        Iterator iter = nav.getParameterNames(target);
        int parameterCount = 0;
        assertTrue("There should be one parameter",iter.hasNext());
        while ( iter.hasNext() ) {
            assertEquals("parameter name should equals \"test\"", (String)iter.next(), "test");
            String[] values = nav.getParameterValues(target,"test");
            assertNotNull("parameter name has no values", values);
            assertEquals("parameter test should have 3 values", values.length, 3);
            assertEquals("parameter test[0] should be \"one\"", values[0], "one");
            assertEquals("parameter test[1] should be \"two\"", values[1], "two");
            assertEquals("parameter test[2] should be \"three\"", values[2], "three");
View Full Code Here

        return responseMimeTypes.iterator();
     }

     public PortletMode getPortletMode(PortletWindow portletWindow)
     {
         NavigationalState navState = context.getPortalURL().getNavigationalState();
         return navState.getMode(portletWindow);
     }
View Full Code Here

         return navState.getMode(portletWindow);
     }

     public WindowState getWindowState(PortletWindow portletWindow)
     {
         NavigationalState navState = context.getPortalURL().getNavigationalState();        
         return navState.getState(portletWindow);
     }
View Full Code Here

        }

        ///////////////////////////////////////////////////////////////////////////////////////////////
        ContentDispatcher dispatcher = renderer.getDispatcher(context, (strategy == STRATEGY_PARALLEL));
        // handle maximized state
        NavigationalState nav = context.getPortalURL().getNavigationalState();
        PortletWindow window = nav.getMaximizedWindow();
        if (null != window)
        {
            renderMaximizedWindow(context, page, root, window);
        }
        else
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.container.state.NavigationalState

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.