19 package org.sleuthkit.autopsy.allcasessearch;
22 import java.util.ArrayList;
23 import java.util.Arrays;
24 import java.util.List;
25 import javax.swing.Action;
26 import org.openide.nodes.Children;
27 import org.openide.nodes.Sheet;
28 import org.openide.util.NbBundle;
29 import org.openide.util.lookup.Lookups;
45 super(Children.LEAF, Lookups.fixed(content));
46 this.instance = content;
47 this.setDisplayName(
new File(this.instance.getFilePath()).getName());
61 List<Action> actionsList =
new ArrayList<>();
63 actionsList.addAll(Arrays.asList(super.getActions(
true)));
65 return actionsList.toArray(
new Action[actionsList.size()]);
70 return visitor.
visit(
this);
84 "CorrelationAttributeInstanceNode.columnName.name=Name",
85 "CorrelationAttributeInstanceNode.columnName.case=Case",
86 "CorrelationAttributeInstanceNode.columnName.dataSource=Data Source",
87 "CorrelationAttributeInstanceNode.columnName.known=Known",
88 "CorrelationAttributeInstanceNode.columnName.path=Path",
89 "CorrelationAttributeInstanceNode.columnName.comment=Comment",
90 "CorrelationAttributeInstanceNode.columnName.device=Device"
94 Sheet sheet =
new Sheet();
95 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
98 sheetSet = Sheet.createPropertiesSet();
105 final File file =
new File(path);
106 final String name = file.getName();
109 final String dataSourceName = dataSource.
getName();
111 final String comment = centralRepoFile.
getComment();
114 final String NO_DESCR =
"";
117 Bundle.CorrelationAttributeInstanceNode_columnName_name(),
118 Bundle.CorrelationAttributeInstanceNode_columnName_name(), NO_DESCR, name));
120 Bundle.CorrelationAttributeInstanceNode_columnName_case(),
121 Bundle.CorrelationAttributeInstanceNode_columnName_case(), NO_DESCR, caseName));
123 Bundle.CorrelationAttributeInstanceNode_columnName_dataSource(),
124 Bundle.CorrelationAttributeInstanceNode_columnName_dataSource(), NO_DESCR, dataSourceName));
126 Bundle.CorrelationAttributeInstanceNode_columnName_known(),
127 Bundle.CorrelationAttributeInstanceNode_columnName_known(), NO_DESCR, known));
129 Bundle.CorrelationAttributeInstanceNode_columnName_path(),
130 Bundle.CorrelationAttributeInstanceNode_columnName_path(), NO_DESCR, path));
132 Bundle.CorrelationAttributeInstanceNode_columnName_comment(),
133 Bundle.CorrelationAttributeInstanceNode_columnName_comment(), NO_DESCR, comment));
135 Bundle.CorrelationAttributeInstanceNode_columnName_device(),
136 Bundle.CorrelationAttributeInstanceNode_columnName_device(), NO_DESCR, device));
CorrelationAttributeInstance getCorrelationAttributeInstance()
final CorrelationAttributeInstance instance
T visit(DataSourcesNode in)
TskData.FileKnown getKnownStatus()
CorrelationDataSource getCorrelationDataSource()
Action[] getActions(boolean context)
CorrelationCase getCorrelationCase()