Merge branch 'master' of github.com:sleuthkit/autopsy

This commit is contained in:
Dick Fickling
2012-06-12 15:43:28 -04:00
4 changed files with 49 additions and 8 deletions
+1
View File
@@ -15,3 +15,4 @@ by Tika (word docs, PDF, HTML, JPEG, etc.) are not being added to
the index.
- For unknown file types, we extract UTF-8 (Ascii) and UTF-16 English
strings. No non-English strings are extracted.
- Comments and java script in HTML files are not being added to index.
@@ -129,12 +129,28 @@ public abstract class KeywordSearchListsAbstract {
}
/**
* get list of all loaded keyword list names
* Get list names of all loaded keyword list names
* @return List of keyword list names
*/
List<String> getListNames() {
return new ArrayList<String>(theLists.keySet());
}
/**
* Get list names of all locked or unlocked loaded keyword list names
* @param locked true if look for locked lists, false otherwise
* @return List of keyword list names
*/
List<String> getListNames(boolean locked) {
ArrayList<String> lists = new ArrayList<String>();
for (String listName : theLists.keySet()) {
KeywordSearchList list = theLists.get(listName);
if (locked == list.isLocked())
lists.add(listName);
}
return lists;
}
/**
* return first list that contains the keyword
@@ -175,6 +191,21 @@ public abstract class KeywordSearchListsAbstract {
int getNumberLists() {
return theLists.size();
}
/**
* get number of unlocked or locked lists currently stored
* @param locked true if look for locked lists, false otherwise
* @return number of unlocked lists currently stored
*/
int getNumberLists(boolean locked) {
int numLists = 0;
for (String listName : theLists.keySet()) {
KeywordSearchList list = theLists.get(listName);
if (locked == list.isLocked())
++ numLists;
}
return numLists;
}
/**
* get list by name or null
@@ -192,9 +192,18 @@ class KeywordSearchListsManagementPanel extends javax.swing.JPanel {
}
boolean shouldAdd = false;
if (writer.listExists(listName)) {
boolean replace = KeywordSearchUtil.displayConfirmDialog("New Keyword List", "Keyword List <" + listName + "> already exists, do you want to replace it?", KeywordSearchUtil.DIALOG_MESSAGE_TYPE.WARN);
if (replace) {
shouldAdd = true;
if (writer.getList(listName).isLocked() ) {
boolean replace = KeywordSearchUtil.displayConfirmDialog("New Keyword List", "Keyword List <" + listName
+ "> already exists as a read-only list. Do you want to replace it for the duration of the program (the change will not be persistent).", KeywordSearchUtil.DIALOG_MESSAGE_TYPE.WARN);
if (replace) {
shouldAdd = true;
}
}
else {
boolean replace = KeywordSearchUtil.displayConfirmDialog("New Keyword List", "Keyword List <" + listName + "> already exists, do you want to replace it?", KeywordSearchUtil.DIALOG_MESSAGE_TYPE.WARN);
if (replace) {
shouldAdd = true;
}
}
} else {
shouldAdd = true;
@@ -323,7 +332,7 @@ class KeywordSearchListsManagementPanel extends javax.swing.JPanel {
@Override
public int getRowCount() {
return listsHandle.getNumberLists();
return listsHandle.getNumberLists(false);
}
@Override
@@ -333,7 +342,7 @@ class KeywordSearchListsManagementPanel extends javax.swing.JPanel {
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
return listsHandle.getListNames().get(rowIndex);
return listsHandle.getListNames(false).get(rowIndex);
}
@Override
+2 -2
View File
@@ -1,7 +1,7 @@
3.0.0b3 (June 12, 2012)
New Features:
New Features (Funded by US Army Intelligence Center of Excellence (USAICoE)):
- Ingest manager runs triage/ingest task after disk is added.
- Keyword search (indexed via SOLR)
- Basic keyword search (indexed via SOLR)
- Recent activity extract (web artifacts, recent documents, devices, etc.)
- Improved UI