AbstractFile
.
+ *
+ * @param fsContent the file which is being represented by this node
+ * @param caseName the name of the case
+ * @param dataSource the datasource which contains the file
*
- * @param fsContent
- * @param dataSource
*/
public CaseDBCommonAttributeInstanceNode(AbstractFile fsContent, String caseName, String dataSource) {
super(fsContent);
@@ -48,20 +53,20 @@ public class CaseDBCommonAttributeInstanceNode extends FileNode {
}
@Override
- public boolean isLeafTypeNode(){
+ public boolean isLeafTypeNode() {
//Not used atm - could maybe be leveraged for better use in Children objects
return true;
}
-
+
@Override
public List
when
- * findFiles()
is called, which organizes files by md5 to
- * prepare to display in viewer.
+ * findMatches()
is called, which organizes files by md5 to prepare
+ * to display in viewer.
*
* This entire thing runs on a background thread where exceptions are handled.
*/
@@ -93,14 +93,14 @@ public abstract class IntraCaseCommonAttributeSearcher extends AbstractCommonAtt
* @throws SQLException
*/
@Override
- public CommonAttributeSearchResults findFiles() throws TskCoreException, NoCurrentCaseException, SQLException {
+ public CommonAttributeSearchResults findMatches() throws TskCoreException, NoCurrentCaseException, SQLException {
MapbuildSqlSelectStatement()
function to create an SQL boolean
- * expression which will filter our matches based on mime type. The
+ * Should be used by subclasses, in their
+ * buildSqlSelectStatement()
function to create an SQL boolean
+ * expression which will filter our matches based on mime type. The
* expression will be conjoined to base query with an AND operator.
- *
- * @return sql fragment of the form:
- * 'and "mime_type" in ( [comma delimited list of mime types] )'
- * or empty string in the event that no types to filter on were given.
+ *
+ * @return sql fragment of the form: 'and "mime_type" in ( [comma delimited
+ * list of mime types] )' or empty string in the event that no types to
+ * filter on were given.
*/
String determineMimeTypeFilter() {
diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/SingleInterCaseCommonAttributeSearcher.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/SingleInterCaseCommonAttributeSearcher.java
index 5bed8625a0..8091e96fbb 100644
--- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/SingleInterCaseCommonAttributeSearcher.java
+++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/SingleInterCaseCommonAttributeSearcher.java
@@ -20,42 +20,44 @@
package org.sleuthkit.autopsy.commonfilesearch;
import java.sql.SQLException;
-import java.util.List;
import java.util.Map;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
import org.sleuthkit.datamodel.TskCoreException;
+import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type;
/**
- *
- *
+ *
+ *
*/
public class SingleInterCaseCommonAttributeSearcher extends InterCaseCommonAttributeSearcher {
-
+
private final int corrleationCaseId;
private String correlationCaseName;
-
+
/**
- *
+ *
* @param correlationCaseId
* @param filterByMediaMimeType
* @param filterByDocMimeType
- * @throws EamDbException
+ * @throws EamDbException
*/
- public SingleInterCaseCommonAttributeSearcher(int correlationCaseId, Map") + .append(sectionName) + .append("
") + .append(message) + .append("
"); //NON-NLS + html.append(key); + html.append(" | "); //NON-NLS + html.append(value); + html.append(" |