19package org.sleuthkit.autopsy.discovery.search;
21import org.sleuthkit.autopsy.discovery.search.SearchData.Type;
22import org.sleuthkit.datamodel.AbstractFile;
23import java.util.ArrayList;
24import java.util.Collections;
26import org.apache.commons.lang.StringUtils;
27import org.openide.util.NbBundle;
28import org.sleuthkit.autopsy.casemodule.Case;
29import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
30import org.sleuthkit.autopsy.corecomponents.DataResultViewerTable;
31import org.sleuthkit.autopsy.coreutils.Logger;
32import static org.sleuthkit.autopsy.discovery.search.SearchData.Type.OTHER;
33import org.sleuthkit.datamodel.Content;
34import org.sleuthkit.datamodel.HashUtility;
35import org.sleuthkit.datamodel.Score;
36import org.sleuthkit.datamodel.TskCoreException;
37import org.sleuthkit.datamodel.TskData;
49 private final List<AbstractFile>
instances =
new ArrayList<>();
63 abstractFile.getUniquePath();
64 }
catch (TskCoreException ignored) {
69 if (abstractFile.isDirNameFlagSet(TskData.TSK_FS_NAME_FLAG_ENUM.UNALLOC)) {
87 if (
deleted && !duplicate.isDirNameFlagSet(TskData.TSK_FS_NAME_FLAG_ENUM.UNALLOC)) {
96 duplicate.getUniquePath();
97 }
catch (TskCoreException ignored) {
140 return Collections.unmodifiableList(
instances);
263 if (StringUtils.isBlank(
this.getFirstInstance().getMd5Hash())
264 || HashUtility.isNoDataMd5(
this.getFirstInstance().getMd5Hash())) {
265 return super.hashCode();
276 || StringUtils.isBlank(
this.getFirstInstance().getMd5Hash())
277 || HashUtility.isNoDataMd5(
this.getFirstInstance().getMd5Hash())) {
278 return super.equals(obj);
287 "# {0} - significanceDisplayName",
288 "ResultFile_updateScoreAndDescription_description=Has an {0} analysis result score"
298 this.currentScore = score;
299 String significanceDisplay = score.getSignificance().getDisplayName();
300 this.scoreDescription = Bundle.ResultFile_updateScoreAndDescription_description(significanceDisplay);
312 if (type.getMediaTypes().contains(mimeType)) {
SleuthkitCase getSleuthkitCase()
static Case getCurrentCaseThrows()
synchronized static Logger getLogger(String name)
final List< String > interestingSetNames
List< String > getObjectDetectedNames()
List< AbstractFile > getAllInstances()
List< String > getInterestingSetNames()
String getScoreDescription()
List< String > getKeywordListNames()
boolean equals(Object obj)
final List< AbstractFile > instances
long getDataSourceObjectId()
TskData.FileKnown getKnown()
ResultFile(AbstractFile abstractFile)
final List< String > objectDetectedNames
void addKeywordListName(String keywordListName)
final List< String > hashSetNames
void updateScoreAndDescription(AbstractFile file)
AbstractFile getFirstInstance()
static final Logger logger
void addObjectDetectedName(String objectDetectedName)
void addInterestingSetName(String interestingSetName)
void addHashSetName(String hashSetName)
List< String > getHashSetNames()
static Type fromMIMEtype(String mimeType)
void addDuplicate(AbstractFile duplicate)
final List< String > keywordListNames
SearchData.Frequency getFrequency()