mirror of
https://github.com/elisspace/autopsy.git
synced 2026-08-31 16:33:52 +00:00
Added comments and renamed a function name
This commit is contained in:
@@ -334,7 +334,7 @@ public class DiscoveryAttributes {
|
||||
String domain = resultSet.getString("domain_name");
|
||||
List<ResultDomain> domainInstances = domainLookup.get(domain);
|
||||
for (ResultDomain domainInstance : domainInstances) {
|
||||
domainInstance.markAsPreviouslyNotable();
|
||||
domainInstance.markAsPreviouslyNotableInCR();
|
||||
}
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
|
||||
@@ -801,7 +801,7 @@ public class DiscoveryKeyUtils {
|
||||
private final SearchData.PreviouslyNotable notableStatus;
|
||||
|
||||
PreviouslyNotableGroupKey(Result result) {
|
||||
this.notableStatus = result.getPreviouslyNotable();
|
||||
this.notableStatus = result.getPreviouslyNotableInCR();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -57,11 +57,19 @@ public abstract class Result {
|
||||
*/
|
||||
public abstract TskData.FileKnown getKnown();
|
||||
|
||||
final public void markAsPreviouslyNotable() {
|
||||
/**
|
||||
* Mark the result as being previously notable in the CR.
|
||||
*/
|
||||
final public void markAsPreviouslyNotableInCR() {
|
||||
this.isPreviouslyNotable = SearchData.PreviouslyNotable.PREVIOUSLY_NOTABLE;
|
||||
}
|
||||
|
||||
final public SearchData.PreviouslyNotable getPreviouslyNotable() {
|
||||
/**
|
||||
* Get the previously notable value of this result.
|
||||
*
|
||||
* @return The previously notable status enum.
|
||||
*/
|
||||
final public SearchData.PreviouslyNotable getPreviouslyNotableInCR() {
|
||||
return this.isPreviouslyNotable;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,9 @@ public final class SearchData {
|
||||
private static final Set<BlackboardArtifact.ARTIFACT_TYPE> DOMAIN_ARTIFACT_TYPES = EnumSet.of(BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_BOOKMARK, BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_CACHE, BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_COOKIE, BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_DOWNLOAD, BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_HISTORY, BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_SEARCH_QUERY);
|
||||
|
||||
|
||||
/**
|
||||
* Enum representing the notability of the result in the Central Repository.
|
||||
*/
|
||||
@NbBundle.Messages({
|
||||
"SearchData.prevNotable.displayName=Previously Notable",
|
||||
"SearchData.notPrevNotable.displayName=Previously Not Notable"
|
||||
|
||||
@@ -713,7 +713,7 @@ public class SearchFiltering {
|
||||
|
||||
List<Result> filteredResults = new ArrayList<>();
|
||||
for (Result file : currentResults) {
|
||||
if (file.getPreviouslyNotable() == SearchData.PreviouslyNotable.PREVIOUSLY_NOTABLE) {
|
||||
if (file.getPreviouslyNotableInCR() == SearchData.PreviouslyNotable.PREVIOUSLY_NOTABLE) {
|
||||
filteredResults.add(file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user