Go to the documentation of this file.
19package org.sleuthkit.autopsy.datamodel;
21import org.openide.nodes.AbstractNode;
22import org.openide.nodes.Children;
23import org.openide.nodes.Sheet;
24import org.openide.util.Lookup;
25import org.sleuthkit.datamodel.AbstractFile;
26import org.sleuthkit.datamodel.BlackboardArtifact;
27import org.sleuthkit.datamodel.BlackboardAttribute;
28import org.sleuthkit.datamodel.TskCoreException;
44 static final String FILE_PARENT_NODE_KEY =
"orgsleuthkitautopsydatamodel" +
"FileTypeParentNode";
55 static AbstractFile findLinked(BlackboardArtifact artifact)
throws TskCoreException {
56 BlackboardAttribute pathIDAttribute = artifact.getAttribute(
new BlackboardAttribute.Type(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PATH_ID));
57 if (pathIDAttribute !=
null) {
58 long contentID = pathIDAttribute.getValueLong();
59 if (contentID != -1) {
60 return artifact.getSleuthkitCase().getAbstractFileById(contentID);
94 super(children, lookup);
153 Sheet currentSheet = this.getSheet();
154 Sheet.Set currentPropsSet = currentSheet.get(Sheet.PROPERTIES);
155 Property<?>[] currentProps = currentPropsSet.getProperties();
157 for (
int i = 0; i < currentProps.length; i++) {
158 if (currentProps[i].getName().equals(newProp.getName())) {
159 currentProps[i] = newProp;
163 currentPropsSet.put(currentProps);
164 currentSheet.put(currentPropsSet);
165 this.setSheet(currentSheet);
NodeSelectionInfo getChildNodeSelectionInfo()
abstract boolean isLeafTypeNode()
DisplayableItemNode(Children children)
abstract< T > T accept(DisplayableItemNodeVisitor< T > visitor)
void setChildNodeSelectionInfo(NodeSelectionInfo selectedChildNodeInfo)
synchronized final void updatePropertySheet(NodeProperty<?>... newProps)
DisplayableItemNode(Children children, Lookup lookup)
NodeSelectionInfo selectedChildNodeInfo
abstract String getItemType()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.