mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
added multiuser support in autopsy
This commit is contained in:
parent
b239a19329
commit
8c89e80a01
@ -387,8 +387,12 @@ public final class CoordinationService {
|
||||
* @return
|
||||
*/
|
||||
private String getFullyQualifiedNodePath(CategoryNode category, String nodePath) {
|
||||
if(nodePath.startsWith("/")){
|
||||
return categoryNodeToPath.get(category.getDisplayName()) + nodePath.toUpperCase();
|
||||
}else{
|
||||
return categoryNodeToPath.get(category.getDisplayName()) + "/" + nodePath.toUpperCase();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Exception type thrown by the coordination service.
|
||||
|
@ -238,9 +238,6 @@ public final class UserPreferences {
|
||||
}
|
||||
|
||||
public static boolean getIsMultiUserModeEnabled() {
|
||||
if (!IS_WINDOWS_OS) {
|
||||
return false;
|
||||
}
|
||||
return preferences.getBoolean(IS_MULTI_USER_MODE_ENABLED, false);
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ public final class MultiUserSettingsPanel extends javax.swing.JPanel {
|
||||
private static final String INVALID_DB_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidDatabasePort");
|
||||
private static final String INVALID_MESSAGE_SERVICE_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidMessageServicePort");
|
||||
private static final String INVALID_INDEXING_SERVER_PORT_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.validationErrMsg.invalidIndexingServerPort");
|
||||
private static final String NON_WINDOWS_OS_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.nonWindowsOs.msg");
|
||||
//private static final String NON_WINDOWS_OS_MSG = NbBundle.getMessage(MultiUserSettingsPanel.class, "MultiUserSettingsPanel.nonWindowsOs.msg");
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final MultiUserSettingsPanelController controller;
|
||||
private final Collection<JTextField> textBoxes = new ArrayList<>();
|
||||
@ -124,10 +124,6 @@ public final class MultiUserSettingsPanel extends javax.swing.JPanel {
|
||||
addDocumentListeners(textBoxes, textBoxChangedListener);
|
||||
goodIcon = new ImageIcon(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/good.png", false));
|
||||
badIcon = new ImageIcon(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/bad.png", false));
|
||||
if (!isWindowsOS) {
|
||||
cbEnableMultiUser.setEnabled(false);
|
||||
cbEnableMultiUser.setSelected(false);
|
||||
}
|
||||
enableMultiUserComponents(textBoxes, cbEnableMultiUser.isSelected());
|
||||
}
|
||||
|
||||
@ -491,11 +487,7 @@ public final class MultiUserSettingsPanel extends javax.swing.JPanel {
|
||||
|
||||
private void cbEnableMultiUserItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbEnableMultiUserItemStateChanged
|
||||
if (!cbEnableMultiUser.isSelected()) {
|
||||
if (!isWindowsOS) {
|
||||
tbOops.setText(NON_WINDOWS_OS_MSG);
|
||||
} else {
|
||||
tbOops.setText("");
|
||||
}
|
||||
bnTestDatabase.setEnabled(false);
|
||||
lbTestDatabase.setIcon(null);
|
||||
bnTestSolr.setEnabled(false);
|
||||
@ -684,9 +676,6 @@ public final class MultiUserSettingsPanel extends javax.swing.JPanel {
|
||||
}
|
||||
|
||||
void store() {
|
||||
if (!isWindowsOS) {
|
||||
return;
|
||||
}
|
||||
|
||||
boolean multiUserCasesEnabled = cbEnableMultiUser.isSelected();
|
||||
UserPreferences.setIsMultiUserModeEnabled(multiUserCasesEnabled);
|
||||
@ -741,11 +730,7 @@ public final class MultiUserSettingsPanel extends javax.swing.JPanel {
|
||||
* @return true if it's okay, false otherwise.
|
||||
*/
|
||||
boolean valid() {
|
||||
if (!isWindowsOS) {
|
||||
tbOops.setText(NON_WINDOWS_OS_MSG);
|
||||
} else {
|
||||
tbOops.setText("");
|
||||
}
|
||||
|
||||
if (cbEnableMultiUser.isSelected()) {
|
||||
return checkFieldsAndEnableButtons()
|
||||
|
Loading…
x
Reference in New Issue
Block a user