19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import java.io.Serializable;
48 this(correlationCase.
getID(), -1, deviceId,
name);
63 this.dataSourceID = dataSourceId;
64 this.deviceID = deviceId;
90 deviceId = curCase.
getSleuthkitCase().getDataSource(dataSource.getId()).getDeviceId();
91 }
catch (TskDataException | TskCoreException ex) {
92 throw new EamDbException(
"Error getting data source info: " + ex.getMessage());
99 if (correlationDataSource == null) {
105 return correlationDataSource;
110 StringBuilder str =
new StringBuilder();
112 str.append(
"ID=").append(Integer.toString(getID()));
113 str.append(
",caseID=").append(Integer.toString(
getCaseID()));
115 str.append(
",name=").append(
getName());
117 return str.toString();
CorrelationDataSource getDataSource(CorrelationCase correlationCase, String dataSourceDeviceId)
static final long serialVersionUID
CorrelationDataSource(CorrelationCase correlationCase, String deviceId, String name)
static CorrelationDataSource fromTSKDataSource(CorrelationCase correlationCase, Content dataSource)
static boolean useCentralRepo()
static EamDb getInstance()
SleuthkitCase getSleuthkitCase()
static Case getCurrentCaseThrows()
void newDataSource(CorrelationDataSource eamDataSource)