kaos.kpat.tabs
Class UserAdministrationTab

java.lang.Object
  extended by kaos.kpat.tabs.UserAdministrationTab
All Implemented Interfaces:
RefreshListener, PolicyTemplateFactory.TemplateFactoryListener, TabPanel

public class UserAdministrationTab
extends java.lang.Object
implements TabPanel, RefreshListener, PolicyTemplateFactory.TemplateFactoryListener

Date: Jan 28, 2008 Time: 11:27:08 AM


Nested Class Summary
 class UserAdministrationTab.UserAdminSelectionHandler
           
 
Field Summary
protected  javax.swing.JButton _addBtn
           
protected  javax.swing.JButton _cancelBtn
           
protected  java.lang.String _currentUser
           
protected  java.util.Map _defaultTabsArray
           
protected  javax.swing.JButton _editBtn
           
protected  javax.swing.JPanel _leftPanel
           
protected  javax.swing.JPasswordField _passwField
           
protected  javax.swing.JButton _removeBtn
           
protected  javax.swing.JPanel _rightPanel
           
protected  javax.swing.JComboBox _roleComboBox
           
protected  javax.swing.DefaultComboBoxModel _roleComboModel
           
protected  javax.swing.JSplitPane _splitPane
           
protected  javax.swing.JList _tabList
           
protected  javax.swing.DefaultListModel _tabListModel
           
protected  javax.swing.JList _templateList
           
protected  javax.swing.DefaultListModel _templateListModel
           
protected  TunnelClient _tunnelClient
           
protected  java.util.Hashtable _userDatabase
           
protected  javax.swing.JList _userList
           
protected  javax.swing.DefaultListModel _userListModel
           
protected  java.lang.String _userSelected
           
protected  javax.swing.JTextField _userTextField
           
 
Constructor Summary
UserAdministrationTab()
           
 
Method Summary
protected  void addListOfPrivileges()
           
 void addTemplate(PolicyTemplate template)
           
protected  void clearTab()
           
protected  void createGui()
           
 java.awt.Component getDisplayComponent()
           
protected  java.util.Vector getLongNameVector(java.util.Vector tabVector)
           
 java.lang.String getName()
           
protected  java.util.Vector getPolicyTemplatesByUser(java.lang.String username)
           
protected  void getPolicyTemplatesFromDS()
           
protected  java.lang.String getShortName(java.lang.String longName)
           
protected  java.util.Vector getTabsSelectedVector(java.lang.Object[] selectedTabsArray)
           
 void initialize(KPATApplet applet, TunnelClient tunnelClient)
           
 void refreshOccurred()
           
 void removeTemplate(PolicyTemplate template)
           
protected  void selectTemplateNamesByUser(java.util.Vector templateVector, java.lang.String username)
           
protected  void setSelectionTabByPrivileges(java.lang.String privilege)
           
protected  void updateNameList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_userDatabase

protected java.util.Hashtable _userDatabase

_addBtn

protected javax.swing.JButton _addBtn

_cancelBtn

protected javax.swing.JButton _cancelBtn

_editBtn

protected javax.swing.JButton _editBtn

_removeBtn

protected javax.swing.JButton _removeBtn

_roleComboBox

protected javax.swing.JComboBox _roleComboBox

_roleComboModel

protected javax.swing.DefaultComboBoxModel _roleComboModel

_templateList

protected javax.swing.JList _templateList

_userList

protected javax.swing.JList _userList

_tabList

protected javax.swing.JList _tabList

_templateListModel

protected javax.swing.DefaultListModel _templateListModel

_userListModel

protected javax.swing.DefaultListModel _userListModel

_tabListModel

protected javax.swing.DefaultListModel _tabListModel

_leftPanel

protected javax.swing.JPanel _leftPanel

_rightPanel

protected javax.swing.JPanel _rightPanel

_passwField

protected javax.swing.JPasswordField _passwField

_splitPane

protected javax.swing.JSplitPane _splitPane

_userTextField

protected javax.swing.JTextField _userTextField

_userSelected

protected java.lang.String _userSelected

_currentUser

protected java.lang.String _currentUser

_tunnelClient

protected TunnelClient _tunnelClient

_defaultTabsArray

protected java.util.Map _defaultTabsArray
Constructor Detail

UserAdministrationTab

public UserAdministrationTab()
Method Detail

initialize

public void initialize(KPATApplet applet,
                       TunnelClient tunnelClient)
Specified by:
initialize in interface TabPanel

getName

public java.lang.String getName()
Specified by:
getName in interface TabPanel

getDisplayComponent

public java.awt.Component getDisplayComponent()
Specified by:
getDisplayComponent in interface TabPanel

createGui

protected void createGui()

setSelectionTabByPrivileges

protected void setSelectionTabByPrivileges(java.lang.String privilege)

getPolicyTemplatesFromDS

protected void getPolicyTemplatesFromDS()

getPolicyTemplatesByUser

protected java.util.Vector getPolicyTemplatesByUser(java.lang.String username)

addListOfPrivileges

protected void addListOfPrivileges()

clearTab

protected void clearTab()

addTemplate

public void addTemplate(PolicyTemplate template)
Specified by:
addTemplate in interface PolicyTemplateFactory.TemplateFactoryListener

removeTemplate

public void removeTemplate(PolicyTemplate template)
Specified by:
removeTemplate in interface PolicyTemplateFactory.TemplateFactoryListener

refreshOccurred

public void refreshOccurred()
Specified by:
refreshOccurred in interface RefreshListener

updateNameList

protected void updateNameList()

getTabsSelectedVector

protected java.util.Vector getTabsSelectedVector(java.lang.Object[] selectedTabsArray)

getShortName

protected java.lang.String getShortName(java.lang.String longName)

getLongNameVector

protected java.util.Vector getLongNameVector(java.util.Vector tabVector)

selectTemplateNamesByUser

protected void selectTemplateNamesByUser(java.util.Vector templateVector,
                                         java.lang.String username)