mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
rename event enums/classes to specify that they are Timeline related
This commit is contained in:
parent
d2abd39e38
commit
11b9c72828
@ -109,7 +109,7 @@ import org.sleuthkit.autopsy.progress.LoggingProgressIndicator;
|
|||||||
import org.sleuthkit.autopsy.progress.ModalDialogProgressIndicator;
|
import org.sleuthkit.autopsy.progress.ModalDialogProgressIndicator;
|
||||||
import org.sleuthkit.autopsy.progress.ProgressIndicator;
|
import org.sleuthkit.autopsy.progress.ProgressIndicator;
|
||||||
import org.sleuthkit.autopsy.timeline.OpenTimelineAction;
|
import org.sleuthkit.autopsy.timeline.OpenTimelineAction;
|
||||||
import org.sleuthkit.autopsy.timeline.events.EventAddedEvent;
|
import org.sleuthkit.autopsy.timeline.events.TimelineEventAddedEvent;
|
||||||
import org.sleuthkit.datamodel.Blackboard;
|
import org.sleuthkit.datamodel.Blackboard;
|
||||||
import org.sleuthkit.datamodel.BlackboardArtifact;
|
import org.sleuthkit.datamodel.BlackboardArtifact;
|
||||||
import org.sleuthkit.datamodel.BlackboardArtifactTag;
|
import org.sleuthkit.datamodel.BlackboardArtifactTag;
|
||||||
@ -382,13 +382,14 @@ public class Case {
|
|||||||
*/
|
*/
|
||||||
TAG_DEFINITION_CHANGED,
|
TAG_DEFINITION_CHANGED,
|
||||||
/**
|
/**
|
||||||
* An event, such mac time or web activity was added to the current
|
* An timeline event, such mac time or web activity was added to the current
|
||||||
* case. The old value is null and the new value is the SingleEvent that
|
* case. The old value is null and the new value is the TimelineEvent
|
||||||
* was added.
|
* that was added.
|
||||||
|
*/
|
||||||
*/ EVENT_ADDED,
|
TIMELINE_EVENT_ADDED,
|
||||||
/* An item in the central repository has had its comment modified. The
|
/* An item in the central repository has had its comment
|
||||||
* old value is null, the new value is string for current comment.
|
* modified. The old value is null, the new value is string for current
|
||||||
|
* comment.
|
||||||
*/
|
*/
|
||||||
CR_COMMENT_CHANGED;
|
CR_COMMENT_CHANGED;
|
||||||
|
|
||||||
@ -398,7 +399,7 @@ public class Case {
|
|||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void rebroadcastTimelineEventCreated(TimelineManager.EventAddedEvent event) {
|
public void rebroadcastTimelineEventCreated(TimelineManager.EventAddedEvent event) {
|
||||||
eventPublisher.publish(new EventAddedEvent(event));
|
eventPublisher.publish(new TimelineEventAddedEvent(event));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
@ -1576,11 +1577,13 @@ public class Case {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies case event subscribers that a central repository comment has been changed.
|
* Notifies case event subscribers that a central repository comment has
|
||||||
|
* been changed.
|
||||||
*
|
*
|
||||||
* This should not be called from the event dispatch thread (EDT)
|
* This should not be called from the event dispatch thread (EDT)
|
||||||
*
|
*
|
||||||
* @param contentId the objectId for the Content which has had its central repo comment changed
|
* @param contentId the objectId for the Content which has had its central
|
||||||
|
* repo comment changed
|
||||||
* @param newComment the new value of the comment
|
* @param newComment the new value of the comment
|
||||||
*/
|
*/
|
||||||
public void notifyCentralRepoCommentChanged(long contentId, String newComment) {
|
public void notifyCentralRepoCommentChanged(long contentId, String newComment) {
|
||||||
|
@ -775,7 +775,7 @@ public class TimeLineController {
|
|||||||
//close timeline on case changes.
|
//close timeline on case changes.
|
||||||
SwingUtilities.invokeLater(TimeLineController.this::shutDownTimeLine);
|
SwingUtilities.invokeLater(TimeLineController.this::shutDownTimeLine);
|
||||||
break;
|
break;
|
||||||
case EVENT_ADDED:
|
case TIMELINE_EVENT_ADDED:
|
||||||
executor.submit(filteredEvents::invalidateAllCaches);
|
executor.submit(filteredEvents::invalidateAllCaches);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,9 @@ import org.sleuthkit.autopsy.events.AutopsyEvent;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class EventAddedEvent extends AutopsyEvent {
|
public class TimelineEventAddedEvent extends AutopsyEvent {
|
||||||
|
|
||||||
public EventAddedEvent(org.sleuthkit.datamodel.TimelineManager.EventAddedEvent event) {
|
public TimelineEventAddedEvent(org.sleuthkit.datamodel.TimelineManager.EventAddedEvent event) {
|
||||||
super(Case.Events.EVENT_ADDED.name(), null, event.getEvent());
|
super(Case.Events.TIMELINE_EVENT_ADDED.name(), null, event.getAddedEvent());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user