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, lazyInit
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
public 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 IUISupportController
init
in class LazilyInitializedController
ControllerInitializationException
protected boolean doLazyInit()
doLazyInit
in class LazilyInitializedController
protected 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 IUISupportController
getName
in interface org.pentaho.ui.xul.impl.XulEventHandler
getName
in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
protected void addUser()
Exception
protected void updateUser()
Exception
public void removeUser() throws Exception
Exception
public void changeToUserDeck()
public void saveUser() throws Exception
Exception
public 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.