20 package org.sleuthkit.autopsy.commonpropertiessearch;
23 import java.util.ArrayList;
24 import java.util.Arrays;
25 import java.util.List;
26 import javax.swing.Action;
27 import org.openide.nodes.Children;
28 import org.openide.nodes.Sheet;
29 import org.openide.util.NbBundle;
30 import org.openide.util.lookup.Lookups;
52 super(Children.LEAF, Lookups.fixed(content));
53 this.crFile = content;
54 this.setDisplayName(
new File(this.crFile.getFilePath()).getName());
64 List<Action> actionsList =
new ArrayList<>();
66 actionsList.addAll(Arrays.asList(super.getActions(
true)));
68 return actionsList.toArray(
new Action[actionsList.size()]);
73 return visitor.
visit(
this);
90 Sheet sheet =
new Sheet();
91 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
93 if (sheetSet == null) {
94 sheetSet = Sheet.createPropertiesSet();
100 final String fullPath = centralRepoFile.
getFilePath();
101 final File file =
new File(fullPath);
105 final String name = file.getName();
106 final String parent = file.getParent();
111 final String NO_DESCR = Bundle.CommonFilesSearchResultsViewerTable_noDescText();
116 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), NO_DESCR, parent));
117 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), NO_DESCR, dataSourceName));
118 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_caseColLbl(), Bundle.CommonFilesSearchResultsViewerTable_caseColLbl(), NO_DESCR, caseName));
120 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_localPath(), Bundle.CommonFilesSearchResultsViewerTable_localPath(), NO_DESCR, parent));
121 sheetSet.put(
new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_valueColLbl(), Bundle.CommonFilesSearchResultsViewerTable_valueColLbl(), NO_DESCR, value));
final AbstractCommonAttributeInstance.NODE_TYPE nodeType
String getCorrelationValue()
final CorrelationAttributeInstance crFile
T visit(DataSourcesNode in)
CorrelationAttributeInstance getCorrelationAttributeInstance()
Action[] getActions(boolean context)
CorrelationDataSource getCorrelationDataSource()
CorrelationCase getCorrelationCase()