Autopsy  4.4
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel Class Reference

Inherits JPanel.

Classes

class  TextBoxChangedListener
 

Public Member Functions

 MultiUserSettingsPanel (MultiUserSettingsPanelController theController)
 

Private Member Functions

void bnTestDatabaseActionPerformed (java.awt.event.ActionEvent evt)
 
void bnTestMessageServiceActionPerformed (java.awt.event.ActionEvent evt)
 
void bnTestSolrActionPerformed (java.awt.event.ActionEvent evt)
 
void cbEnableMultiUserItemStateChanged (java.awt.event.ItemEvent evt)
 
boolean databaseFieldsArePopulated ()
 
void initComponents ()
 
boolean messageServiceFieldsArePopulated ()
 
boolean solrFieldsArePopulated ()
 

Static Private Member Functions

static void addDocumentListeners (Collection< JTextField > textFields, TextBoxChangedListener listener)
 
static void configureTextPrompts (Collection< TextPrompt > textPrompts)
 
static void enableMultiUserComponents (Collection< JTextField > textFields, boolean enabled)
 
static boolean portNumberIsValid (String portNumber)
 

Private Attributes

final ImageIcon badIcon
 
javax.swing.JButton bnTestDatabase
 
javax.swing.JButton bnTestMessageService
 
javax.swing.JButton bnTestSolr
 
javax.swing.JCheckBox cbEnableMultiUser
 
final MultiUserSettingsPanelController controller
 
final ImageIcon goodIcon
 
javax.swing.JScrollPane jScrollPane
 
javax.swing.JLabel lbDatabaseSettings
 
javax.swing.JLabel lbMessageServiceSettings
 
javax.swing.JLabel lbSolrSettings
 
javax.swing.JLabel lbTestDatabase
 
javax.swing.JLabel lbTestDbWarning
 
javax.swing.JLabel lbTestMessageService
 
javax.swing.JLabel lbTestMessageWarning
 
javax.swing.JLabel lbTestSolr
 
javax.swing.JLabel lbTestSolrWarning
 
javax.swing.JPanel pnDatabaseSettings
 
javax.swing.JPanel pnMessagingSettings
 
javax.swing.JPanel pnOverallPanel
 
javax.swing.JPanel pnSolrSettings
 
javax.swing.JTextField tbDbHostname
 
javax.swing.JPasswordField tbDbPassword
 
javax.swing.JTextField tbDbPort
 
javax.swing.JTextField tbDbUsername
 
javax.swing.JTextField tbMsgHostname
 
javax.swing.JPasswordField tbMsgPassword
 
javax.swing.JTextField tbMsgPort
 
javax.swing.JTextField tbMsgUsername
 
javax.swing.JTextField tbOops
 
javax.swing.JTextField tbSolrHostname
 
javax.swing.JTextField tbSolrPort
 
final TextBoxChangedListener textBoxChangedListener
 
final Collection< JTextField > textBoxes = new ArrayList<>()
 

Static Private Attributes

static final String HOST_NAME_OR_IP_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbHostname.toolTipText")
 
static final String INCOMPLETE_SETTINGS_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.incomplete")
 
static final String INVALID_DB_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidDatabasePort")
 
static final String INVALID_INDEXING_SERVER_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidIndexingServerPort")
 
static final String INVALID_MESSAGE_SERVICE_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidMessageServicePort")
 
static final boolean isWindowsOS = PlatformUtil.isWindowsOS()
 
static final Logger logger = Logger.getLogger(MultiUserSettingsPanel.class.getName())
 
static final String NON_WINDOWS_OS_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.nonWindowsOs.msg")
 
static final String PASSWORD_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbPassword.toolTipText")
 
static final String PASSWORD_PROMPT_OPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbMsgPassword.toolTipText")
 
static final String PORT_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbPort.toolTipText")
 
static final long serialVersionUID = 1L
 
static final String USER_NAME_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbUsername.toolTipText")
 
static final String USER_NAME_PROMPT_OPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbMsgUsername.toolTipText")
 

Detailed Description

Definition at line 46 of file MultiUserSettingsPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.MultiUserSettingsPanel ( MultiUserSettingsPanelController  theController)

Creates new form AutopsyMultiUserSettingsPanel

Parameters
theControllerController to notify of changes.

Add text prompts to all of the text fields.

Register for notifications when the text boxes get updated.

Definition at line 73 of file MultiUserSettingsPanel.java.

References org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.addDocumentListeners(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUser, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.configureTextPrompts(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.enableMultiUserComponents(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.initComponents(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDatabase, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageService, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolr, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbHostname, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPassword, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPort, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbUsername, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgHostname, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPassword, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPort, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgUsername, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrHostname, and org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrPort.

Member Function Documentation

static void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.addDocumentListeners ( Collection< JTextField >  textFields,
TextBoxChangedListener  listener 
)
staticprivate

Adds a change listener to a collection of text fields.

Parameters
textFieldsThe text fields.
listenerThe change listener.

Definition at line 154 of file MultiUserSettingsPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.MultiUserSettingsPanel().

void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestDatabaseActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestMessageServiceActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestSolrActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUserItemStateChanged ( java.awt.event.ItemEvent  evt)
private
static void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.configureTextPrompts ( Collection< TextPrompt textPrompts)
staticprivate

Sets the foreground color and transparency of a collection of text prompts.

Parameters
textPromptsThe text prompts to configure.

Definition at line 140 of file MultiUserSettingsPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.MultiUserSettingsPanel().

boolean org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.databaseFieldsArePopulated ( )
private
static void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.enableMultiUserComponents ( Collection< JTextField >  textFields,
boolean  enabled 
)
staticprivate

Enables/disables the multi-user settings, based upon input provided

Parameters
textFieldsThe text fields to enable/disable.
enabledTrue means enable, false means disable.

Definition at line 486 of file MultiUserSettingsPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUserItemStateChanged(), and org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.MultiUserSettingsPanel().

void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.initComponents ( )
private

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 167 of file MultiUserSettingsPanel.java.

References org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestDatabase, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestDatabaseActionPerformed(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestMessageService, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestMessageServiceActionPerformed(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestSolr, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestSolrActionPerformed(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUser, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUserItemStateChanged(), org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.jScrollPane, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbDatabaseSettings, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbMessageServiceSettings, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbSolrSettings, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDatabase, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDbWarning, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageService, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageWarning, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolr, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolrWarning, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnDatabaseSettings, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnMessagingSettings, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnOverallPanel, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnSolrSettings, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbHostname, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPassword, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPort, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbUsername, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgHostname, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPassword, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPort, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgUsername, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbOops, org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrHostname, and org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrPort.

Referenced by org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.MultiUserSettingsPanel().

boolean org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.messageServiceFieldsArePopulated ( )
private
static boolean org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.portNumberIsValid ( String  portNumber)
staticprivate

Determines whether or not a port number is within the range of valid port numbers.

Parameters
portNumberThe port number as a string.
Returns
True or false.

Definition at line 840 of file MultiUserSettingsPanel.java.

boolean org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.solrFieldsArePopulated ( )
private

Tests whether or not values have been entered in all of the Solr settings text fields.

Returns
True or false.

Definition at line 662 of file MultiUserSettingsPanel.java.

References org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrHostname, and org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrPort.

Member Data Documentation

final ImageIcon org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.badIcon
private

Definition at line 65 of file MultiUserSettingsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestDatabase
private
javax.swing.JButton org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestMessageService
private
javax.swing.JButton org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestSolr
private
javax.swing.JCheckBox org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUser
private
final MultiUserSettingsPanelController org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.controller
private

Definition at line 60 of file MultiUserSettingsPanel.java.

final ImageIcon org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.goodIcon
private

Definition at line 64 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.HOST_NAME_OR_IP_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbHostname.toolTipText")
staticprivate

Definition at line 48 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.INCOMPLETE_SETTINGS_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.incomplete")
staticprivate

Definition at line 54 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.INVALID_DB_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidDatabasePort")
staticprivate

Definition at line 55 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.INVALID_INDEXING_SERVER_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidIndexingServerPort")
staticprivate

Definition at line 57 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.INVALID_MESSAGE_SERVICE_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidMessageServicePort")
staticprivate

Definition at line 56 of file MultiUserSettingsPanel.java.

final boolean org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.isWindowsOS = PlatformUtil.isWindowsOS()
staticprivate

Definition at line 66 of file MultiUserSettingsPanel.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.jScrollPane
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbDatabaseSettings
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbMessageServiceSettings
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbSolrSettings
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDatabase
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDbWarning
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageService
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageWarning
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolr
private
javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolrWarning
private
final Logger org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.logger = Logger.getLogger(MultiUserSettingsPanel.class.getName())
staticprivate

Definition at line 63 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.NON_WINDOWS_OS_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.nonWindowsOs.msg")
staticprivate

Definition at line 58 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.PASSWORD_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbPassword.toolTipText")
staticprivate

Definition at line 51 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.PASSWORD_PROMPT_OPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbMsgPassword.toolTipText")
staticprivate

Definition at line 53 of file MultiUserSettingsPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnDatabaseSettings
private
javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnMessagingSettings
private
javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnOverallPanel
private
javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnSolrSettings
private
final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.PORT_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbPort.toolTipText")
staticprivate

Definition at line 49 of file MultiUserSettingsPanel.java.

final long org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.serialVersionUID = 1L
staticprivate

Definition at line 59 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbHostname
private
javax.swing.JPasswordField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPassword
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPort
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbUsername
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgHostname
private
javax.swing.JPasswordField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPassword
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPort
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgUsername
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbOops
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrHostname
private
javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrPort
private
final TextBoxChangedListener org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.textBoxChangedListener
private

Definition at line 62 of file MultiUserSettingsPanel.java.

final Collection<JTextField> org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.textBoxes = new ArrayList<>()
private

Definition at line 61 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.USER_NAME_PROMPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbDbUsername.toolTipText")
staticprivate

Definition at line 50 of file MultiUserSettingsPanel.java.

final String org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.USER_NAME_PROMPT_OPT = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.tbMsgUsername.toolTipText")
staticprivate

Definition at line 52 of file MultiUserSettingsPanel.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2016 Basis Technology. Generated on: Tue Jun 13 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.