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.
| Modifier and Type | Field and Description |
|---|---|
protected org.pentaho.ui.xul.binding.BindingFactory |
bf |
protected MainController |
mainController |
protected boolean |
managed |
protected org.pentaho.ui.xul.components.XulMessageBox |
messageBox |
protected UISecurity |
security |
protected UISecurityUser |
securityUser |
protected RepositorySecurityManager |
service |
static int |
USER_DECK |
protected org.pentaho.ui.xul.components.XulTextbox |
userDescription |
protected org.pentaho.ui.xul.containers.XulDialog |
userDialog |
protected org.pentaho.ui.xul.components.XulTextbox |
userPassword |
initialized, repository| Constructor and Description |
|---|
SecurityController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUser()
addRole method is called when user has click ok on a add role dialog.
|
void |
cancelAddUserDialog() |
void |
changeToUserDeck() |
protected void |
createBindings() |
protected void |
createModel() |
protected void |
createSecurity() |
protected void |
createSecurityUser() |
protected boolean |
doLazyInit() |
protected void |
enableButtons(boolean enableNew,
boolean enableEdit,
boolean enableRemove) |
org.pentaho.ui.xul.components.XulMessageBox |
getMessageBox() |
String |
getName() |
void |
init(Repository rep) |
protected boolean |
initService() |
void |
removeUser()
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 method
|
void |
setEnableButtons(int selectedIndex) |
protected void |
setInitialDeck() |
void |
setMessageBox(org.pentaho.ui.xul.components.XulMessageBox messageBox) |
void |
showAddUserDialog() |
protected void |
showButtons(boolean showNew,
boolean showEdit,
boolean showRemove) |
void |
showEditUserDialog() |
void |
tabClicked() |
protected void |
updateUser()
updateUser method is called when user has click ok on a edit user dialog.
|
doInEventThread, doWithBusyIndicator, lazyInitbind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainerpublic static final int USER_DECK
protected org.pentaho.ui.xul.containers.XulDialog userDialog
protected org.pentaho.ui.xul.components.XulTextbox userPassword
protected org.pentaho.ui.xul.components.XulTextbox userDescription
protected RepositorySecurityManager service
protected MainController mainController
protected UISecurity security
protected org.pentaho.ui.xul.binding.BindingFactory bf
protected UISecurityUser securityUser
protected org.pentaho.ui.xul.components.XulMessageBox messageBox
protected boolean managed
public void init(Repository rep) throws ControllerInitializationException
init in interface IUISupportControllerinit in class LazilyInitializedControllerControllerInitializationExceptionprotected boolean doLazyInit()
doLazyInit in class LazilyInitializedControllerprotected boolean initService()
protected void setInitialDeck()
public org.pentaho.ui.xul.components.XulMessageBox getMessageBox()
public void setMessageBox(org.pentaho.ui.xul.components.XulMessageBox messageBox)
protected void createBindings()
public String getName()
getName in interface IUISupportControllergetName in interface org.pentaho.ui.xul.impl.XulEventHandlergetName in class org.pentaho.ui.xul.impl.AbstractXulEventHandlerprotected void addUser()
Exceptionprotected void updateUser()
Exceptionpublic void removeUser()
throws Exception
Exceptionpublic void changeToUserDeck()
public void saveUser()
throws Exception
Exceptionpublic void setEnableButtons(int selectedIndex)
protected void enableButtons(boolean enableNew,
boolean enableEdit,
boolean enableRemove)
protected void showButtons(boolean showNew,
boolean showEdit,
boolean showRemove)
public void tabClicked()
Copyright © 2019 Hitachi Vantara. All rights reserved.