mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Cleanup.
This commit is contained in:
parent
490d8df3e7
commit
dd1bfc106d
@ -41,7 +41,6 @@ import org.sleuthkit.autopsy.ingest.ModuleDataEvent;
|
||||
import org.sleuthkit.datamodel.AbstractFile;
|
||||
import org.sleuthkit.datamodel.BlackboardArtifact;
|
||||
import org.sleuthkit.datamodel.BlackboardAttribute;
|
||||
import org.sleuthkit.datamodel.BlackboardAttribute.ATTRIBUTE_TYPE;
|
||||
import org.sleuthkit.datamodel.Content;
|
||||
import org.sleuthkit.datamodel.SleuthkitCase;
|
||||
import org.sleuthkit.datamodel.TskCoreException;
|
||||
@ -221,14 +220,8 @@ class QueryResults {
|
||||
}
|
||||
|
||||
/*
|
||||
* Create an artifact if it is determined that one hasn't been
|
||||
* created yet.
|
||||
* Post an artifact for the hit to the blackboard.
|
||||
*/
|
||||
if (content == null) {
|
||||
logger.log(Level.WARNING, "Cannot add artifact for keyword hit to blackboard without a Content object."); //NON-NLS
|
||||
continue; // Cycle to the next KeywordHit.
|
||||
}
|
||||
|
||||
BlackboardArtifact artifact = query.postKeywordHitToBlackboard(content, keyword, hit, snippet, query.getKeywordList().getName());
|
||||
|
||||
/*
|
||||
|
@ -36,7 +36,6 @@ import org.apache.solr.client.solrj.response.QueryResponse;
|
||||
import org.apache.solr.common.SolrDocument;
|
||||
import org.apache.solr.common.SolrDocumentList;
|
||||
import org.apache.solr.common.params.CursorMarkParams;
|
||||
import org.openide.util.Exceptions;
|
||||
import org.openide.util.NbBundle;
|
||||
import org.sleuthkit.autopsy.casemodule.Case;
|
||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||
@ -451,6 +450,14 @@ final class RegexQuery implements KeywordSearchQuery {
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
* Credit Card number hits are handled differently
|
||||
*/
|
||||
if (originalKeyword.getArtifactAttributeType() == ATTRIBUTE_TYPE.TSK_CARD_NUMBER) {
|
||||
createCCNAccount(content, foundKeyword, hit, snippet, listName);
|
||||
return null;
|
||||
}
|
||||
|
||||
List<BlackboardAttribute> attributesList = new ArrayList<>();
|
||||
attributesList.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_KEYWORD, MODULE_NAME, foundKeyword.getSearchTerm()));
|
||||
attributesList.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_KEYWORD_SEARCH_TYPE, MODULE_NAME, KeywordSearch.QueryType.REGEX.ordinal()));
|
||||
@ -471,14 +478,6 @@ final class RegexQuery implements KeywordSearchQuery {
|
||||
content.getName(), content.getId()), ex); //NON-NLS
|
||||
}
|
||||
|
||||
/*
|
||||
* Credit Card number hits are handled differently
|
||||
*/
|
||||
if (originalKeyword.getArtifactAttributeType() == ATTRIBUTE_TYPE.TSK_CARD_NUMBER) {
|
||||
createCCNAccount(content, foundKeyword, hit, snippet, listName);
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
* Create a "plain vanilla" keyword hit artifact with keyword and
|
||||
* regex attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user