//~ 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 );
}