org.pentaho.di.ui.repository.repositoryexplorer.controllers
Class SecurityController
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.di.ui.repository.repositoryexplorer.controllers.LazilyInitializedController
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.
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 |
USER_DECK
public static final int USER_DECK
- See Also:
- Constant Field Values
SecurityController
public SecurityController()
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()