Class 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 Detail

      • 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
      • bf

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

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

        protected boolean managed
    • Constructor Detail

      • SecurityController

        public SecurityController()
    • Method Detail

      • 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)
      • createSecurityUser

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