Implement multi account commands for dbus client

This commit is contained in:
AsamK 2021-12-31 18:17:32 +01:00
parent 00cda598c8
commit 805f976d9e
12 changed files with 335 additions and 29 deletions

View file

@ -20,8 +20,6 @@ public interface MultiAccountManager extends AutoCloseable {
ProvisioningManager getProvisioningManagerFor(URI deviceLinkUri);
ProvisioningManager getNewProvisioningManager();
RegistrationManager getNewRegistrationManager(String account) throws IOException;
@Override

View file

@ -111,8 +111,7 @@ public class MultiAccountManagerImpl implements MultiAccountManager {
return provisioningManagers.remove(deviceLinkUri);
}
@Override
public ProvisioningManager getNewProvisioningManager() {
private ProvisioningManager getNewProvisioningManager() {
return ProvisioningManager.init(dataPath, serviceEnvironment, userAgent, this::addManager);
}

View file

@ -243,7 +243,7 @@ public class RegistrationManagerImpl implements RegistrationManager {
}
@Override
public void close() throws IOException {
public void close() {
if (account != null) {
account.close();
account = null;