Skip to content
Snippets Groups Projects
Unverified Commit a3ca85b9 authored by Brian Carrier's avatar Brian Carrier Committed by GitHub
Browse files

Merge pull request #2248 from sleuthkit/sig_docs

Updated comments and bundles for significance
parents 24ecd5c7 a13e698b
No related branches found
No related tags found
No related merge requests found
...@@ -396,12 +396,12 @@ OsAccountRealm.Inferred.text=Inferred ...@@ -396,12 +396,12 @@ OsAccountRealm.Inferred.text=Inferred
OsAccountRealm.Unknown.text=Unknown OsAccountRealm.Unknown.text=Unknown
OsAccountRealm.Local.text=Local OsAccountRealm.Local.text=Local
OsAccountRealm.Domain.text=Domain OsAccountRealm.Domain.text=Domain
MethodCategory.Auto.displayName.text=Automated analysis MethodCategory.Auto.displayName.text=Automated Analysis
MethodCategory.UserDefined.displayName.text=User defined MethodCategory.UserDefined.displayName.text=User Defined
Significance.Unknown.displayName.text=Unknown Significance.Unknown.displayName.text=Unknown
Significance.LikelyNone.displayName.text=Likely none Significance.LikelyNone.displayName.text=Likely Not Notable
Significance.LikelyNotable.displayName.text=Likely notable Significance.LikelyNotable.displayName.text=Likely Notable
Significance.None.displayName.text=None Significance.None.displayName.text=Not Notable
Significance.Notable.displayName.text=Notable Significance.Notable.displayName.text=Notable
TimelineEventType.BackupEvent.txt=Backup Event TimelineEventType.BackupEvent.txt=Backup Event
TimelineEventType.BackupEventStart.txt=Backup Event Start TimelineEventType.BackupEventStart.txt=Backup Event Start
......
...@@ -396,12 +396,12 @@ OsAccountRealm.Inferred.text=Inferred ...@@ -396,12 +396,12 @@ OsAccountRealm.Inferred.text=Inferred
OsAccountRealm.Unknown.text=Unknown OsAccountRealm.Unknown.text=Unknown
OsAccountRealm.Local.text=Local OsAccountRealm.Local.text=Local
OsAccountRealm.Domain.text=Domain OsAccountRealm.Domain.text=Domain
MethodCategory.Auto.displayName.text=Automated analysis MethodCategory.Auto.displayName.text=Automated Analysis
MethodCategory.UserDefined.displayName.text=User defined MethodCategory.UserDefined.displayName.text=User Defined
Significance.Unknown.displayName.text=Unknown Significance.Unknown.displayName.text=Unknown
Significance.LikelyNone.displayName.text=Likely none Significance.LikelyNone.displayName.text=Likely Not Notable
Significance.LikelyNotable.displayName.text=Likely notable Significance.LikelyNotable.displayName.text=Likely Notable
Significance.None.displayName.text=None Significance.None.displayName.text=Not Notable
Significance.Notable.displayName.text=Notable Significance.Notable.displayName.text=Notable
TimelineEventType.BackupEvent.txt=Backup Event TimelineEventType.BackupEvent.txt=Backup Event
TimelineEventType.BackupEventStart.txt=Backup Event Start TimelineEventType.BackupEventStart.txt=Backup Event Start
......
...@@ -75,20 +75,28 @@ public class Score implements Comparable<Score> { ...@@ -75,20 +75,28 @@ public class Score implements Comparable<Score> {
public enum Significance { public enum Significance {
// Enum name must not have any spaces. // Enum name must not have any spaces.
/* Notes on the ordinal numbers: We defined these so that we could easily
* compare values while also have some concept of grouping.
* The 1x values are a higher confidence than the 0x files.
* NOTABLE (x9) has priority over NOT NOTABLE (x8).
* If we need to make this more complicated in the future, we can add
* other groupings, such as 14 and 15.
*/
// no significance assigned yet. /// no significance assigned yet.
UNKNOWN(0, "Unknown", bundle.getString("Significance.Unknown.displayName.text")), UNKNOWN(0, "Unknown", bundle.getString("Significance.Unknown.displayName.text")),
// likely good /// likely good
LIKELY_NONE(8, "LikelyNone", bundle.getString("Significance.LikelyNone.displayName.text")), LIKELY_NONE(8, "LikelyNone", bundle.getString("Significance.LikelyNone.displayName.text")),
// likely bad, suspicious /// likely bad, suspicious
LIKELY_NOTABLE(9, "LikelyNotable", bundle.getString("Significance.LikelyNotable.displayName.text")), LIKELY_NOTABLE(9, "LikelyNotable", bundle.getString("Significance.LikelyNotable.displayName.text")),
// good /// good
NONE(18, "None", bundle.getString("Significance.None.displayName.text")), NONE(18, "None", bundle.getString("Significance.None.displayName.text")),
// bad /// bad
NOTABLE(19, "Notable", bundle.getString("Significance.Notable.displayName.text")); NOTABLE(19, "Notable", bundle.getString("Significance.Notable.displayName.text"));
private final int id; private final int id;
...@@ -117,10 +125,18 @@ public int getId() { ...@@ -117,10 +125,18 @@ public int getId() {
return id; return id;
} }
/**
* Gets name that has no spaces in it.
* Does not get translated.
*/
public String getName() { public String getName() {
return name; return name;
} }
/**
* Gets display name that may have spaces and can be used in the UI.
* May return a translated version.
*/
public String getDisplayName() { public String getDisplayName() {
return displayName; return displayName;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment