19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import java.io.Serializable;
22 import org.openide.util.NbBundle.Messages;
31 @Messages({
"EamArtifactInstances.globalStatus.local=Local",
32 "EamArtifactInstances.globalStatus.global=Global",
33 "EamArtifactInstances.knownStatus.bad=Bad",
34 "EamArtifactInstances.knownStatus.known=Known",
35 "EamArtifactInstances.knownStatus.unknown=Unknown"})
39 LOCAL(Bundle.EamArtifactInstances_globalStatus_local()),
40 GLOBAL(Bundle.EamArtifactInstances_globalStatus_global());
45 this.globalStatus = globalStatus;
54 private static final long serialVersionUID = 1L;
68 this(-1, eamCase, eamDataSource,
"", null, TskData.FileKnown.UNKNOWN,
GlobalStatus.
LOCAL);
76 this(-1, eamCase, eamDataSource, filePath, null, TskData.FileKnown.UNKNOWN,
GlobalStatus.
LOCAL);
85 this(-1, eamCase, eamDataSource, filePath, comment, TskData.FileKnown.UNKNOWN,
GlobalStatus.
LOCAL);
93 TskData.FileKnown knownStatus,
96 this(-1, eamCase, eamDataSource, filePath, comment, knownStatus, globalStatus);
105 TskData.FileKnown knownStatus,
109 this.correlationCase = eamCase;
110 this.correlationDataSource = eamDataSource;
112 this.filePath = filePath.toLowerCase();
113 this.comment = comment;
114 this.knownStatus = knownStatus;
115 this.globalStatus = globalStatus;
119 return ((this.getID() == otherInstance.getID())
122 && (this.getFilePath().equals(otherInstance.
getFilePath()))
125 && (this.getComment().equals(otherInstance.
getComment())));
131 + this.getCorrelationCase().getCaseUUID()
132 + this.getCorrelationDataSource().getName()
134 + this.getGlobalStatus()
135 + this.getKnownStatus()
150 return correlationCase;
157 return correlationDataSource;
171 return null == comment ?
"" : comment;
178 this.comment = comment;
192 this.knownStatus = knownStatus;
206 this.globalStatus = globalStatus;
GlobalStatus getGlobalStatus()
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)
CorrelationAttributeInstance(int ID, CorrelationCase eamCase, CorrelationDataSource eamDataSource, String filePath, String comment, TskData.FileKnown knownStatus, GlobalStatus globalStatus)
CorrelationAttributeInstance(CorrelationCase eamCase, CorrelationDataSource eamDataSource, String filePath, String comment, TskData.FileKnown knownStatus, GlobalStatus globalStatus)
CorrelationCase correlationCase
void setKnownStatus(TskData.FileKnown knownStatus)
GlobalStatus(String globalStatus)
CorrelationDataSource getCorrelationDataSource()
void setGlobalStatus(GlobalStatus globalStatus)
GlobalStatus globalStatus
CorrelationCase getCorrelationCase()
final String globalStatus
void setComment(String comment)
Boolean equals(CorrelationAttributeInstance otherInstance)