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;
50 this(-1, eamCase, eamDataSource,
"", null, TskData.FileKnown.UNKNOWN);
58 this(-1, eamCase, eamDataSource, filePath, null, TskData.FileKnown.UNKNOWN);
67 this(-1, eamCase, eamDataSource, filePath, comment, TskData.FileKnown.UNKNOWN);
75 TskData.FileKnown knownStatus
77 this(-1, eamCase, eamDataSource, filePath, comment, knownStatus);
86 TskData.FileKnown knownStatus
88 if(filePath == null) {
89 throw new EamDbException(
"file path is null");
93 this.correlationCase = eamCase;
94 this.correlationDataSource = eamDataSource;
96 this.filePath = filePath.toLowerCase();
97 this.comment = comment;
98 this.knownStatus = knownStatus;
102 return ((this.getID() == otherInstance.getID())
105 && (this.getFilePath().equals(otherInstance.
getFilePath()))
107 && (this.getComment().equals(otherInstance.
getComment())));
113 + this.getCorrelationCase().getCaseUUID()
114 + this.getCorrelationDataSource().getName()
116 + this.getKnownStatus()
131 return correlationCase;
138 return correlationDataSource;
152 return null == comment ?
"" : comment;
159 this.comment = comment;
179 this.knownStatus = knownStatus;
CorrelationAttributeInstance(CorrelationCase eamCase, CorrelationDataSource eamDataSource, String filePath)
TskData.FileKnown knownStatus
CorrelationAttributeInstance(CorrelationCase eamCase, CorrelationDataSource eamDataSource, String filePath, String comment)
CorrelationDataSource correlationDataSource
TskData.FileKnown getKnownStatus()
CorrelationAttributeInstance(CorrelationCase eamCase, CorrelationDataSource eamDataSource)
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)