Package com.illumon.iris.console.utils
Class DbAclEditor
java.lang.Object
com.illumon.iris.console.utils.DbAclEditor
- All Implemented Interfaces:
Workspace
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for the status listeners. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDbAclEditor(IrisUserContext irisUserContext, com.fishlib.io.logger.Logger log, IrisConsole irisConsole, boolean startInitialization) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStartupListener(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.getPanel()org.jdom2.ElementSerialize 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 workspaceInfovoidStart the ACL editor initialization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Field Details
-
NODE_NAME
- See Also:
-
-
Constructor Details
-
DbAclEditor
public DbAclEditor(@NotNull IrisUserContext irisUserContext, @NotNull com.fishlib.io.logger.Logger log, @NotNull IrisConsole irisConsole, boolean startInitialization) Constructor.- Parameters:
irisUserContext- theIrisUserContextof the user creating the ACL editorlog- theLoggerLoggeririsConsole- theIrisConsolecreating the editor, so that widget support is availablestartInitialization- if true, start the initialization; otherwise, the caller is responsible for callingstartInitialization(); if initialization is started in the constructor, startup or state-change listeners added later may miss initialization events
-
-
Method Details
-
startInitialization
public void startInitialization()Start the ACL editor initialization. This kicks off a thread to perform the initialization and returns immediately. -
getPanel
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfoin interfaceWorkspace- Returns:
- An
Elementcontaining the data to persist.
-
setWorkspaceInfo
public 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 interfaceWorkspace- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-
$$$getRootComponent$$$
- Noinspection:
- ALL
-
addStartupListener
-
addStatusListener
Add aDbAclEditor.StatusListeneron which theDbAclEditor.StatusListener.updateAclEditorStatus(boolean, boolean, java.lang.String)method will be called when the ACL editor status changes.- Parameters:
listener- theDbAclEditor.StatusListener
-