org.pentaho.di.ui.repository.repositoryexplorer.controllers
Class SecurityController

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.ui.xul.impl.AbstractXulEventHandler
          extended by org.pentaho.di.ui.repository.repositoryexplorer.controllers.LazilyInitializedController
              extended by org.pentaho.di.ui.repository.repositoryexplorer.controllers.SecurityController
All Implemented Interfaces:
IUISupportController, org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.XulEventSource

public class SecurityController
extends LazilyInitializedController
implements IUISupportController

XulEventHandler for the Security panel of the repository explorer.

This class handles only user-related functionality. If supported, other controllers handle roles, etc.


Field Summary
static int USER_DECK
           
 
Constructor Summary
SecurityController()
           
 
Method Summary
 void cancelAddUserDialog()
           
 void changeToUserDeck()
           
 org.pentaho.ui.xul.components.XulMessageBox getMessageBox()
           
 String getName()
           
 void init(Repository rep)
           
 void removeUser()
          removeUser method is called when user has click on a remove button in a user deck.
 void saveUser()
          saveUser method is called when the user click on the ok button of a Add or Edit User dialog Depending on the mode it calls add of update user method
 void setEnableButtons(int selectedIndex)
           
 void setMessageBox(org.pentaho.ui.xul.components.XulMessageBox messageBox)
           
 void showAddUserDialog()
           
 void showEditUserDialog()
           
 void tabClicked()
           
 
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
 
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_DECK

public static final int USER_DECK
See Also:
Constant Field Values
Constructor Detail

SecurityController

public SecurityController()
Method Detail

init

public void init(Repository rep)
          throws ControllerInitializationException
Specified by:
init in interface IUISupportController
Overrides:
init in class LazilyInitializedController
Throws:
ControllerInitializationException

getMessageBox

public org.pentaho.ui.xul.components.XulMessageBox getMessageBox()

setMessageBox

public void setMessageBox(org.pentaho.ui.xul.components.XulMessageBox messageBox)

getName

public String getName()
Specified by:
getName in interface IUISupportController
Specified by:
getName in interface org.pentaho.ui.xul.impl.XulEventHandler
Overrides:
getName in class org.pentaho.ui.xul.impl.AbstractXulEventHandler

showAddUserDialog

public void showAddUserDialog()
                       throws Exception
Throws:
Exception

cancelAddUserDialog

public void cancelAddUserDialog()
                         throws Exception
Throws:
Exception

showEditUserDialog

public void showEditUserDialog()
                        throws Exception
Throws:
Exception

removeUser

public void removeUser()
                throws Exception
removeUser method is called when user has click on a remove button in a user deck. It first displays a confirmation message to the user and once the user selects ok, it remove the user

Throws:
Exception

changeToUserDeck

public void changeToUserDeck()

saveUser

public void saveUser()
              throws Exception
saveUser method is called when the user click on the ok button of a Add or Edit User dialog Depending on the mode it calls add of update user method

Throws:
Exception

setEnableButtons

public void setEnableButtons(int selectedIndex)

tabClicked

public void tabClicked()