19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.LinkedHashMap;
22 import java.util.List;
24 import org.openide.nodes.Sheet;
25 import org.openide.util.NbBundle;
47 this(fsContent,
true);
70 @NbBundle.Messages(
"AbstractFsContentNode.noDesc.text=no description")
72 Sheet sheet = super.createSheet();
73 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
74 if (sheetSet == null) {
75 sheetSet = Sheet.createPropertiesSet();
79 Map<String, Object> map =
new LinkedHashMap<>();
81 final String
NO_DESCR = Bundle.AbstractFsContentNode_noDesc_text();
83 sheetSet.put(
new NodeProperty<>(AbstractFilePropertyType.NAME.toString(),
84 AbstractFilePropertyType.NAME.toString(),
101 for (AbstractFilePropertyType propType : AbstractFilePropertyType.values()) {
102 final String propString = propType.toString();
103 sheetSet.put(
new NodeProperty<>(propString, propString, NO_DESCR, map.get(propString)));
105 if (directoryBrowseMode) {
106 sheetSet.put(
new NodeProperty<>(HIDE_PARENT, HIDE_PARENT, HIDE_PARENT, HIDE_PARENT));
final void addScoreProperty(Sheet.Set sheetSet, List< ContentTag > tags)
final CorrelationAttributeInstance getCorrelationAttributeInstance()
static boolean useCentralRepo()
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
boolean directoryBrowseMode
static final String HIDE_PARENT
static final String NO_DESCR
final void addCountProperty(Sheet.Set sheetSet, CorrelationAttributeInstance attribute)
final void addCommentProperty(Sheet.Set sheetSet, List< ContentTag > tags, CorrelationAttributeInstance attribute)
synchronized static Logger getLogger(String name)
static boolean hideCentralRepoCommentsAndOccurrences()
final List< ContentTag > getContentTagsFromDatabase()
boolean getDirectoryBrowseMode()