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 Summary
Nested Classes Modifier and Type Class Description static interface
DbAclEditor.StatusListener
Interface for the status listeners. -
Field Summary
-
Constructor Summary
Constructors Constructor Description DbAclEditor(IrisUserContext irisUserContext, com.fishlib.io.logger.Logger log, IrisConsole irisConsole, boolean startInitialization)
Constructor. -
Method Summary
Modifier and Type Method Description JComponent
$$$getRootComponent$$$()
void
addStartupListener(Runnable runnable)
void
addStatusListener(DbAclEditor.StatusListener listener)
Add aDbAclEditor.StatusListener
on which theDbAclEditor.StatusListener.updateAclEditorStatus(boolean, boolean, java.lang.String)
method will be called when the ACL editor status changes.JPanel
getPanel()
org.jdom2.Element
getWorkspaceInfo()
Serialize the class into an element to be stored in the workspacevoid
setWorkspaceInfo(org.jdom2.Element workspaceInfo)
Restore the class to the state defined by the data persisted in workspaceInfovoid
startInitialization()
Start the ACL editor initialization.
-
Field Details
-
NODE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
DbAclEditor
public DbAclEditor(@NotNull IrisUserContext irisUserContext, @NotNull com.fishlib.io.logger.Logger log, @NotNull IrisConsole irisConsole, boolean startInitialization)Constructor.- Parameters:
irisUserContext
- theIrisUserContext
of the user creating the ACL editorlog
- theLogger
LoggeririsConsole
- theIrisConsole
creating 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:Workspace
Serialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfo
in interfaceWorkspace
- Returns:
- An
Element
containing the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)Description copied from interface:Workspace
Restore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfo
in interfaceWorkspace
- Parameters:
workspaceInfo
- AnElement
containing the persisted state.
-
$$$getRootComponent$$$
- Noinspection:
- ALL
-
addStartupListener
-
addStatusListener
Add aDbAclEditor.StatusListener
on which theDbAclEditor.StatusListener.updateAclEditorStatus(boolean, boolean, java.lang.String)
method will be called when the ACL editor status changes.- Parameters:
listener
- theDbAclEditor.StatusListener
-