Package com.illumon.iris.console.utils
Class DbAclEditor
java.lang.Object
com.illumon.iris.console.utils.DbAclEditor
- All Implemented Interfaces:
- Workspace
public class DbAclEditor extends Object implements Workspace
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceDbAclEditor.StatusListenerInterface for the status listeners.
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description DbAclEditor(IrisUserContext irisUserContext, com.fishlib.io.logger.Logger log, IrisConsole irisConsole, boolean startInitialization)Constructor.
- 
Method SummaryModifier and Type Method Description JComponent$$$getRootComponent$$$()voidaddStartupListener(Runnable runnable)voidaddStatusListener(DbAclEditor.StatusListener listener)Add aDbAclEditor.StatusListeneron which theDbAclEditor.StatusListener.updateAclEditorStatus(boolean, boolean, java.lang.String)method will be called when the ACL editor status changes.JPanelgetPanel()org.jdom2.ElementgetWorkspaceInfo()Serialize the class into an element to be stored in the workspacevoidsetWorkspaceInfo(org.jdom2.Element workspaceInfo)Restore the class to the state defined by the data persisted in workspaceInfovoidstartInitialization()Start the ACL editor initialization.
- 
Field Details- 
NODE_NAME- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
DbAclEditorpublic DbAclEditor(@NotNull IrisUserContext irisUserContext, @NotNull com.fishlib.io.logger.Logger log, @NotNull IrisConsole irisConsole, boolean startInitialization)Constructor.- Parameters:
- irisUserContext- the- IrisUserContextof the user creating the ACL editor
- log- the- LoggerLogger
- irisConsole- the- IrisConsolecreating the editor, so that widget support is available
- startInitialization- if true, start the initialization; otherwise, the caller is responsible for calling- startInitialization(); if initialization is started in the constructor, startup or state-change listeners added later may miss initialization events
 
 
- 
- 
Method Details- 
startInitializationpublic void startInitialization()Start the ACL editor initialization. This kicks off a thread to perform the initialization and returns immediately.
- 
getPanel
- 
getWorkspaceInfopublic org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
- getWorkspaceInfoin interface- Workspace
- Returns:
- An Elementcontaining the data to persist.
 
- 
setWorkspaceInfopublic void setWorkspaceInfo(org.jdom2.Element workspaceInfo)Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Specified by:
- setWorkspaceInfoin interface- Workspace
- Parameters:
- workspaceInfo- An- Elementcontaining the persisted state.
 
- 
$$$getRootComponent$$$- Noinspection:
- ALL
 
- 
addStartupListener
- 
addStatusListenerAdd aDbAclEditor.StatusListeneron which theDbAclEditor.StatusListener.updateAclEditorStatus(boolean, boolean, java.lang.String)method will be called when the ACL editor status changes.- Parameters:
- listener- the- DbAclEditor.StatusListener
 
 
-