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
FieldsModifier and TypeFieldDescriptionprotected org.pentaho.ui.xul.binding.BindingFactoryprotected MainControllerprotected booleanprotected org.pentaho.ui.xul.components.XulMessageBoxprotected UISecurityprotected UISecurityUserprotected org.pentaho.di.repository.RepositorySecurityManagerstatic final intprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.containers.XulDialogprotected org.pentaho.ui.xul.components.XulTextboxFields inherited from class org.pentaho.di.ui.repository.repositoryexplorer.controllers.LazilyInitializedController
initialized, repositoryFields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainerFields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUser()addRole method is called when user has click ok on a add role dialog.voidvoidprotected voidprotected voidprotected voidprotected voidprotected booleanprotected voidenableButtons(boolean enableNew, boolean enableEdit, boolean enableRemove) org.pentaho.ui.xul.components.XulMessageBoxgetName()voidinit(org.pentaho.di.repository.Repository rep) protected booleanvoidremoveUser method is called when user has click on a remove button in a user deck.voidsaveUser()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 methodvoidsetEnableButtons(int selectedIndex) protected voidvoidsetMessageBox(org.pentaho.ui.xul.components.XulMessageBox messageBox) voidprotected voidshowButtons(boolean showNew, boolean showEdit, boolean showRemove) voidvoidprotected voidupdateUser 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, lazyInitMethods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainerMethods 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:
initin interfaceIUISupportController- Overrides:
initin classLazilyInitializedController- Throws:
ControllerInitializationException
-
doLazyInit
protected boolean doLazyInit()- Specified by:
doLazyInitin 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:
getNamein interfaceIUISupportController- Specified by:
getNamein interfaceorg.pentaho.ui.xul.impl.XulEventHandler- Overrides:
getNamein 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()
-