Autopsy  4.7.0
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 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

Configuration panel for multi-user settings.

Definition at line 50 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 76 of file MultiUserSettingsPanel.java.

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 153 of file MultiUserSettingsPanel.java.

void org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestDatabaseActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 508 of file MultiUserSettingsPanel.java.

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 139 of file MultiUserSettingsPanel.java.

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

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

Returns
True or false.

Definition at line 644 of file MultiUserSettingsPanel.java.

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 485 of file MultiUserSettingsPanel.java.

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 166 of file MultiUserSettingsPanel.java.

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

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

Returns
True or false.

Definition at line 668 of file MultiUserSettingsPanel.java.

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 828 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 657 of file MultiUserSettingsPanel.java.

Member Data Documentation

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

Definition at line 68 of file MultiUserSettingsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestDatabase
private

Definition at line 841 of file MultiUserSettingsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestMessageService
private

Definition at line 842 of file MultiUserSettingsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.bnTestSolr
private

Definition at line 843 of file MultiUserSettingsPanel.java.

javax.swing.JCheckBox org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.cbEnableMultiUser
private

Definition at line 844 of file MultiUserSettingsPanel.java.

final MultiUserSettingsPanelController org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.controller
private

Definition at line 63 of file MultiUserSettingsPanel.java.

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

Definition at line 67 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 52 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 58 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 59 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 61 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 60 of file MultiUserSettingsPanel.java.

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

Definition at line 69 of file MultiUserSettingsPanel.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.jScrollPane
private

Definition at line 845 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbDatabaseSettings
private

Definition at line 846 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbMessageServiceSettings
private

Definition at line 847 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbSolrSettings
private

Definition at line 848 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDatabase
private

Definition at line 849 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestDbWarning
private

Definition at line 850 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageService
private

Definition at line 851 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestMessageWarning
private

Definition at line 852 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolr
private

Definition at line 853 of file MultiUserSettingsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.lbTestSolrWarning
private

Definition at line 854 of file MultiUserSettingsPanel.java.

final Logger org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.logger = Logger.getLogger(MultiUserSettingsPanel.class.getName())
staticprivate

Definition at line 66 of file MultiUserSettingsPanel.java.

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

Definition at line 55 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 57 of file MultiUserSettingsPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnDatabaseSettings
private

Definition at line 855 of file MultiUserSettingsPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnMessagingSettings
private

Definition at line 856 of file MultiUserSettingsPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnOverallPanel
private

Definition at line 857 of file MultiUserSettingsPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.pnSolrSettings
private

Definition at line 858 of file MultiUserSettingsPanel.java.

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

Definition at line 53 of file MultiUserSettingsPanel.java.

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

Definition at line 62 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbHostname
private

Definition at line 859 of file MultiUserSettingsPanel.java.

javax.swing.JPasswordField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPassword
private

Definition at line 860 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbPort
private

Definition at line 861 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbDbUsername
private

Definition at line 862 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgHostname
private

Definition at line 863 of file MultiUserSettingsPanel.java.

javax.swing.JPasswordField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPassword
private

Definition at line 864 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgPort
private

Definition at line 865 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbMsgUsername
private

Definition at line 866 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbOops
private

Definition at line 867 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrHostname
private

Definition at line 868 of file MultiUserSettingsPanel.java.

javax.swing.JTextField org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.tbSolrPort
private

Definition at line 869 of file MultiUserSettingsPanel.java.

final TextBoxChangedListener org.sleuthkit.autopsy.corecomponents.MultiUserSettingsPanel.textBoxChangedListener
private

Definition at line 65 of file MultiUserSettingsPanel.java.

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

Definition at line 64 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 54 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 56 of file MultiUserSettingsPanel.java.


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

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