Package org.apache.jetspeed.container.state

Examples of org.apache.jetspeed.container.state.MutableNavigationalState.sync()


        state = nav.getState(window);
        
        if (isMinimized(data))
        {
            nav.setState(window, WindowState.MINIMIZED);
            nav.sync(context);
            return;           
        }
       
       
        String action = data.getAction();
View Full Code Here


        else
        {           
            if (targeted && action.equals(J1_HELP_ACTION))
            {
                nav.setMode(window, PortletMode.HELP);
                nav.sync(context);           
                return;
            }
            if (targeted && action.equals(J1_RESTORE_ACTION))
            {
                nav.setMode(window, PortletMode.VIEW);
View Full Code Here

            }
            if (targeted && action.equals(J1_RESTORE_ACTION))
            {
                nav.setMode(window, PortletMode.VIEW);
                nav.setState(window, WindowState.NORMAL);
                nav.sync(context);           
                return;
            }
            if (targeted && action.equals(J1_EDIT_ACTION))
            {
                nav.setMode(window, PortletMode.EDIT);
View Full Code Here

                return;
            }
            if (targeted && action.equals(J1_EDIT_ACTION))
            {
                nav.setMode(window, PortletMode.EDIT);
                nav.sync(context);           
                return;
            }
           
            switch (mode)
            {
View Full Code Here

                break;               
            }
             
            if (syncRequired)
            {
                nav.sync(context);
            }
        }
    }
   
    public boolean providesCustomization()
View Full Code Here

                }
                if (portletMode != null)
                {
                    navState.setMode(portletWindow, new PortletMode(portletMode));
                }
                navState.sync(requestContext);                               
            }
           

            if (checkAccess(requestContext, JetspeedActions.EDIT))
            {
View Full Code Here

                {
                    // target window doesn't exists anymore or the target page is not accessible (anymore)
                    // remove any navigational state for the window
                    state.removeState(window);
                }
                state.sync(request);
                if (redirect)
                {
                    // target page doesn't contain (anymore) the targeted windowOfAction
                    // this can also occur when a session is expired and the target page isn't accessible for the anonymous user
                    // Redirect the user back to the target page (with possibly retaining the other windows navigational state).
View Full Code Here

                }
                if (portletMode != null)
                {
                    navState.setMode(portletWindow, new PortletMode(portletMode));
                }
                navState.sync(requestContext);                               
            }
           

            if (checkAccess(requestContext, JetspeedActions.EDIT))
            {
View Full Code Here

                {
                    // target window doesn't exists anymore or the target page is not accessible (anymore)
                    // remove any navigational state for the window
                    state.removeState(window);
                }
                state.sync(request);
                if (redirect)
                {
                    // target page doesn't contain (anymore) the targeted windowOfAction
                    // this can also occur when a session is expired and the target page isn't accessible for the anonymous user
                    // Redirect the user back to the target page (with possibly retaining the other windows navigational state).
View Full Code Here

                    MutableNavigationalState state = (MutableNavigationalState) request.getPortalURL().getNavigationalState();
                   
                    if (state != null)
                    {
                        state.removeState(actionWindow);
                        state.sync(request);
                        request.getResponse().sendRedirect(request.getPortalURL().getPortalURL());
                        return;
                    }
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.