19 package org.sleuthkit.autopsy.commonfilesearch;
21 import java.util.List;
22 import org.apache.commons.lang3.StringUtils;
23 import org.openide.nodes.Sheet;
65 return visitor.
visit(
this);
78 Sheet sheet =
new Sheet();
79 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
80 if (sheetSet == null) {
81 sheetSet = Sheet.createPropertiesSet();
84 List<ContentTag> tags = getContentTagsFromDatabase();
86 final String NO_DESCR = Bundle.CommonFilesSearchResultsViewerTable_noDescText();
88 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_filesColLbl(), Bundle.CommonFilesSearchResultsViewerTable_filesColLbl(), NO_DESCR, this.getContent().getName()));
90 addScoreProperty(sheetSet, tags);
94 correlationAttribute = getCorrelationAttributeInstance();
96 addCommentProperty(sheetSet, tags, correlationAttribute);
99 addCountProperty(sheetSet, correlationAttribute);
101 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), NO_DESCR, this.getContent().getParentPath()));
102 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), NO_DESCR, this.
getDataSource()));
103 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_mimeTypeColLbl(), Bundle.CommonFilesSearchResultsViewerTable_mimeTypeColLbl(), NO_DESCR, StringUtils.defaultString(this.getContent().getMIMEType())));
104 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_caseColLbl1(), Bundle.CommonFilesSearchResultsViewerTable_caseColLbl1(), NO_DESCR,
caseName));
static boolean useCentralRepo()
T visit(DataSourcesNode in)
CaseDBCommonAttributeInstanceNode(AbstractFile fsContent, String caseName, String dataSource)
static boolean hideCentralRepoCommentsAndOccurrences()