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.

  • Field Details

    • USER_DECK

      public static final int USER_DECK
      See Also:
    • userDialog

      protected org.pentaho.ui.xul.containers.XulDialog userDialog
    • userPassword

      protected org.pentaho.ui.xul.components.XulTextbox userPassword
    • userDescription

      protected org.pentaho.ui.xul.components.XulTextbox userDescription
    • service

      protected org.pentaho.di.repository.RepositorySecurityManager service
    • mainController

      protected MainController mainController
    • security

      protected UISecurity security
    • bf

      protected org.pentaho.ui.xul.binding.BindingFactory bf
    • securityUser

      protected UISecurityUser securityUser
    • messageBox

      protected org.pentaho.ui.xul.components.XulMessageBox messageBox
    • managed

      protected boolean managed
  • Constructor Details

    • SecurityController

      public SecurityController()
  • Method Details

    • init

      public void init(org.pentaho.di.repository.Repository rep) throws ControllerInitializationException
      Specified by:
      init in interface IUISupportController
      Overrides:
      init in class LazilyInitializedController
      Throws:
      ControllerInitializationException
    • doLazyInit

      protected boolean doLazyInit()
      Specified by:
      doLazyInit in class LazilyInitializedController
    • initService

      protected boolean initService()
    • setInitialDeck

      protected void setInitialDeck()
    • getMessageBox

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

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

      protected void createModel() throws Exception
      Throws:
      Exception
    • createSecurityUser

      protected void createSecurityUser() throws Exception
      Throws:
      Exception
    • createSecurity

      protected void createSecurity() throws Exception
      Throws:
      Exception
    • createBindings

      protected void createBindings()
    • 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
    • addUser

      protected void addUser()
      addRole method is called when user has click ok on a add role dialog. The method add the role
      Throws:
      Exception
    • showEditUserDialog

      public void showEditUserDialog() throws Exception
      Throws:
      Exception
    • updateUser

      protected void updateUser()
      updateUser method is called when user has click ok on a edit user dialog. The method updates the user
      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)
    • enableButtons

      protected void enableButtons(boolean enableNew, boolean enableEdit, boolean enableRemove)
    • showButtons

      protected void showButtons(boolean showNew, boolean showEdit, boolean showRemove)
    • tabClicked

      public void tabClicked()