Sleuth Kit Java Bindings (JNI)
4.12.1
Java bindings for using The Sleuth Kit
|
Public Member Functions | |
void | addHostsToPerson (Person person, List< Host > hosts) throws TskCoreException |
void | deletePerson (String name) throws TskCoreException |
List< Host > | getHostsForPerson (Person person) throws TskCoreException |
List< Host > | getHostsWithoutPersons () throws TskCoreException |
Optional< Person > | getPerson (String name) throws TskCoreException |
Optional< Person > | getPerson (long id) throws TskCoreException |
Optional< Person > | getPerson (Host host) throws TskCoreException |
List< Person > | getPersons () throws TskCoreException |
Person | newPerson (String name) throws TskCoreException |
void | removeHostsFromPerson (Person person, List< Host > hosts) throws TskCoreException |
Person | updatePerson (Person person) throws TskCoreException |
Responsible for creating/updating/retrieving Persons.
Definition at line 37 of file PersonManager.java.
void org.sleuthkit.datamodel.PersonManager.addHostsToPerson | ( | Person | person, |
List< Host > | hosts | ||
) | throws TskCoreException |
Adds one or more hosts to a person.
person | The person. |
hosts | The hosts. |
TskCoreException | Thrown if the operation cannot be completed. |
Definition at line 389 of file PersonManager.java.
void org.sleuthkit.datamodel.PersonManager.deletePerson | ( | String | name | ) | throws TskCoreException |
Delete a person. Name comparison is case-insensitive.
name | Name of the person to delete |
TskCoreException |
Definition at line 120 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), org.sleuthkit.datamodel.Person.getPersonId(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().
List<Host> org.sleuthkit.datamodel.PersonManager.getHostsForPerson | ( | Person | person | ) | throws TskCoreException |
Get all hosts associated with the given person.
person | The person. |
TskCoreException | Thrown if there is an issue querying the case database. |
Definition at line 272 of file PersonManager.java.
List<Host> org.sleuthkit.datamodel.PersonManager.getHostsWithoutPersons | ( | ) | throws TskCoreException |
Gets all hosts not associated with any person.
TskCoreException | Thrown if there is an issue querying the case database. |
Definition at line 284 of file PersonManager.java.
Optional<Person> org.sleuthkit.datamodel.PersonManager.getPerson | ( | String | name | ) | throws TskCoreException |
Get person with given name. Name comparison is case-insensitive.
name | Person name to look for. |
TskCoreException |
Definition at line 158 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
Referenced by org.sleuthkit.datamodel.PersonManager.newPerson().
Optional<Person> org.sleuthkit.datamodel.PersonManager.getPerson | ( | long | id | ) | throws TskCoreException |
Get person with given id.
id | Id of the person to look for. |
TskCoreException |
Definition at line 177 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
Optional<Person> org.sleuthkit.datamodel.PersonManager.getPerson | ( | Host | host | ) | throws TskCoreException |
Get person for the given host or empty if no associated person.
host | The host. |
TskCoreException | if error occurs. |
Definition at line 357 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
List<Person> org.sleuthkit.datamodel.PersonManager.getPersons | ( | ) | throws TskCoreException |
Get all persons in the database.
TskCoreException |
Definition at line 58 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseReadLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseReadLock().
Person org.sleuthkit.datamodel.PersonManager.newPerson | ( | String | name | ) | throws TskCoreException |
Create a person with specified name. If a person already exists with the given name, it returns the existing person. Name comparison is case-insensitive.
name | Person name. |
TskCoreException |
Definition at line 207 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), org.sleuthkit.datamodel.PersonManager.getPerson(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().
void org.sleuthkit.datamodel.PersonManager.removeHostsFromPerson | ( | Person | person, |
List< Host > | hosts | ||
) | throws TskCoreException |
Removes one or more hosts from a person.
person | The person. |
hosts | The hosts. |
TskCoreException | Thrown if the operation cannot be completed. |
Definition at line 407 of file PersonManager.java.
Person org.sleuthkit.datamodel.PersonManager.updatePerson | ( | Person | person | ) | throws TskCoreException |
Update the database to match the given Person.
person | The person to update. |
TskCoreException |
Definition at line 88 of file PersonManager.java.
References org.sleuthkit.datamodel.SleuthkitCase.acquireSingleUserCaseWriteLock(), and org.sleuthkit.datamodel.SleuthkitCase.releaseSingleUserCaseWriteLock().
Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.