Update dbtype, remove comments, add bad credential warning

This commit is contained in:
Karl Mortensen 2015-04-13 16:58:50 -04:00
parent 158f635492
commit 8c15029a08
4 changed files with 6 additions and 4 deletions

View File

@ -30,6 +30,7 @@ import javax.swing.event.DocumentListener;
import org.sleuthkit.autopsy.casemodule.Case.CaseType;
import org.sleuthkit.autopsy.core.UserPreferences;
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
import org.sleuthkit.datamodel.TskData.DbType;
/**
* The wizard panel for the new case creation.
@ -48,7 +49,7 @@ final class NewCaseVisualPanel1 extends JPanel implements DocumentListener {
caseNameTextField.getDocument().addDocumentListener(this);
caseParentDirTextField.getDocument().addDocumentListener(this);
CaseDbConnectionInfo info = UserPreferences.getDatabaseConnectionInfo();
if (info.getDbType() == CaseDbConnectionInfo.DbType.UNKNOWN) {
if (info.getDbType() == DbType.UNKNOWN) {
rbSingleUserCase.setSelected(true);
rbSingleUserCase.setEnabled(false);
rbSingleUserCase.setVisible(false);

View File

@ -22,7 +22,8 @@ import java.util.prefs.PreferenceChangeListener;
import java.util.prefs.Preferences;
import org.openide.util.NbPreferences;
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

View File

@ -9,7 +9,7 @@ import java.awt.Color;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import org.sleuthkit.datamodel.CaseDbConnectionInfo;
import org.sleuthkit.datamodel.CaseDbConnectionInfo.DbType;
import org.sleuthkit.datamodel.TskData.DbType;
import org.sleuthkit.autopsy.core.UserPreferences;
public class MultiUserSettingsPanel extends javax.swing.JPanel {

View File

@ -498,7 +498,7 @@ public class IngestManager {
// Cancel all the jobs already created. Force a stack trace for the log
// 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()) {
logger.log(Level.INFO, "Cancelling ingest job {0}, already cancelled is {1}", new Object[]{job.getId(), job.isCancelled()});
job.cancel();