19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import java.io.Serializable;
22 import org.openide.util.NbBundle.Messages;
32 "EamArtifactInstances.knownStatus.bad=Bad",
33 "EamArtifactInstances.knownStatus.known=Known",
34 "EamArtifactInstances.knownStatus.unknown=Unknown"})
37 private static final long serialVersionUID = 1L;
51 this(-1, eamCase, eamDataSource, filePath, null, TskData.FileKnown.UNKNOWN);
60 TskData.FileKnown knownStatus
62 this(-1, eamCase, eamDataSource, filePath, comment, knownStatus);
71 TskData.FileKnown knownStatus
73 if (filePath == null) {
74 throw new EamDbException(
"file path is null");
78 this.correlationCase = eamCase;
79 this.correlationDataSource = eamDataSource;
81 this.filePath = filePath.toLowerCase();
82 this.comment = comment;
83 this.knownStatus = knownStatus;
87 return ((this.getID() == otherInstance.getID())
90 && (this.getFilePath().equals(otherInstance.
getFilePath()))
92 && (this.getComment().equals(otherInstance.
getComment())));
98 + this.getCorrelationCase().getCaseUUID()
99 + this.getCorrelationDataSource().getDeviceID()
101 + this.getKnownStatus()
126 return correlationCase;
133 return correlationDataSource;
147 return null == comment ?
"" : comment;
154 this.comment = comment;
175 this.knownStatus = knownStatus;
boolean isDatabaseInstance()
CorrelationAttributeInstance(CorrelationCase eamCase, CorrelationDataSource eamDataSource, String filePath)
TskData.FileKnown knownStatus
CorrelationDataSource correlationDataSource
TskData.FileKnown getKnownStatus()
CorrelationCase correlationCase
void setKnownStatus(TskData.FileKnown knownStatus)
CorrelationDataSource getCorrelationDataSource()
CorrelationCase getCorrelationCase()
CorrelationAttributeInstance(CorrelationCase eamCase, CorrelationDataSource eamDataSource, String filePath, String comment, TskData.FileKnown knownStatus)
void setComment(String comment)
Boolean equals(CorrelationAttributeInstance otherInstance)