Skip to content
Snippets Groups Projects
Commit 7db3c624 authored by apriestman's avatar apriestman
Browse files

Revert testing changes

parent 3c18e023
Branches
Tags
No related merge requests found
...@@ -515,8 +515,6 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection ...@@ -515,8 +515,6 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection
TimelineEventType.FILE_ACCESSED, file.getAtime(), TimelineEventType.FILE_ACCESSED, file.getAtime(),
TimelineEventType.FILE_CHANGED, file.getCtime(), TimelineEventType.FILE_CHANGED, file.getCtime(),
TimelineEventType.FILE_MODIFIED, file.getMtime()); TimelineEventType.FILE_MODIFIED, file.getMtime());
List<TimelineEventType> tempList = ImmutableList.of(TimelineEventType.FILE_MODIFIED,
TimelineEventType.FILE_ACCESSED, TimelineEventType.FILE_CREATED, TimelineEventType.FILE_CHANGED);
/* /*
* If there are no legitimate ( greater than zero ) time stamps skip the * If there are no legitimate ( greater than zero ) time stamps skip the
...@@ -534,9 +532,10 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection ...@@ -534,9 +532,10 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection
long descriptionID = addEventDescription(file.getDataSourceObjectId(), fileObjId, null, long descriptionID = addEventDescription(file.getDataSourceObjectId(), fileObjId, null,
description, null, null, false, false, connection); description, null, null, false, false, connection);
for (TimelineEventType type : tempList) { for (Map.Entry<TimelineEventType, Long> timeEntry : timeMap.entrySet()) {
Long time = timeMap.get(type); Long time = timeEntry.getValue();
if (time > 0 && time < MAX_TIMESTAMP_TO_ADD) {// if the time is legitimate ( greater than zero and less then 12 years from current date) insert it if (time > 0 && time < MAX_TIMESTAMP_TO_ADD) {// if the time is legitimate ( greater than zero and less then 12 years from current date) insert it
TimelineEventType type = timeEntry.getKey();
long eventID = addEventWithExistingDescription(time, type, descriptionID, connection); long eventID = addEventWithExistingDescription(time, type, descriptionID, connection);
/* /*
...@@ -548,7 +547,7 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection ...@@ -548,7 +547,7 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection
description, null, null, false, false)); description, null, null, false, false));
} else { } else {
if (time >= MAX_TIMESTAMP_TO_ADD) { if (time >= MAX_TIMESTAMP_TO_ADD) {
//logger.log(Level.WARNING, String.format("Date/Time discarded from Timeline for %s for file %s with Id %d", timeEntry.getKey().getDisplayName(), file.getParentPath() + file.getName(), file.getId())); logger.log(Level.WARNING, String.format("Date/Time discarded from Timeline for %s for file %s with Id %d", timeEntry.getKey().getDisplayName(), file.getParentPath() + file.getName(), file.getId()));
} }
} }
} }
...@@ -558,7 +557,7 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection ...@@ -558,7 +557,7 @@ Set<TimelineEvent> addEventsForNewFileQuiet(AbstractFile file, CaseDbConnection
} }
return events; return events;
} }
/** /**
* Add any events that can be created from the given Artifact. If the * Add any events that can be created from the given Artifact. If the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment