19 package org.sleuthkit.autopsy.casemodule.events;
21 import java.util.ArrayList;
22 import java.util.List;
23 import java.util.Optional;
44 HostsEvent(String eventName, List<Host> hosts) {
45 super(eventName, null, null, hosts, Host::getHostId);
58 protected List<Host>
getNewValueObjects(SleuthkitCase caseDb, List<Long> ids)
throws TskCoreException {
59 List<Host> hosts =
new ArrayList<>();
61 Optional<Host> host = caseDb.getHostManager().getHostById(
id);
62 if (host.isPresent()) {
63 hosts.add(host.get());
List< Host > getNewValueObjects(SleuthkitCase caseDb, List< Long > ids)
static final long serialVersionUID