Go to the documentation of this file.
19package org.sleuthkit.autopsy.casemodule.events;
21import java.util.ArrayList;
23import java.util.Optional;
24import org.sleuthkit.datamodel.Host;
25import org.sleuthkit.datamodel.SleuthkitCase;
26import org.sleuthkit.datamodel.TskCoreException;
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());
static final long serialVersionUID
List< Host > getNewValueObjects(SleuthkitCase caseDb, List< Long > ids)
TskDataModelChangedEvent(String eventName, List< T > oldValueObjects, Function< T, Long > oldValueGetIdMethod, List< U > newValueObjects, Function< U, Long > newValueGetIdMethod)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.