mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Update dbtype, remove comments, add bad credential warning
This commit is contained in:
parent
158f635492
commit
8c15029a08
@ -30,6 +30,7 @@ import javax.swing.event.DocumentListener;
|
|||||||
import org.sleuthkit.autopsy.casemodule.Case.CaseType;
|
import org.sleuthkit.autopsy.casemodule.Case.CaseType;
|
||||||
import org.sleuthkit.autopsy.core.UserPreferences;
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
|
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
|
||||||
|
import org.sleuthkit.datamodel.TskData.DbType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The wizard panel for the new case creation.
|
* The wizard panel for the new case creation.
|
||||||
@ -48,7 +49,7 @@ final class NewCaseVisualPanel1 extends JPanel implements DocumentListener {
|
|||||||
caseNameTextField.getDocument().addDocumentListener(this);
|
caseNameTextField.getDocument().addDocumentListener(this);
|
||||||
caseParentDirTextField.getDocument().addDocumentListener(this);
|
caseParentDirTextField.getDocument().addDocumentListener(this);
|
||||||
CaseDbConnectionInfo info = UserPreferences.getDatabaseConnectionInfo();
|
CaseDbConnectionInfo info = UserPreferences.getDatabaseConnectionInfo();
|
||||||
if (info.getDbType() == CaseDbConnectionInfo.DbType.UNKNOWN) {
|
if (info.getDbType() == DbType.UNKNOWN) {
|
||||||
rbSingleUserCase.setSelected(true);
|
rbSingleUserCase.setSelected(true);
|
||||||
rbSingleUserCase.setEnabled(false);
|
rbSingleUserCase.setEnabled(false);
|
||||||
rbSingleUserCase.setVisible(false);
|
rbSingleUserCase.setVisible(false);
|
||||||
|
@ -22,7 +22,8 @@ import java.util.prefs.PreferenceChangeListener;
|
|||||||
import java.util.prefs.Preferences;
|
import java.util.prefs.Preferences;
|
||||||
import org.openide.util.NbPreferences;
|
import org.openide.util.NbPreferences;
|
||||||
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
|
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
|
||||||
import org.sleuthkit.datamodel.CaseDbConnectionInfo.DbType;
|
import org.sleuthkit.datamodel.TskData.DbType;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides convenient access to a Preferences node for user preferences with
|
* Provides convenient access to a Preferences node for user preferences with
|
||||||
|
@ -9,7 +9,7 @@ import java.awt.Color;
|
|||||||
import javax.swing.event.DocumentEvent;
|
import javax.swing.event.DocumentEvent;
|
||||||
import javax.swing.event.DocumentListener;
|
import javax.swing.event.DocumentListener;
|
||||||
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
|
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
|
||||||
import org.sleuthkit.datamodel.CaseDbConnectionInfo.DbType;
|
import org.sleuthkit.datamodel.TskData.DbType;
|
||||||
import org.sleuthkit.autopsy.core.UserPreferences;
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
|
|
||||||
public class MultiUserSettingsPanel extends javax.swing.JPanel {
|
public class MultiUserSettingsPanel extends javax.swing.JPanel {
|
||||||
|
@ -498,7 +498,7 @@ public class IngestManager {
|
|||||||
|
|
||||||
// Cancel all the jobs already created. Force a stack trace for the log
|
// Cancel all the jobs already created. Force a stack trace for the log
|
||||||
// message.
|
// message.
|
||||||
// KDM logger.log(Level.INFO, String.format("Cancelling all ingest jobs called with %d jobs in jobsById map", this.jobsById.size()), new Exception("Cancelling all ingest jobs"));
|
logger.log(Level.INFO, String.format("Cancelling all ingest jobs called with %d jobs in jobsById map", this.jobsById.size()), new Exception("Cancelling all ingest jobs"));
|
||||||
for (IngestJob job : this.jobsById.values()) {
|
for (IngestJob job : this.jobsById.values()) {
|
||||||
logger.log(Level.INFO, "Cancelling ingest job {0}, already cancelled is {1}", new Object[]{job.getId(), job.isCancelled()});
|
logger.log(Level.INFO, "Cancelling ingest job {0}, already cancelled is {1}", new Object[]{job.getId(), job.isCancelled()});
|
||||||
job.cancel();
|
job.cancel();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user