mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
code cleanup
This commit is contained in:
parent
16a2b2770d
commit
db341a9cb0
@ -37,9 +37,9 @@ import static org.sleuthkit.autopsy.timeline.datamodel.eventtype.ArtifactEventTy
|
||||
import org.sleuthkit.datamodel.HashUtility;
|
||||
import org.sleuthkit.datamodel.TskCoreException;
|
||||
|
||||
|
||||
/**
|
||||
* Provides logic for selecting common files from all data sources and all cases in the Central Repo.
|
||||
* Provides logic for selecting common files from all data sources and all cases
|
||||
* in the Central Repo.
|
||||
*/
|
||||
public abstract class EamDbCommonFilesAlgorithm extends CommonFilesMetadataBuilder {
|
||||
|
||||
@ -48,12 +48,14 @@ public abstract class EamDbCommonFilesAlgorithm extends CommonFilesMetadataBuil
|
||||
private final EamDb dbManager;
|
||||
|
||||
/**
|
||||
* Implements the algorithm for getting common files across all data
|
||||
* sources and all cases. Can filter on mime types conjoined by logical AND.
|
||||
* Implements the algorithm for getting common files across all data sources
|
||||
* and all cases. Can filter on mime types conjoined by logical AND.
|
||||
*
|
||||
* @param dataSourceIdMap a map of obj_id to datasource name
|
||||
* @param filterByMediaMimeType match only on files whose mime types can be broadly categorized as media types
|
||||
* @param filterByDocMimeType match only on files whose mime types can be broadly categorized as document types
|
||||
* @param filterByMediaMimeType match only on files whose mime types can be
|
||||
* broadly categorized as media types
|
||||
* @param filterByDocMimeType match only on files whose mime types can be
|
||||
* broadly categorized as document types
|
||||
*
|
||||
* @throws EamDbException
|
||||
*/
|
||||
@ -142,8 +144,8 @@ public abstract class EamDbCommonFilesAlgorithm extends CommonFilesMetadataBuil
|
||||
}
|
||||
|
||||
protected CorrelationCase getCorrelationCaseFromId(int correlationCaseId) throws EamDbException, Exception {
|
||||
for(CorrelationCase cCase : this.dbManager.getCases()){
|
||||
if(cCase.getID() == correlationCaseId){
|
||||
for (CorrelationCase cCase : this.dbManager.getCases()) {
|
||||
if (cCase.getID() == correlationCaseId) {
|
||||
return cCase;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user