mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-06 02:24:30 +00:00
i. Changed access specifier on casemodule.Case.addImage() to public, so other modules can access it
to display a newly added image in the UI. ii. Fixed the names of icons in HTML report to go with the recent renaming of some Web artifacts.
This commit is contained in:
@@ -326,7 +326,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
||||
* @param imgId the ID of the image that being added
|
||||
* @param timeZone the timeZone of the image where it's added
|
||||
*/
|
||||
Image addImage(String imgPath, long imgId, String timeZone) throws CaseActionException {
|
||||
public Image addImage(String imgPath, long imgId, String timeZone) throws CaseActionException {
|
||||
logger.log(Level.INFO, "Adding image to Case. imgPath: {0} ID: {1} TimeZone: {2}", new Object[]{imgPath, imgId, timeZone});
|
||||
|
||||
try {
|
||||
|
||||
@@ -669,13 +669,13 @@ public class ReportHTML implements TableReportModule {
|
||||
output.close();
|
||||
|
||||
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/bookmarks.png");
|
||||
output = new FileOutputStream(new File(path + File.separator + "Bookmarks.png"));
|
||||
output = new FileOutputStream(new File(path + File.separator + "Web Bookmarks.png"));
|
||||
FileUtil.copy(in, output);
|
||||
in.close();
|
||||
output.close();
|
||||
|
||||
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/cookies.png");
|
||||
output = new FileOutputStream(new File(path + File.separator + "Cookies.png"));
|
||||
output = new FileOutputStream(new File(path + File.separator + "Web Cookies.png"));
|
||||
FileUtil.copy(in, output);
|
||||
in.close();
|
||||
output.close();
|
||||
@@ -687,13 +687,13 @@ public class ReportHTML implements TableReportModule {
|
||||
output.close();
|
||||
|
||||
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/downloads.png");
|
||||
output = new FileOutputStream(new File(path + File.separator + "Downloads.png"));
|
||||
output = new FileOutputStream(new File(path + File.separator + "Web Downloads.png"));
|
||||
FileUtil.copy(in, output);
|
||||
in.close();
|
||||
output.close();
|
||||
|
||||
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/search.png");
|
||||
output = new FileOutputStream(new File(path + File.separator + "Web Search Engine Queries.png"));
|
||||
output = new FileOutputStream(new File(path + File.separator + "Web Search.png"));
|
||||
FileUtil.copy(in, output);
|
||||
in.close();
|
||||
output.close();
|
||||
|
||||
Reference in New Issue
Block a user