com.sptci.system
Class PasswordController

java.lang.Object
  extended by com.sptci.echo2.Controller<PasswordPane>
      extended by com.sptci.system.PasswordController
All Implemented Interfaces:
Serializable

 class PasswordController
extends Controller<PasswordPane>

The controller for the PasswordPane. Handles all actions/events triggered by the view.

Copyright 2007 Sans Pareil Technologies, Inc.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sptci.echo2.Controller
Controller.LinkedCellRenderer, Controller.Updater<S>, Controller.Worker<S>
 
Field Summary
 
Fields inherited from class com.sptci.echo2.Controller
application, logger, view
 
Constructor Summary
PasswordController(PasswordPane view)
          Create a new instance of the controller for PasswordPane
 
Method Summary
(package private)  void checkConfirmPassword()
          Check the PasswordPane.confirmPassword value specified.
(package private)  void checkContains(String string, String substring, String message)
          Chech to see if the username exists in the password specified.
(package private)  void checkNewPassword()
          Check the PasswordPane.newPassword value specified.
(package private)  void checkPassword()
          Check the PasswordPane.password value specified.
(package private)  void checkPasswordQuality()
          Chech the quality of the new password.
(package private)  void checkView()
          Check the information in Controller.view and ensure that the appropriate password change request can be submitted to the server.
(package private)  void setSuggest(String value)
          Set the PasswordPane.suggest value.
 
Methods inherited from class com.sptci.echo2.Controller
checkText, getApplication, getLogger, getView, processFatalException, setApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordController

PasswordController(PasswordPane view)
Create a new instance of the controller for PasswordPane

Parameters:
view - The Controller.view controlled by this controller.
Method Detail

checkView

void checkView()
         throws PasswordException
Check the information in Controller.view and ensure that the appropriate password change request can be submitted to the server.

Throws:
PasswordException - If the checks failed.
See Also:
checkPassword(), checkNewPassword(), checkConfirmPassword(), checkPasswordQuality()

checkPassword

void checkPassword()
             throws PasswordException
Check the PasswordPane.password value specified.

Throws:
PasswordException - If the check failed.

checkNewPassword

void checkNewPassword()
                throws PasswordException
Check the PasswordPane.newPassword value specified.

Throws:
PasswordException - If the check failed.

checkConfirmPassword

void checkConfirmPassword()
                    throws PasswordException
Check the PasswordPane.confirmPassword value specified.

Throws:
PasswordException - If the check failed.

checkPasswordQuality

void checkPasswordQuality()
                    throws PasswordException
Chech the quality of the new password. In addition to checkSimple check the following:
  1. The username is not contained in the password
  2. The username reversed is not contained in the password

Throws:
PasswordException - If the check fails.
See Also:
PasswordGenerator.checkSimple(char[]), checkContains(java.lang.String, java.lang.String, java.lang.String)

checkContains

void checkContains(String string,
                   String substring,
                   String message)
             throws PasswordException
Chech to see if the username exists in the password specified.

Parameters:
string - The string that is to be checked for existence of substring.
substring - The string that is to be checked for existence in string
message - The key to the localised message that is to be used as the message in PasswordException.
Throws:
PasswordException - If the check fails.

setSuggest

void setSuggest(String value)
Set the PasswordPane.suggest value.

Parameters:
value - The value that is to be displayed in the component.