Package org.apache.jetspeed.container.state

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


            // get portlet navigational params
            HashMap navParameters = new HashMap();
            JetspeedRequestContext context = (JetspeedRequestContext) getAttribute("org.apache.jetspeed.request.RequestContext");
            if (context != null)
            {
                NavigationalState ns = context.getPortalURL().getNavigationalState();
                postAllowed = ns.getPortletWindowOfAction() != null || ns.getPortletWindowOfResource() != null;
                Iterator iter = ns.getParameterNames(portletWindow);
                while (iter.hasNext())
                {
                    String name = (String) iter.next();
                    String[] values = ns.getParameterValues(portletWindow, name);
                    navParameters.put(name, values);
                }
            }
           
            // now first merge the keys we have into one unique set
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

*/
public class CleanPathInfoEncodedNavStateFromPortalURLValve extends AbstractValve
{
    public void invoke(RequestContext request, ValveContext context) throws PipelineException
    {
        NavigationalState state = request.getPortalURL().getNavigationalState();
        PortalURL portalURL = request.getPortalURL();

        Boolean desktopEnabled = (Boolean) request.getAttribute(JetspeedDesktop.DESKTOP_ENABLED_REQUEST_ATTRIBUTE);

        if (request.getRequest().getMethod().equals("GET") && portalURL.hasEncodedNavState()
                && portalURL.isPathInfoEncodingNavState() && state.isNavigationalParameterStateFull()
                && state.isRenderParameterStateFull() && state.getPortletWindowOfAction() == null
                && state.getPortletWindowOfResource() == null
                && (desktopEnabled == null || desktopEnabled.booleanValue() == false))
        {
            try
            {
                StringBuffer location = new StringBuffer(request.getPortalURL().getBasePath());
View Full Code Here

     */
    public WindowState getWindowState() throws Exception
    {
        try
        {
            NavigationalState nav = getRequestContext().getPortalURL().getNavigationalState();
            return nav.getState(windowAccess.getPortletWindow(getCurrentFragment()));
        }
        catch (Exception e)
        {
            handleError(e, e.toString(), getCurrentFragment());
            return null;
View Full Code Here

     */
    public WindowState getMappedWindowState() throws Exception
    {
        try
        {
            NavigationalState nav = getRequestContext().getPortalURL().getNavigationalState();
            return nav.getMappedState(windowAccess.getPortletWindow(getCurrentFragment()));
        }
        catch (Exception e)
        {
            handleError(e, e.toString(), getCurrentFragment());
            return null;
View Full Code Here

     * @throws Exception
     */
    public PortletMode getPortletMode() throws Exception
    {

        NavigationalState nav = getRequestContext().getPortalURL().getNavigationalState();
        try
        {
            return nav.getMode(windowAccess.getPortletWindow(getCurrentFragment()));
        }
        catch (FailedToRetrievePortletWindow e)
        {
            handleError(e, e.toString(), getCurrentFragment());
            return null;
View Full Code Here

     * @throws Exception
     */
    public PortletMode getMappedPortletMode() throws Exception
    {

        NavigationalState nav = getRequestContext().getPortalURL().getNavigationalState();
        try
        {
            return nav.getMappedMode(windowAccess.getPortletWindow(getCurrentFragment()));
        }
        catch (FailedToRetrievePortletWindow e)
        {
            handleError(e, e.toString(), getCurrentFragment());
            return null;
View Full Code Here

        if (root == null)
        {
            throw new JetspeedException("No root ContentFragment found in ContentPage");
        }
        // 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.setAttribute( PortalReservedParameters.HEADER_NAMED_RESOURCE_REGISTRY_ATTRIBUTE, getHeaderResourceRegistry() );
        }
       
        // handle maximized state
        boolean atLeastOneHasHeaderPhase = false;
        NavigationalState nav = context.getPortalURL().getNavigationalState();
        PortletWindow window = nav.getMaximizedWindow();
        if ( null != window )
        {
            ContentFragment maxedContentFragment = page.getContentFragmentById( window.getId().toString() );
            if ( maxedContentFragment != null )
            {
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.