Autopsy
4.8.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits JPanel, and org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Public Member Functions | |
AnnotationsContentViewer () | |
DataContentViewer | createInstance () |
Component | getComponent () |
String | getTitle () |
String | getToolTip () |
int | isPreferred (Node node) |
boolean | isSupported (Node node) |
void | resetComponent () |
void | setNode (Node node) |
Private Member Functions | |
void | addCentralRepositoryEntry (StringBuilder html, CorrelationAttributeInstance attributeInstance) |
void | addMessage (StringBuilder html, String message) |
void | addRow (StringBuilder html, String key, String value) |
void | addTagEntry (StringBuilder html, Tag tag) |
void | endSection (StringBuilder html) |
void | endTable (StringBuilder html) |
String | formatHtmlString (String text) |
void | initComponents () |
void | populateCentralRepositoryData (StringBuilder html, BlackboardArtifact artifact, AbstractFile sourceFile) |
void | populateTagData (StringBuilder html, Content content) |
void | populateTagData (StringBuilder html, BlackboardArtifact artifact, Content sourceFile) |
void | setText (String text) |
void | startSection (StringBuilder html, String sectionName) |
void | startTable (StringBuilder html) |
Private Attributes | |
javax.swing.JScrollPane | jScrollPane5 |
javax.swing.JTextPane | jTextPane1 |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(AnnotationsContentViewer.class.getName()) |
Annotations view of file contents.
Definition at line 59 of file AnnotationsContentViewer.java.
org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.AnnotationsContentViewer | ( | ) |
Creates an instance of AnnotationsContentViewer.
Definition at line 66 of file AnnotationsContentViewer.java.
References org.sleuthkit.autopsy.contentviewers.Utilities.configureTextPaneAsHtml().
|
private |
Add a data table containing information about a correlation attribute instance in the Central Repository.
html | The HTML text to add the table to. |
attributeInstance | The attribute instance whose information will be used to populate the table. |
Definition at line 314 of file AnnotationsContentViewer.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getComment(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getCorrelationCase(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.getDisplayName(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.getDisplayName(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getFilePath().
|
private |
Add a message.
html | The HTML text to add the message to. |
message | The message text. |
Definition at line 275 of file AnnotationsContentViewer.java.
|
private |
Add a data row to a table.
html | The HTML text to add the row to. |
key | The key for the left column of the data row. |
value | The value for the right column of the data row. |
Definition at line 339 of file AnnotationsContentViewer.java.
|
private |
Add a data table containing information about a tag.
html | The HTML text to add the table to. |
tag | The tag whose information will be used to populate the table. |
Definition at line 292 of file AnnotationsContentViewer.java.
DataContentViewer org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.createInstance | ( | ) |
Create and return a new instance of your viewer. The reason that this is needed is because the specific viewer modules will be found via NetBeans Lookup and the type will only be DataContentViewer. This method is used to get an instance of your specific type.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 424 of file AnnotationsContentViewer.java.
|
private |
End a data section.
html | The HTML text on which to end a section. |
Definition at line 361 of file AnnotationsContentViewer.java.
|
private |
End a data table.
html | The HTML text on which to end a table. |
Definition at line 352 of file AnnotationsContentViewer.java.
|
private |
Apply escape sequence to special characters. Line feed and carriage return character combinations will be converted to HTML line breaks.
text | The text to format. |
Definition at line 372 of file AnnotationsContentViewer.java.
Component org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.getComponent | ( | ) |
Return the Swing Component to display. Implementations of this method that extend JPanel and do a 'return this;'. Otherwise return an internal instance of the JPanel.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 457 of file AnnotationsContentViewer.java.
String org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.getTitle | ( | ) |
Returns the title of this viewer to display in the tab.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 414 of file AnnotationsContentViewer.java.
String org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.getToolTip | ( | ) |
Returns a short description of this viewer to use as a tool tip for its tab.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 419 of file AnnotationsContentViewer.java.
|
private |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
Definition at line 384 of file AnnotationsContentViewer.java.
int org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.isPreferred | ( | Node | node | ) |
Checks whether the given viewer is preferred for the Node. This is a bit subjective, but the idea is that Autopsy wants to display the most relevant tab. The more generic the viewer, the lower the return value should be. This will only be called on viewers that support the given node (i.e., isSupported() has already returned true).
The following are some examples of the current levels in use. If the selected node is an artifact, the level may be determined by both the artifact and its associated file.
Level 7 - Based on the artifact, if any, in the selected node and specific to an artifact type or types. Current content viewers that can return level 7 are the Messages tab (only supported for email and SMS) and the Indexed Text tab when the selected node is a Keyword Search hit.
Level 6 - Based on the artifact, if any, in the selected node but not restricted to particular types. The current content viewer that can return level 6 is the Results tab. It returns this level for most artifact types, unless the associated file is assumed to be of greater interest (for example, a Hash Set Hit will not be level 6 because the file itself is of greater interest).
Level 5 - Based on the file in the selected node and very specific to the file type. The current content viewer that will return level 5 is the Application tab, which supports media files (such as images) and certain types of databases.
Level 4 - Based on the file in the selected node but fairly general. Currently this is the level returned by the Indexed Text tab if Keyword Search has been run (unless the node is a Keyword Search hit or a Credit Card account). This is the default tab for most files.
Level 3 - Based on the artifact, if any, in the selected node where the artifact is thought to be of less interest than the associated file. This level is returned by the Results tab for artifacts like Hash Set Hits.
Level 1 - Very general and should always be available. The Hex, Strings, and Metadata tabs are all this level
Level 0 - For cases where the content viewer should never be displayed by default.
node | Node to check for preference |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 452 of file AnnotationsContentViewer.java.
boolean org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.isSupported | ( | Node | node | ) |
Checks whether the given node is supported by the viewer. This will be used to enable or disable the tab for the viewer.
node | Node to check for support |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 429 of file AnnotationsContentViewer.java.
|
private |
Populate the "Central Repository Comments" section with data.
html | The HTML text to update. |
artifact | A selected artifact (can be null). |
sourceFile | A selected file, or a source file of the selected artifact. |
Definition at line 196 of file AnnotationsContentViewer.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.FILES_TYPE_ID, org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.fromTSKDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getCase(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getDefinedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.getName(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.isEnabled(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.makeInstancesFromBlackboardArtifact().
|
private |
Populate the "Selected Item" sections with tag data for the supplied content.
html | The HTML text to update. |
content | Selected content. |
Definition at line 125 of file AnnotationsContentViewer.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
|
private |
Populate the "Selected Item" and "Source File" sections with tag data for a supplied artifact.
html | The HTML text to update. |
artifact | A selected artifact. |
sourceFile | The source content of the selected artifact. |
Definition at line 154 of file AnnotationsContentViewer.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
void org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.resetComponent | ( | ) |
Resets the contents of the viewer / component.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 462 of file AnnotationsContentViewer.java.
void org.sleuthkit.autopsy.contentviewers.AnnotationsContentViewer.setNode | ( | Node | selectedNode | ) |
Autopsy will call this when this panel is focused with the file that should be analyzed. When called with null, must clear all references to previous nodes.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 72 of file AnnotationsContentViewer.java.
|
private |
Set the text of the text panel.
text | The text to set to the text panel. |
Definition at line 253 of file AnnotationsContentViewer.java.
|
private |
Start a new data section.
html | The HTML text to add the section to. |
sectionName | The name of the section. |
Definition at line 263 of file AnnotationsContentViewer.java.
|
private |
Start a data table.
html | The HTML text to add the table to. |
Definition at line 328 of file AnnotationsContentViewer.java.
|
private |
Definition at line 409 of file AnnotationsContentViewer.java.
|
private |
Definition at line 410 of file AnnotationsContentViewer.java.
|
staticprivate |
Definition at line 61 of file AnnotationsContentViewer.java.
Copyright © 2012-2018 Basis Technology. Generated on: Thu Oct 4 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.