com.sptci.system
Class LoginController

java.lang.Object
  extended by com.sptci.echo2.Controller<LoginPane>
      extended by com.sptci.echo2.LoginPaneController
          extended by com.sptci.system.LoginController
All Implemented Interfaces:
Serializable

 class LoginController
extends LoginPaneController

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

Copyright 2007 Sans Pareil Technologies, Inc.

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

Nested Class Summary
(package private)  class LoginController.LoginListener
          The action listener that is used to trigger initialisation of a telnet session with the server.
 
Nested classes/interfaces inherited from class com.sptci.echo2.LoginPaneController
LoginPaneController.UserNameListener
 
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
LoginController()
          Create a new instance of the controller for LoginView
 
Method Summary
 boolean checkRoot()
          Check the LoginPane.userName field to ensure that the value specified is not root.
 ActionListener getListener(String component)
          Implementation of the mandatory method defined in LoginPaneController.
 
Methods inherited from class com.sptci.echo2.LoginPaneController
checkPassword, checkUserName, checkView
 
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

LoginController

LoginController()
Create a new instance of the controller for LoginView

Method Detail

getListener

public ActionListener getListener(String component)
Implementation of the mandatory method defined in LoginPaneController. Returns the appropriate ActionListener depending upon the component from which the ActionEvent was triggered.

Specified by:
getListener in class LoginPaneController
Parameters:
component - The name of the component for which the ActionListener is to be returned.
Returns:
The appropriate ActionListener instance.

checkRoot

public boolean checkRoot()
Check the LoginPane.userName field to ensure that the value specified is not root.

Returns:
Returns true if the user is not root.