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
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
Modifier and TypeFieldDescriptionprotected org.pentaho.ui.xul.binding.BindingFactory
protected MainController
protected boolean
protected org.pentaho.ui.xul.components.XulMessageBox
protected UISecurity
protected UISecurityUser
protected org.pentaho.di.repository.RepositorySecurityManager
static final int
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.containers.XulDialog
protected org.pentaho.ui.xul.components.XulTextbox
Fields inherited from class org.pentaho.di.ui.repository.repositoryexplorer.controllers.LazilyInitializedController
initialized, repository
Fields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainer
Fields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addUser()
addRole method is called when user has click ok on a add role dialog.void
void
protected void
protected void
protected void
protected void
protected boolean
protected void
enableButtons
(boolean enableNew, boolean enableEdit, boolean enableRemove) org.pentaho.ui.xul.components.XulMessageBox
getName()
void
init
(org.pentaho.di.repository.Repository rep) protected boolean
void
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 methodvoid
setEnableButtons
(int selectedIndex) protected void
void
setMessageBox
(org.pentaho.ui.xul.components.XulMessageBox messageBox) void
protected void
showButtons
(boolean showNew, boolean showEdit, boolean showRemove) void
void
protected void
updateUser method is called when user has click ok on a edit user dialog.Methods inherited from class org.pentaho.di.ui.repository.repositoryexplorer.controllers.LazilyInitializedController
doInEventThread, doWithBusyIndicator, lazyInit
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, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
-
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
-
security
-
bf
protected org.pentaho.ui.xul.binding.BindingFactory bf -
securityUser
-
messageBox
protected org.pentaho.ui.xul.components.XulMessageBox messageBox -
managed
protected boolean managed
-
-
Constructor Details
-
SecurityController
public SecurityController()
-
-
Method Details
-
init
- Specified by:
init
in interfaceIUISupportController
- Overrides:
init
in classLazilyInitializedController
- Throws:
ControllerInitializationException
-
doLazyInit
protected boolean doLazyInit()- Specified by:
doLazyInit
in classLazilyInitializedController
-
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
- Throws:
Exception
-
createSecurityUser
- Throws:
Exception
-
createSecurity
- Throws:
Exception
-
createBindings
protected void createBindings() -
getName
- Specified by:
getName
in interfaceIUISupportController
- Specified by:
getName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getName
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
showAddUserDialog
- Throws:
Exception
-
cancelAddUserDialog
- 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
- 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
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
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()
-