Package net.sf.jportlet.portlet

Examples of net.sf.jportlet.portlet.PortletURI


     * @see net.sf.jportlet.portlet.PortletResponse#createURI(net.sf.jportlet.portlet.Portlet.Mode, net.sf.jportlet.portlet.PortletWindow.State)
     */
    public PortletURI createURI( Mode  mode,
                                 State state )
    {
        PortletURI uri = new PortletURIImpl( _portletRequest, this );
        uri.setMode( mode );
        uri.setState( state );
        return uri;
    }
View Full Code Here


    //~ Constructors -----------------------------------------------------------

    public PortletWindowImpl( PortletRequestImpl request )
    {
        PortletURI uri = request.getPortletURI(  );

        if ( uri != null )
        {
            _state = uri.getState(  );
        }
    }
View Full Code Here

        String                action = uri.getAction(  );
        ActionEventImpl       event = new ActionEventImpl( action, req, resp );
        proxy.actionPerformed( event );

        /* Get the URI where to move*/
        PortletURI nextURI = event.getNextURI(  );
        String     nextUri;
        if ( nextURI != null )
        {
            nextUri = nextURI.toString(  ).substring( request.getContextPath(  ).length(  ) );
        }
        else
        {
            WebflowActionDescriptor webflow = proxy.getDescriptor(  ).getWebflowAction( action );
            nextUri = ( webflow != null )
View Full Code Here

            {
                throw new PortletException( "Invalid command: " + action + "/" + command );
            }
           
            PortletResponse response = event.getPortletResponse();
            PortletURI nextURI = response.createURI(Portlet.Mode.EDIT, PortletWindow.State.MAXIMIZED );
            event.setNextURI( nextURI );
        }
        else
        {
            throw new PortletException( "Invalid action: " + action );
View Full Code Here

    }

    private void doForgotPassword( ActionEvent    event,
                                   PortletRequest request )
    {
        PortletURI uri = event.getPortletResponse(  ).createURI( Portlet.Mode.EDIT, PortletWindow.State.MAXIMIZED );
        uri.addParameter( LoginPortlet.KEY_TEMPLATE, "forgot_password.vm" );
        event.setNextURI( uri );
    }
View Full Code Here

    private void doSignin( ActionEvent    event,
                           PortletRequest request )
        throws PortletException
    {
        PortletURI uri = event.getPortletResponse(  ).createURI( Portlet.Mode.VIEW, PortletWindow.State.MAXIMIZED );
        uri.addParameter( LoginPortlet.KEY_TEMPLATE, "signin.vm" );
        event.setNextURI( uri );
    }
View Full Code Here

            }

            request.setAttribute( "user", user );
        }

        PortletURI uri = event.getPortletResponse(  ).createURI( Portlet.Mode.EDIT, PortletWindow.State.MAXIMIZED );
        event.setNextURI( uri );
    }
View Full Code Here

    private void doRegister( ActionEvent    event,
                             PortletRequest request )
        throws PortletException
    {
        PortletURI uri = event.getPortletResponse(  ).createURI( Portlet.Mode.EDIT, PortletWindow.State.MAXIMIZED );
        event.setNextURI( uri );
    }
View Full Code Here

TOP

Related Classes of net.sf.jportlet.portlet.PortletURI

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.