1
0
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:
U-BASIS\dsmyda
2020-12-02 10:27:55 -05:00
parent a37e6fd2aa
commit de0fe431d5
5 changed files with 16 additions and 5 deletions

View File

@@ -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) {

View File

@@ -801,7 +801,7 @@ public class DiscoveryKeyUtils {
private final SearchData.PreviouslyNotable notableStatus;
PreviouslyNotableGroupKey(Result result) {
this.notableStatus = result.getPreviouslyNotable();
this.notableStatus = result.getPreviouslyNotableInCR();
}
@Override

View File

@@ -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;
}

View File

@@ -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"

View File

@@ -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);
}
}