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;
89 deviceId = curCase.
getSleuthkitCase().getDataSource(dataSource.getId()).getDeviceId();
90 }
catch (TskDataException | TskCoreException ex) {
91 throw new EamDbException(
"Error getting data source info: " + ex.getMessage());
98 if (correlationDataSource == null) {
104 return correlationDataSource;
109 StringBuilder str =
new StringBuilder();
111 str.append(
"ID=").append(Integer.toString(getID()));
112 str.append(
",caseID=").append(Integer.toString(
getCaseID()));
114 str.append(
",name=").append(
getName());
116 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)