19 package org.sleuthkit.autopsy.centralrepository.datamodel;
 
   21 import java.io.Serializable;
 
   63             Long dataSourceObjectId,
 
   86             Long dataSourceObjectId,
 
   91         this.dataSourceID = dataSourceId;
 
   92         this.deviceID = deviceId;
 
   94         this.dataSourceObjectID = dataSourceObjectId;
 
  117             throw new CentralRepoException(String.format(
"Central repository is not enabled, cannot create central repository data source for '%s'", dataSource));
 
  128         if (correlationDataSource == null) {
 
  132             String sha256 = null;
 
  136                 if (dataSource instanceof 
Image) {
 
  137                     Image image = (Image) dataSource;
 
  145             correlationDataSource = 
new CorrelationDataSource(correlationCase, deviceId, dataSource.getName(), dataSource.getId(), md5, sha1, sha256);
 
  149         return correlationDataSource;
 
  154         StringBuilder str = 
new StringBuilder();
 
  156         str.append(
"ID=").append(Integer.toString(
getID()));
 
  157         str.append(
",caseID=").append(Integer.toString(
getCaseID()));
 
  159         str.append(
",name=").append(
getName());
 
  161         return str.toString();
 
  211         return (md5Hash == null ? 
"" : md5Hash);
 
  226         if (dataSourceObjectID != -1) {
 
  235         return (sha1Hash == null ? 
"" : sha1Hash);
 
  247         if (dataSourceObjectID != -1) {
 
  256         return (sha256Hash == null ? 
"" : sha256Hash);
 
  268         if (dataSourceObjectID != -1) {
 
static final long serialVersionUID
void setMd5(String md5Hash)
final Long dataSourceObjectID
static CorrelationDataSource fromTSKDataSource(CorrelationCase correlationCase, Content dataSource)
CorrelationDataSource(CorrelationCase correlationCase, String deviceId, String name, Long dataSourceObjectId, String md5Hash, String sha1Hash, String sha256Hash)
void updateDataSourceSha1Hash(CorrelationDataSource eamDataSource)
void setSha256(String sha256Hash)
SleuthkitCase getSleuthkitCase()
void setSha1(String sha1Hash)
void updateDataSourceMd5Hash(CorrelationDataSource eamDataSource)
CorrelationDataSource newDataSource(CorrelationDataSource eamDataSource)
Long getDataSourceObjectID()
CorrelationDataSource getDataSource(CorrelationCase correlationCase, Long caseDbDataSourceId)
static Case getCurrentCaseThrows()
DataSource getDataSource(long objectId)
void updateDataSourceSha256Hash(CorrelationDataSource eamDataSource)
static CentralRepository getInstance()
static boolean isEnabled()