openfuture.bugbase.app.controller
Class UserController

java.lang.Object
  |
  +--openfuture.bugbase.app.controller.AbsController
        |
        +--openfuture.bugbase.app.controller.ListController
              |
              +--openfuture.bugbase.app.controller.UserController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.event.ItemListener, javax.swing.event.ListSelectionListener, javax.swing.event.TableModelListener

public class UserController
extends ListController

Controller for the user administration panel.

Created: Fri Jun 09 05:59:12 2000

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger

Constructor Summary
UserController(AbsController parentController, java.util.LinkedList userList, java.util.LinkedList groupList)
           
 
Method Summary
 java.lang.String createUniqueUserId()
          Create a unique user ID
 User createUser()
          Creates a new user, sets the actual user to this value and appends it to the list of users.
 User getActualUser()
          Returns the user currently selected.
 DoubleListController getGroupController()
          Get the value of groupController.
 java.lang.String getNewPassword()
          Getter for the new password field entry.
protected  void handleEvents(java.awt.AWTEvent event, java.lang.Object source, java.lang.String name)
          Central event handler
 boolean isUniqueUserid(java.lang.String userid)
          Calls isUniqueUserid(userid, false).
 boolean isUniqueUserid(java.lang.String userid, boolean ignoreSelection)
          Check, whether userid is a unique ID in the list of users.
 void setGroupController(DoubleListController v)
          Set the value of groupController.
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          An element in the user list is selected.
 
Methods inherited from class openfuture.bugbase.app.controller.ListController
deleteElement, getDeletedElements, getListModel, getNewElement, getSelected, getSelectedIndex, setDeletedElements, setListModel, setNewElement, setSelected, setSelectedIndex
 
Methods inherited from class openfuture.bugbase.app.controller.AbsController
actionPerformed, focusGained, focusLost, getBugReport, getIgnoreEvents, getProject, getServletClient, getView, init, itemStateChanged, setBugReport, setIgnoreEvents, setProject, setServletClient, setView, showError, showError, showI18NError, showI18NError, stringToDate, tableChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserController

public UserController(AbsController parentController,
                      java.util.LinkedList userList,
                      java.util.LinkedList groupList)
Method Detail

handleEvents

protected void handleEvents(java.awt.AWTEvent event,
                            java.lang.Object source,
                            java.lang.String name)
Central event handler
Parameters:
event - the event that should be handled
source - source of the event
name - name of the control causing the event

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
An element in the user list is selected.
Overrides:
valueChanged in class ListController
Parameters:
e - selection event

isUniqueUserid

public boolean isUniqueUserid(java.lang.String userid,
                              boolean ignoreSelection)
Check, whether userid is a unique ID in the list of users.
Parameters:
userid - user ID to be checked
ignoreSelection - if set to true, the selected user is ignored.
Returns:
true, if the ID is unique

isUniqueUserid

public boolean isUniqueUserid(java.lang.String userid)
Calls isUniqueUserid(userid, false).
Parameters:
userid - user ID to be checked
Returns:
true, if the ID is unique

getGroupController

public DoubleListController getGroupController()
Get the value of groupController.
Returns:
Value of groupController.

setGroupController

public void setGroupController(DoubleListController v)
Set the value of groupController.
Parameters:
v - Value to assign to groupController.

createUser

public User createUser()
Creates a new user, sets the actual user to this value and appends it to the list of users.
Returns:
new user

createUniqueUserId

public java.lang.String createUniqueUserId()
Create a unique user ID
Returns:
a unique user ID

getActualUser

public User getActualUser()
Returns the user currently selected. If none is selected, the new User object is returned.
Returns:
The user currently selected.

getNewPassword

public java.lang.String getNewPassword()
Getter for the new password field entry.
Returns:
new password


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.