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.Person;
25import org.sleuthkit.datamodel.SleuthkitCase;
26import org.sleuthkit.datamodel.TskCoreException;
45 PersonsEvent(String eventName, List<Person> persons) {
46 super(eventName,
null,
null, persons, Person::getPersonId);
59 protected List<Person>
getNewValueObjects(SleuthkitCase caseDb, List<Long> ids)
throws TskCoreException {
60 List<Person> persons =
new ArrayList<>();
62 Optional<Person> person = caseDb.getPersonManager().getPerson(
id);
63 if (person.isPresent()) {
64 persons.add(person.get());
List< Person > getNewValueObjects(SleuthkitCase caseDb, List< Long > ids)
static final long serialVersionUID
List< Person > getPersons()
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.