Change getAccounts calls to getOsAccounts so Autopsy builds

This commit is contained in:
William Schaefer 2021-03-29 17:30:09 -04:00
parent 7428b06bcc
commit 11ddee1c72
2 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ final class ExtractRecycleBin extends Extract {
private Map<String, String> makeUserNameMap(Content dataSource) throws TskCoreException { private Map<String, String> makeUserNameMap(Content dataSource) throws TskCoreException {
Map<String, String> userNameMap = new HashMap<>(); Map<String, String> userNameMap = new HashMap<>();
for(OsAccount account: tskCase.getOsAccountManager().getAccounts(((DataSource)dataSource).getHost())) { for(OsAccount account: tskCase.getOsAccountManager().getOsAccounts(((DataSource)dataSource).getHost())) {
Optional<String> userName = account.getLoginName(); Optional<String> userName = account.getLoginName();
userNameMap.put(account.getName(), userName.isPresent() ? userName.get() : ""); userNameMap.put(account.getName(), userName.isPresent() ? userName.get() : "");
} }

View File

@ -1716,7 +1716,7 @@ class ExtractRegistry extends Extract {
private Map<String, String> makeUserNameMap(Content dataSource) throws TskCoreException { private Map<String, String> makeUserNameMap(Content dataSource) throws TskCoreException {
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
for(OsAccount account: tskCase.getOsAccountManager().getAccounts(((DataSource)dataSource).getHost())) { for(OsAccount account: tskCase.getOsAccountManager().getOsAccounts(((DataSource)dataSource).getHost())) {
Optional<String> userName = account.getLoginName(); Optional<String> userName = account.getLoginName();
map.put(account.getName(), userName.isPresent() ? userName.get() : ""); map.put(account.getName(), userName.isPresent() ? userName.get() : "");
} }