Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel Class Reference

Inherits org.sleuthkit.autopsy.ingest.IngestModuleGlobalSettingsPanel, org.sleuthkit.autopsy.corecomponents.OptionsPanel, and AutoCloseable.

Classes

interface  UpdateAction
 

Public Member Functions

 WebCategoriesOptionsPanel (WebCategoriesDataModel dataModel)
 
void close ()
 
void load ()
 
void saveSettings ()
 
void store ()
 

Private Member Functions

void deleteEntryButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void editEntryButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void exportSetButtonActionPerformed (java.awt.event.ActionEvent evt)
 
DomainCategory getAddEditValue (DomainCategory original)
 
List< DomainCategorygetSelected ()
 
void importSetButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void initComponents ()
 
void newEntryButtonActionPerformed (java.awt.event.ActionEvent evt)
 
void onRefreshedData (DataFetchResult< List< DomainCategory >> categoriesResult)
 
void refreshComponentStates ()
 
void runUpdateAction (UpdateAction runnable) throws IllegalArgumentException, IOException, SQLException
 
void setDefaultCursor ()
 
void setWaitingCursor ()
 

Private Attributes

final JTablePanel< DomainCategorycategoryTable
 
final WebCategoriesDataModel dataModel
 
javax.swing.JButton deleteEntryButton
 
Set< String > domainSuffixes = new HashSet<>()
 
javax.swing.JButton editEntryButton
 
javax.swing.JButton exportSetButton
 
final JFileChooser fileChooser = new JFileChooser()
 
javax.swing.JButton importSetButton
 
final PropertyChangeListener ingestListener = (evt) -> refreshComponentStates()
 
javax.swing.JLabel ingestRunningWarning
 
boolean isRefreshing = false
 
javax.swing.JButton newEntryButton
 
final PropertyChangeListener weakIngestListener = WeakListeners.propertyChange(ingestListener, this)
 

Static Private Attributes

static final FileNameExtensionFilter DB_FILTER = new FileNameExtensionFilter("JSON", DEFAULT_EXTENSION)
 
static final String DEFAULT_EXTENSION = "json"
 
static final Logger logger = Logger.getLogger(WebCategoriesOptionsPanel.class.getName())
 

Detailed Description

The options panel displayed for import, export, and CRUD operations on domain categories.

Definition at line 60 of file WebCategoriesOptionsPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.WebCategoriesOptionsPanel ( WebCategoriesDataModel  dataModel)

Main constructor.

Parameters
dataModelThe data model that interacts with the database.

Definition at line 95 of file WebCategoriesOptionsPanel.java.

References org.sleuthkit.autopsy.ingest.IngestManager.addIngestJobEventListener(), and org.sleuthkit.autopsy.ingest.IngestManager.getInstance().

Member Function Documentation

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.close ( )
void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.deleteEntryButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 387 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.editEntryButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.exportSetButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 516 of file WebCategoriesOptionsPanel.java.

DomainCategory org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.getAddEditValue ( DomainCategory  original)
private

Shows the AddEditCategoryDialog to the user and returns the user-inputted DomainCategory or null if nothing was saved.

Parameters
originalIf editing a value, this is the original value being edited. If adding a new value, this should be null.
Returns

Definition at line 177 of file WebCategoriesOptionsPanel.java.

List<DomainCategory> org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.getSelected ( )
private

Returns the items selected in the table or null if no selection.

Returns
The items selected in the table or null if no selection.

Definition at line 112 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.importSetButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.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 247 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.load ( )

Load the saved state of all options, and refresh this OptionsPanel accordingly.

Implements org.sleuthkit.autopsy.corecomponents.OptionsPanel.

Definition at line 568 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.newEntryButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.onRefreshedData ( DataFetchResult< List< DomainCategory >>  categoriesResult)
private

When the result of loading the data is returned, this function handles updating the GUI.

Parameters
categoriesResultThe result of attempting to fetch the data.

Definition at line 135 of file WebCategoriesOptionsPanel.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchResult< R >.ResultType.SUCCESS.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.refreshComponentStates ( )
private

Refreshes the state of the components based on whether or not an item is selected as well as whether or not data is loading or ingest is happening.

Definition at line 153 of file WebCategoriesOptionsPanel.java.

References org.sleuthkit.autopsy.ingest.IngestManager.getInstance(), and org.sleuthkit.autopsy.ingest.IngestManager.isIngestRunning().

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.runUpdateAction ( UpdateAction  runnable) throws IllegalArgumentException, IOException, SQLException
private

Runs an action to update the state of the configuration and runs refresh when complete.

Parameters
runnableThe runnable action.
Exceptions
IllegalArgumentException
IOException
SQLException

Definition at line 233 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.saveSettings ( )

Definition at line 558 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.setDefaultCursor ( )
private

Set cursor to default.

Definition at line 205 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.setWaitingCursor ( )
private

Set cursor to waiting.

Definition at line 198 of file WebCategoriesOptionsPanel.java.

void org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.store ( )

Store the current state of all options in this OptionsPanel.

Implements org.sleuthkit.autopsy.corecomponents.OptionsPanel.

Definition at line 563 of file WebCategoriesOptionsPanel.java.

Member Data Documentation

final JTablePanel<DomainCategory> org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.categoryTable
private
Initial value:
= JTablePanel.getJTablePanel(Arrays.asList(
new ColumnModel<DomainCategory, DefaultCellModel<?>>(
Bundle.WebCategoriesOptionsPanel_categoryTable_suffixColumnName(),
(domCat) -> new DefaultCellModel<>(domCat.getHostSuffix())
.setTooltip(domCat.getHostSuffix()),
300
),
new ColumnModel<>(
Bundle.WebCategoriesOptionsPanel_categoryTable_categoryColumnName(),
(domCat) -> new DefaultCellModel<>(domCat.getCategory())
.setTooltip(domCat.getCategory()),
200
)
)).setKeyFunction((domCat) -> domCat.getHostSuffix())

Definition at line 70 of file WebCategoriesOptionsPanel.java.

final WebCategoriesDataModel org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.dataModel
private

Definition at line 67 of file WebCategoriesOptionsPanel.java.

final FileNameExtensionFilter org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.DB_FILTER = new FileNameExtensionFilter("JSON", DEFAULT_EXTENSION)
staticprivate

Definition at line 64 of file WebCategoriesOptionsPanel.java.

final String org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.DEFAULT_EXTENSION = "json"
staticprivate

Definition at line 63 of file WebCategoriesOptionsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.deleteEntryButton
private

Definition at line 549 of file WebCategoriesOptionsPanel.java.

Set<String> org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.domainSuffixes = new HashSet<>()
private

Definition at line 87 of file WebCategoriesOptionsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.editEntryButton
private

Definition at line 550 of file WebCategoriesOptionsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.exportSetButton
private

Definition at line 551 of file WebCategoriesOptionsPanel.java.

final JFileChooser org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.fileChooser = new JFileChooser()
private

Definition at line 66 of file WebCategoriesOptionsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.importSetButton
private

Definition at line 552 of file WebCategoriesOptionsPanel.java.

final PropertyChangeListener org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.ingestListener = (evt) -> refreshComponentStates()
private

Definition at line 85 of file WebCategoriesOptionsPanel.java.

javax.swing.JLabel org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.ingestRunningWarning
private

Definition at line 553 of file WebCategoriesOptionsPanel.java.

boolean org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.isRefreshing = false
private

Definition at line 88 of file WebCategoriesOptionsPanel.java.

final Logger org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.logger = Logger.getLogger(WebCategoriesOptionsPanel.class.getName())
staticprivate

Definition at line 62 of file WebCategoriesOptionsPanel.java.

javax.swing.JButton org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.newEntryButton
private

Definition at line 554 of file WebCategoriesOptionsPanel.java.

final PropertyChangeListener org.sleuthkit.autopsy.url.analytics.domaincategorization.WebCategoriesOptionsPanel.weakIngestListener = WeakListeners.propertyChange(ingestListener, this)
private

Definition at line 86 of file WebCategoriesOptionsPanel.java.


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

Copyright © 2012-2022 Basis Technology. Generated on: Sat Sep 24 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.