Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
class | CaseMetadataException |
Public Member Functions | |
CaseMetadata (Path metadataFilePath) throws CaseMetadataException | |
String | getCaseDatabaseName () |
String | getCaseDatabasePath () throws UnsupportedOperationException |
CaseDetails | getCaseDetails () |
String | getCaseDirectory () |
String | getCaseDisplayName () |
String | getCaseName () |
String | getCaseNotes () |
String | getCaseNumber () |
Case.CaseType | getCaseType () |
String | getExaminer () |
String | getExaminerEmail () |
String | getExaminerPhone () |
String | getTextIndexName () |
Static Public Member Functions | |
static String | getFileExtension () |
Private Member Functions | |
void | createChildElement (Document doc, Element parentElement, String elementName, String elementContent) |
void | createXMLDOM (Document doc) |
String | getElementTextContent (Element parentElement, String elementName, boolean contentIsRequired) throws CaseMetadataException |
void | readFromFile () throws CaseMetadataException |
void | writeToFile () throws CaseMetadataException |
Private Attributes | |
String | caseDatabaseName |
String | caseDatabasePath |
CaseDetails | caseDetails |
String | caseName |
Case.CaseType | caseType |
String | createdByVersion |
String | createdDate |
final Path | metadataFilePath |
String | textIndexName |
Static Private Attributes | |
static final String | AUTOPSY_CREATED_BY_ELEMENT_NAME = "CreatedByAutopsyVersion" |
static final String | AUTOPSY_SAVED_BY_ELEMENT_NAME = "SavedByAutopsyVersion" |
static final String | AUTOPSY_VERSION_ELEMENT_NAME = "AutopsyCreatedVersion" |
static final String | CASE_DATABASE_NAME_ELEMENT_NAME = "DatabaseName" |
static final String | CASE_DB_ABSOLUTE_PATH_ELEMENT_NAME = "Database" |
static final String | CASE_DB_NAME_RELATIVE_ELEMENT_NAME = "CaseDatabase" |
static final String | CASE_DISPLAY_NAME_ELEMENT_NAME = "DisplayName" |
static final String | CASE_ELEMENT_NAME = "Case" |
static final String | CASE_ELEMENT_NOTES = "CaseNotes" |
static final String | CASE_NAME_ELEMENT_NAME = "Name" |
static final String | CASE_NUMBER_ELEMENT_NAME = "Number" |
static final String | CASE_TYPE_ELEMENT_NAME = "CaseType" |
static final String | CREATED_DATE_ELEMENT_NAME = "CreatedDate" |
static final String | CURRENT_SCHEMA_VERSION = SCHEMA_VERSION_FOUR |
static final DateFormat | DATE_FORMAT = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss (z)") |
static final String | EXAMINER_ELEMENT_EMAIL = "ExaminerEmail" |
static final String | EXAMINER_ELEMENT_NAME = "Examiner" |
static final String | EXAMINER_ELEMENT_PHONE = "ExaminerPhone" |
static final String | FILE_EXTENSION = ".aut" |
static final String | MODIFIED_DATE_ELEMENT_NAME = "ModifiedDate" |
static final String | ROOT_ELEMENT_NAME = "AutopsyCase" |
static final String | SCHEMA_VERSION_ELEMENT_NAME = "SchemaVersion" |
static final String | SCHEMA_VERSION_FOUR = "4.0" |
static final String | SCHEMA_VERSION_ONE = "1.0" |
static final String | SCHEMA_VERSION_THREE = "3.0" |
static final String | SCHEMA_VERSION_TWO = "2.0" |
static final String | TEXT_INDEX_ELEMENT = "TextIndex" |
static final String | TEXT_INDEX_NAME_ELEMENT = "TextIndexName" |
Provides access to the case metadata stored in the case metadata file.
Definition at line 52 of file CaseMetadata.java.
org.sleuthkit.autopsy.casemodule.CaseMetadata.CaseMetadata | ( | Path | metadataFilePath | ) | throws CaseMetadataException |
Constructs a CaseMetadata object for an existing case. The metadata is read from an existing case metadata file.
metadataFilePath | The full path to the case metadata file. |
CaseMetadataException | If the new case metadata file cannot be read. |
Definition at line 156 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.metadataFilePath, and org.sleuthkit.autopsy.casemodule.CaseMetadata.readFromFile().
|
private |
Creates an XML element for the case metadata XML DOM.
doc | The document. |
parentElement | The parent element of the element to be created. |
elementName | The name of the element to be created. |
elementContent | The text content of the element to be created, may be empty. |
Definition at line 430 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.createXMLDOM().
|
private |
Definition at line 391 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseType, org.sleuthkit.autopsy.casemodule.CaseMetadata.createChildElement(), org.sleuthkit.autopsy.casemodule.CaseDetails.getCaseDisplayName(), org.sleuthkit.autopsy.casemodule.CaseDetails.getCaseNotes(), org.sleuthkit.autopsy.casemodule.CaseDetails.getCaseNumber(), org.sleuthkit.autopsy.casemodule.CaseDetails.getExaminerEmail(), org.sleuthkit.autopsy.casemodule.CaseDetails.getExaminerName(), org.sleuthkit.autopsy.casemodule.CaseDetails.getExaminerPhone(), and org.sleuthkit.autopsy.coreutils.Version.getVersion().
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.writeToFile().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDatabaseName | ( | ) |
Gets the name of the case database.
Definition at line 261 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseDatabaseName.
Referenced by org.sleuthkit.autopsy.casemodule.Case.deleteCase(), and org.sleuthkit.autopsy.casemodule.Case.openCaseData().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDatabasePath | ( | ) | throws UnsupportedOperationException |
Gets the full path to the case database file if the case is a single-user case.
UnsupportedOperationException | If called for a multi-user case. |
Definition at line 587 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseType, org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDirectory(), and org.sleuthkit.autopsy.casemodule.Case.CaseType.SINGLE_USER_CASE.
CaseDetails org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDetails | ( | ) |
Get current values for the case details which are user modifiable.
Definition at line 202 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseDetails.
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDirectory | ( | ) |
Gets the case directory.
Definition at line 175 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.Case.close(), org.sleuthkit.autopsy.casemodule.Case.createCaseData(), org.sleuthkit.autopsy.casemodule.Case.deleteCase(), org.sleuthkit.autopsy.keywordsearch.SolrSearchService.deleteTextIndex(), org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDatabasePath(), org.sleuthkit.autopsy.casemodule.Case.getCaseDirectory(), org.sleuthkit.autopsy.casemodule.Case.open(), org.sleuthkit.autopsy.casemodule.Case.openCaseData(), and org.sleuthkit.autopsy.casemodule.CaseMetadata.readFromFile().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDisplayName | ( | ) |
Gets the case display name.
Definition at line 211 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseDetails.getCaseDisplayName().
Referenced by org.sleuthkit.autopsy.casemodule.Case.createCaseData(), org.sleuthkit.autopsy.casemodule.Case.deleteCase(), and org.sleuthkit.autopsy.casemodule.Case.getDisplayName().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseName | ( | ) |
Gets the unique and immutable case name.
Definition at line 193 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseName.
Referenced by org.sleuthkit.autopsy.casemodule.Case.close(), org.sleuthkit.autopsy.casemodule.Case.deleteCase(), org.sleuthkit.autopsy.casemodule.Case.getName(), org.sleuthkit.autopsy.casemodule.Case.open(), and org.sleuthkit.autopsy.casemodule.Case.openServices().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseNotes | ( | ) |
Definition at line 252 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseDetails.getCaseNotes().
Referenced by org.sleuthkit.autopsy.casemodule.Case.getCaseNotes(), and org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.importCase().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseNumber | ( | ) |
Gets the case number.
Definition at line 231 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseDetails.getCaseNumber().
Referenced by org.sleuthkit.autopsy.casemodule.Case.getNumber(), and org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.importCase().
Case.CaseType org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseType | ( | ) |
Gets the case type.
Definition at line 184 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseType.
Referenced by org.sleuthkit.autopsy.casemodule.Case.close(), org.sleuthkit.autopsy.casemodule.Case.createCaseData(), org.sleuthkit.autopsy.casemodule.Case.deleteCase(), org.sleuthkit.autopsy.casemodule.Case.getCaseType(), org.sleuthkit.autopsy.casemodule.Case.getOutputDirectory(), org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.importCase(), org.sleuthkit.autopsy.casemodule.Case.open(), org.sleuthkit.autopsy.casemodule.Case.openAsCurrentCase(), org.sleuthkit.autopsy.casemodule.Case.openCaseData(), and org.sleuthkit.autopsy.casemodule.Case.openServices().
|
private |
Gets the text content of an XML element.
parentElement | The parent element. |
elementName | The element name. |
contentIsRequired | Whether or not the content is required. |
CaseMetadataException | If the element is missing or content is required and it is empty. |
Definition at line 548 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.readFromFile().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getExaminer | ( | ) |
Gets the examiner.
Definition at line 240 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseDetails.getExaminerName().
Referenced by org.sleuthkit.autopsy.casemodule.Case.getExaminer(), and org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.importCase().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getExaminerEmail | ( | ) |
Definition at line 248 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseDetails.getExaminerEmail().
Referenced by org.sleuthkit.autopsy.casemodule.Case.getExaminerEmail(), and org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.importCase().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getExaminerPhone | ( | ) |
Definition at line 244 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseDetails.getExaminerPhone().
Referenced by org.sleuthkit.autopsy.casemodule.Case.getExaminerPhone(), and org.sleuthkit.autopsy.casemodule.SingleUserCaseConverter.importCase().
|
static |
Gets the file extension used for case metadata files.
Definition at line 118 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.FILE_EXTENSION.
Referenced by org.sleuthkit.autopsy.casemodule.CaseOpenAction.CaseOpenAction().
String org.sleuthkit.autopsy.casemodule.CaseMetadata.getTextIndexName | ( | ) |
Gets the text index name. This is a legacy field and will be empty for cases created with Autopsy 4.4.0 and above.
Definition at line 289 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.textIndexName.
Referenced by org.sleuthkit.autopsy.casemodule.Case.getTextIndexName().
|
private |
Reads the case metadata from the metadata file.
CaseMetadataException | If there is an error reading from the case metadata file. |
Definition at line 442 of file CaseMetadata.java.
References org.sleuthkit.autopsy.casemodule.CaseMetadata.caseDatabaseName, org.sleuthkit.autopsy.casemodule.CaseMetadata.caseName, org.sleuthkit.autopsy.casemodule.CaseMetadata.caseType, org.sleuthkit.autopsy.casemodule.Case.CaseType.fromString(), org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDirectory(), and org.sleuthkit.autopsy.casemodule.CaseMetadata.getElementTextContent().
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.CaseMetadata().
|
private |
Writes the case metadata to the metadata file.
CaseMetadataException | If there is an error writing to the case metadata file. |
Definition at line 355 of file CaseMetadata.java.
References org.sleuthkit.autopsy.coreutils.XMLUtil.createDocument(), and org.sleuthkit.autopsy.casemodule.CaseMetadata.createXMLDOM().
|
staticprivate |
Definition at line 77 of file CaseMetadata.java.
|
staticprivate |
Definition at line 99 of file CaseMetadata.java.
|
staticprivate |
Definition at line 64 of file CaseMetadata.java.
|
staticprivate |
Definition at line 70 of file CaseMetadata.java.
|
staticprivate |
Definition at line 78 of file CaseMetadata.java.
|
staticprivate |
Definition at line 86 of file CaseMetadata.java.
|
staticprivate |
Definition at line 85 of file CaseMetadata.java.
|
staticprivate |
Definition at line 65 of file CaseMetadata.java.
|
staticprivate |
Definition at line 94 of file CaseMetadata.java.
|
staticprivate |
Definition at line 66 of file CaseMetadata.java.
|
staticprivate |
Definition at line 67 of file CaseMetadata.java.
|
staticprivate |
Definition at line 69 of file CaseMetadata.java.
|
private |
Definition at line 107 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDatabaseName(), and org.sleuthkit.autopsy.casemodule.CaseMetadata.readFromFile().
|
private |
Definition at line 108 of file CaseMetadata.java.
|
private |
Definition at line 106 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDetails().
|
private |
Definition at line 105 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseName(), and org.sleuthkit.autopsy.casemodule.CaseMetadata.readFromFile().
|
private |
Definition at line 104 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.createXMLDOM(), org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDatabasePath(), org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseType(), and org.sleuthkit.autopsy.casemodule.CaseMetadata.readFromFile().
|
staticprivate |
Definition at line 63 of file CaseMetadata.java.
|
private |
Definition at line 111 of file CaseMetadata.java.
|
private |
Definition at line 110 of file CaseMetadata.java.
|
staticprivate |
Definition at line 101 of file CaseMetadata.java.
|
staticprivate |
Definition at line 55 of file CaseMetadata.java.
|
staticprivate |
Definition at line 93 of file CaseMetadata.java.
|
staticprivate |
Definition at line 68 of file CaseMetadata.java.
|
staticprivate |
Definition at line 92 of file CaseMetadata.java.
|
staticprivate |
Definition at line 54 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.getFileExtension().
|
private |
Definition at line 103 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.CaseMetadata().
|
staticprivate |
Definition at line 98 of file CaseMetadata.java.
|
staticprivate |
Definition at line 61 of file CaseMetadata.java.
|
staticprivate |
Definition at line 62 of file CaseMetadata.java.
|
staticprivate |
Definition at line 91 of file CaseMetadata.java.
|
staticprivate |
Definition at line 60 of file CaseMetadata.java.
|
staticprivate |
Definition at line 84 of file CaseMetadata.java.
|
staticprivate |
Definition at line 76 of file CaseMetadata.java.
|
staticprivate |
Definition at line 79 of file CaseMetadata.java.
|
staticprivate |
Definition at line 71 of file CaseMetadata.java.
|
private |
Definition at line 109 of file CaseMetadata.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseMetadata.getTextIndexName().
Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.