com.sptci.system
Class ChangePasswordListener

java.lang.Object
  extended by com.sptci.echo2.Listener<PasswordController>
      extended by com.sptci.system.ChangePasswordListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

 class ChangePasswordListener
extends Listener<PasswordController>

The action listener that is used to trigger the password change request using the telnet session with the server.

Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: ChangePasswordListener.java 3252 2007-05-12 19:12:31Z rakesh $
Author:
Rakesh Vidyadharan 2007-04-22

Field Summary
 
Fields inherited from class com.sptci.echo2.Listener
controller, logger
 
Constructor Summary
ChangePasswordListener(PasswordController controller)
          Create a new instance of the listner associated with the specified controller.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Implementation of the ActionListener interface.
private  void change()
          Change the password of the currently logged in user.
private  void handleException(AuthenticationFailedException afex)
          Handle an AuthenticationFailedException that can be triggered when user attempts to change his password.
private  void handleException(IOException ioex)
          Handle an IOException that can be triggered when user attempts to change his password.
private  void handleException(PasswordException pex)
          Handle an PasswordException that can be triggered when user attempts to change his password.
 
Methods inherited from class com.sptci.echo2.Listener
getController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangePasswordListener

ChangePasswordListener(PasswordController controller)
Create a new instance of the listner associated with the specified controller.

Parameters:
controller - The controller to use to access the controller.getView().
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Implementation of the ActionListener interface. Handles login events triggered by PasswordPane.

See Also:
change()

change

private void change()
Change the password of the currently logged in user.

See Also:
PasswordController.checkView()

handleException

private void handleException(AuthenticationFailedException afex)
Handle an AuthenticationFailedException that can be triggered when user attempts to change his password.

Parameters:
afex - The exception that was thrown.

handleException

private void handleException(PasswordException pex)
Handle an PasswordException that can be triggered when user attempts to change his password.

Parameters:
pex - The exception that was thrown.

handleException

private void handleException(IOException ioex)
Handle an IOException that can be triggered when user attempts to change his password.

Parameters:
ioex - The exception that was thrown.