19 package org.sleuthkit.autopsy.centralrepository.application;
46 private TskData.FileKnown
known;
64 this.typeStr = type.getDisplayName();
69 originalCorrelationInstance = instance;
81 caseName = autopsyCase.getDisplayName();
83 DataSource dataSource = autopsyCase.getSleuthkitCase().getDataSource(newFile.getDataSource().getId());
84 deviceID = dataSource.getDeviceId();
85 dataSourceName = dataSource.getName();
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();
96 originalAbstractFile = newFile;
104 boolean isFileType() {
105 return FILE_TYPE_STR.equals(typeStr);
113 void updateKnown(TskData.FileKnown newKnownStatus) {
114 known = newKnownStatus;
123 comment = newComment;
133 return (originalCorrelationInstance != null);
215 if (originalAbstractFile == null) {
216 throw new CentralRepoException(
"AbstractFile is null");
230 if (originalCorrelationInstance == null) {
231 throw new CentralRepoException(
"CorrelationAttributeInstance is null");
252 String toCsvString() {
253 StringBuilder line =
new StringBuilder(
"\"");
254 line.append(
getCaseName()).append(CSV_ITEM_SEPARATOR)
256 .append(
getType()).append(CSV_ITEM_SEPARATOR)
257 .append(
getValue()).append(CSV_ITEM_SEPARATOR)
258 .append(
getKnown().toString()).append(CSV_ITEM_SEPARATOR)
261 .append(System.getProperty(
"line.separator"));
262 return line.toString();
NodeData(CorrelationAttributeInstance instance, CorrelationAttributeInstance.Type type, String value)
AbstractFile originalAbstractFile
boolean isCentralRepoNode()
CorrelationAttributeInstance getCorrelationAttributeInstance()
TskData.FileKnown getKnown()
TskData.FileKnown getKnownStatus()
static final String CSV_ITEM_SEPARATOR
static String getCsvItemSeparator()
static final String FILE_TYPE_STR
CorrelationDataSource getCorrelationDataSource()
CorrelationCase getCorrelationCase()
CorrelationAttributeInstance originalCorrelationInstance
String getDataSourceName()
AbstractFile getAbstractFile()
void updateComment(String newComment)