19 package org.sleuthkit.autopsy.casemodule.events;
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24 import java.util.Optional;
69 protected List<Person>
getOldValueObjects(SleuthkitCase caseDb, List<Long> ids)
throws TskCoreException {
70 List<Person> persons =
new ArrayList<>();
72 Optional<Person> person = caseDb.getPersonManager().getPerson(
id);
73 if (person.isPresent()) {
74 persons.add(person.get());
81 protected List<Host>
getNewValueObjects(SleuthkitCase caseDb, List<Long> ids)
throws TskCoreException {
82 List<Host> hosts =
new ArrayList<>();
84 Optional<Host> host = caseDb.getHostManager().getHostById(
id);
85 if (host.isPresent()) {
86 hosts.add(host.get());
List< Person > getOldValueObjects(SleuthkitCase caseDb, List< Long > ids)
static final long serialVersionUID
List< Host > getNewValueObjects(SleuthkitCase caseDb, List< Long > ids)
HostsAddedToPersonEvent(Person person, List< Host > hosts)