roughed in case column

This commit is contained in:
Brian Sweeney 2018-06-12 11:48:37 -06:00
parent 6a1863c5fd
commit 2180b5d11e
3 changed files with 11 additions and 0 deletions

View File

@ -131,6 +131,8 @@ public class CentralRepositoryFileInstanceNode extends DisplayableItemNode {
final String fullPath = centralRepoFile.getFilePath(); final String fullPath = centralRepoFile.getFilePath();
final File file = new File(fullPath); final File file = new File(fullPath);
final String caseName = centralRepoFile.getCorrelationCase().getDisplayName();
final String name = file.getName(); final String name = file.getName();
final String parent = file.getParent(); final String parent = file.getParent();
@ -139,6 +141,7 @@ public class CentralRepositoryFileInstanceNode extends DisplayableItemNode {
map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.File.toString(), name); map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.File.toString(), name);
map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.ParentPath.toString(), parent); map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.ParentPath.toString(), parent);
map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.HashsetHits.toString(), ""); map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.HashsetHits.toString(), "");
map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.Case.toString(), caseName);
map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.DataSource.toString(), caseQualifiedDataSource); map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.DataSource.toString(), caseQualifiedDataSource);
map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.MimeType.toString(), ""); map.put(CentralRepositoryFileInstanceNode.CentralRepoFileInstancesPropertyType.MimeType.toString(), "");
} }
@ -151,6 +154,7 @@ public class CentralRepositoryFileInstanceNode extends DisplayableItemNode {
"CentralRepoFileInstancesPropertyType.fileColLbl=File", "CentralRepoFileInstancesPropertyType.fileColLbl=File",
"CentralRepoFileInstancesPropertyType.pathColLbl=Parent Path", "CentralRepoFileInstancesPropertyType.pathColLbl=Parent Path",
"CentralRepoFileInstancesPropertyType.hashsetHitsColLbl=Hash Set Hits", "CentralRepoFileInstancesPropertyType.hashsetHitsColLbl=Hash Set Hits",
"CentralRepoFileInstancesPropertyType.caseColLbl=Case",
"CentralRepoFileInstancesPropertyType.dataSourceColLbl=Data Source", "CentralRepoFileInstancesPropertyType.dataSourceColLbl=Data Source",
"CentralRepoFileInstancesPropertyType.mimeTypeColLbl=MIME Type" "CentralRepoFileInstancesPropertyType.mimeTypeColLbl=MIME Type"
}) })
@ -159,6 +163,7 @@ public class CentralRepositoryFileInstanceNode extends DisplayableItemNode {
File(Bundle.CentralRepoFileInstancesPropertyType_fileColLbl()), File(Bundle.CentralRepoFileInstancesPropertyType_fileColLbl()),
ParentPath(Bundle.CentralRepoFileInstancesPropertyType_pathColLbl()), ParentPath(Bundle.CentralRepoFileInstancesPropertyType_pathColLbl()),
HashsetHits(Bundle.CentralRepoFileInstancesPropertyType_hashsetHitsColLbl()), HashsetHits(Bundle.CentralRepoFileInstancesPropertyType_hashsetHitsColLbl()),
Case(Bundle.CentralRepoFileInstancesPropertyType_caseColLbl()),
DataSource(Bundle.CentralRepoFileInstancesPropertyType_dataSourceColLbl()), DataSource(Bundle.CentralRepoFileInstancesPropertyType_dataSourceColLbl()),
MimeType(Bundle.CentralRepoFileInstancesPropertyType_mimeTypeColLbl()); MimeType(Bundle.CentralRepoFileInstancesPropertyType_mimeTypeColLbl());

View File

@ -128,6 +128,7 @@ public class Md5Node extends DisplayableItemNode {
static private void fillPropertyMap(Map<String, Object> map, Md5Node node) { static private void fillPropertyMap(Map<String, Object> map, Md5Node node) {
map.put(CommonFileParentPropertyType.File.toString(), node.getMd5()); map.put(CommonFileParentPropertyType.File.toString(), node.getMd5());
map.put(CommonFileParentPropertyType.InstanceCount.toString(), node.getCommonFileCount()); map.put(CommonFileParentPropertyType.InstanceCount.toString(), node.getCommonFileCount());
map.put(CommonFileParentPropertyType.Case.toString(), "TODO");
map.put(CommonFileParentPropertyType.DataSource.toString(), node.getDataSources()); map.put(CommonFileParentPropertyType.DataSource.toString(), node.getDataSources());
} }
@ -176,11 +177,13 @@ public class Md5Node extends DisplayableItemNode {
@NbBundle.Messages({ @NbBundle.Messages({
"CommonFileParentPropertyType.fileColLbl=File", "CommonFileParentPropertyType.fileColLbl=File",
"CommonFileParentPropertyType.instanceColLbl=Instance Count", "CommonFileParentPropertyType.instanceColLbl=Instance Count",
"CommonFileParentPropertyType.caseColLbl=Case",
"CommonFileParentPropertyType.dataSourceColLbl=Data Source"}) "CommonFileParentPropertyType.dataSourceColLbl=Data Source"})
public enum CommonFileParentPropertyType { public enum CommonFileParentPropertyType {
File(Bundle.CommonFileParentPropertyType_fileColLbl()), File(Bundle.CommonFileParentPropertyType_fileColLbl()),
InstanceCount(Bundle.CommonFileParentPropertyType_instanceColLbl()), InstanceCount(Bundle.CommonFileParentPropertyType_instanceColLbl()),
Case(Bundle.CommonFileParentPropertyType_caseColLbl()),
DataSource(Bundle.CommonFileParentPropertyType_dataSourceColLbl()); DataSource(Bundle.CommonFileParentPropertyType_dataSourceColLbl());
final private String displayString; final private String displayString;

View File

@ -95,6 +95,7 @@ public class SleuthkitCaseFileInstanceNode extends FileNode {
map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.File.toString(), node.getName()); map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.File.toString(), node.getName());
map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.ParentPath.toString(), node.getContent().getParentPath()); map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.ParentPath.toString(), node.getContent().getParentPath());
map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.HashsetHits.toString(), getHashSetHitsForFile(node.getContent())); map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.HashsetHits.toString(), getHashSetHitsForFile(node.getContent()));
map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.Case.toString(), "TODO");
map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.DataSource.toString(), node.getDataSource()); map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.DataSource.toString(), node.getDataSource());
map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.MimeType.toString(), StringUtils.defaultString(node.content.getMIMEType())); map.put(SleuthkitCaseFileInstanceNode.SleuthkitCaseFileInstanceNodePropertyType.MimeType.toString(), StringUtils.defaultString(node.content.getMIMEType()));
} }
@ -107,6 +108,7 @@ public class SleuthkitCaseFileInstanceNode extends FileNode {
"SleuthkitCaseFileInstanceNodePropertyType.fileColLbl=File", "SleuthkitCaseFileInstanceNodePropertyType.fileColLbl=File",
"SleuthkitCaseFileInstanceNodePropertyType.pathColLbl=Parent Path", "SleuthkitCaseFileInstanceNodePropertyType.pathColLbl=Parent Path",
"SleuthkitCaseFileInstanceNodePropertyType.hashsetHitsColLbl=Hash Set Hits", "SleuthkitCaseFileInstanceNodePropertyType.hashsetHitsColLbl=Hash Set Hits",
"SleuthkitCaseFileInstanceNodePropertyType.caseColLbl=Case",
"SleuthkitCaseFileInstanceNodePropertyType.dataSourceColLbl=Data Source", "SleuthkitCaseFileInstanceNodePropertyType.dataSourceColLbl=Data Source",
"SleuthkitCaseFileInstanceNodePropertyType.mimeTypeColLbl=MIME Type" "SleuthkitCaseFileInstanceNodePropertyType.mimeTypeColLbl=MIME Type"
}) })
@ -115,6 +117,7 @@ public class SleuthkitCaseFileInstanceNode extends FileNode {
File(Bundle.SleuthkitCaseFileInstanceNodePropertyType_fileColLbl()), File(Bundle.SleuthkitCaseFileInstanceNodePropertyType_fileColLbl()),
ParentPath(Bundle.SleuthkitCaseFileInstanceNodePropertyType_pathColLbl()), ParentPath(Bundle.SleuthkitCaseFileInstanceNodePropertyType_pathColLbl()),
HashsetHits(Bundle.SleuthkitCaseFileInstanceNodePropertyType_hashsetHitsColLbl()), HashsetHits(Bundle.SleuthkitCaseFileInstanceNodePropertyType_hashsetHitsColLbl()),
Case(Bundle.SleuthkitCaseFileInstanceNodePropertyType_caseColLbl()),
DataSource(Bundle.SleuthkitCaseFileInstanceNodePropertyType_dataSourceColLbl()), DataSource(Bundle.SleuthkitCaseFileInstanceNodePropertyType_dataSourceColLbl()),
MimeType(Bundle.SleuthkitCaseFileInstanceNodePropertyType_mimeTypeColLbl()); MimeType(Bundle.SleuthkitCaseFileInstanceNodePropertyType_mimeTypeColLbl());