Package net.sf.jportlet.portlet

Examples of net.sf.jportlet.portlet.PortletRequest


    {
        String action = event.getAction(  );

        if ( ActionEvent.ACTION_EDIT.equals( action ) )
        {
            PortletRequest request = event.getPortletRequest(  );
            String         command = request.getParameter( "command" );
            if ( "delete".equals( command ) )
            {
                doDelete( event, request );
            }
            else if ( "new".equals( command ) )
View Full Code Here


    //~ Methods ----------------------------------------------------------------

    public void actionPerformed( ActionEvent event )
        throws PortletException
    {
        PortletRequest request = event.getPortletRequest(  );
        String         action = event.getAction(  );
        String         command = request.getParameter( "command" );

        if ( ActionEvent.ACTION_VIEW.equals( action ) )
        {
            if ( "signin".equals( command ) )
            {
                doSignin( event, request );
            }
            else if ( "myprofile".equals( command ) )
            {
                doMyProfile( event, request );
            }
            else if ( "register".equals( command ) )
            {
                doRegister( event, request );
            }
            else if ( "logout".equals( command ) )
            {
                doLogout( event, request );
            }
            else if ( "login".equals( command ) )
            {
                doLogin( event, request );
            }
            else if ( "forgot_password".equals( command ) )
            {
                doForgotPassword( event, request );
            }
            else
            {
                throw new PortletException( "Unknown command: " + action + "/" + command );
            }
        }
        else if ( ActionEvent.ACTION_EDIT.equals( action ) )
        {
            if ( "save".equals( command ) )
            {
                doSave( event, request, "true".equals( request.getParameter( "register" ) ) );
            }
            else if ( "cancel".equals( command ) )
            {
                doCancel( event, request, "true".equals( request.getParameter( "register" ) ) );
            }
            else if ( "send_email".equals( command ) )
            {
                doSendEmail( event, request );
            }
View Full Code Here

TOP

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

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.