19package org.sleuthkit.autopsy.centralrepository.application;
21import org.sleuthkit.autopsy.casemodule.Case;
22import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
23import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoException;
24import org.sleuthkit.datamodel.AbstractFile;
25import org.sleuthkit.datamodel.DataSource;
26import org.sleuthkit.datamodel.TskCoreException;
27import org.sleuthkit.datamodel.TskData;
28import org.sleuthkit.datamodel.TskDataException;
46 private TskData.FileKnown
known;
64 this.typeStr = type.getDisplayName();
81 caseName = autopsyCase.getDisplayName();
83 DataSource dataSource = autopsyCase.getSleuthkitCase().getDataSource(newFile.getDataSource().getId());
86 }
catch (TskDataException | TskCoreException ex) {
87 throw new CentralRepoException(
"Error loading data source for abstract file ID " + newFile.getId(), ex);
90 filePath = newFile.getParentPath() + newFile.getName();
92 value = newFile.getMd5Hash();
93 known = newFile.getKnown();
104 boolean isFileType() {
113 void updateKnown(TskData.FileKnown newKnownStatus) {
114 known = newKnownStatus;
242 String toCsvString() {
243 StringBuilder line =
new StringBuilder(
"\"");
251 .append(System.getProperty(
"line.separator"));
252 return line.toString();
CorrelationAttributeInstance originalCorrelationInstance
AbstractFile getAbstractFile()
TskData.FileKnown getKnown()
NodeData(CorrelationAttributeInstance instance, CorrelationAttributeInstance.Type type, String value)
static final String CSV_ITEM_SEPARATOR
void updateComment(String newComment)
static String getCsvItemSeparator()
AbstractFile originalAbstractFile
static final String FILE_TYPE_STR
String getDataSourceName()
CorrelationAttributeInstance getCorrelationAttributeInstance()
CorrelationCase getCorrelationCase()
CorrelationDataSource getCorrelationDataSource()
TskData.FileKnown getKnownStatus()