|
|
@ -164,14 +164,15 @@ public class DeviceManagementPluginRepository implements DeviceManagerStartupLis
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void notifyObserver() {
|
|
|
|
public void notifyObserver() {
|
|
|
|
|
|
|
|
String deviceTypeName;
|
|
|
|
synchronized (providers) {
|
|
|
|
synchronized (providers) {
|
|
|
|
for (DeviceManagementService provider : providers.values()) {
|
|
|
|
for (DeviceManagementService provider : providers.values()) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
provider.init();
|
|
|
|
provider.init();
|
|
|
|
|
|
|
|
deviceTypeName = provider.getType().toLowerCase();
|
|
|
|
ProvisioningConfig provisioningConfig = provider.getProvisioningConfig();
|
|
|
|
ProvisioningConfig provisioningConfig = provider.getProvisioningConfig();
|
|
|
|
int tenantId = DeviceManagerUtil.getTenantId(provisioningConfig.getProviderTenantDomain());
|
|
|
|
int tenantId = DeviceManagerUtil.getTenantId(provisioningConfig.getProviderTenantDomain());
|
|
|
|
DeviceManagerUtil.registerDeviceType(provider.getType(), tenantId, provisioningConfig.isSharedWithAllTenants());
|
|
|
|
DeviceManagerUtil.registerDeviceType(deviceTypeName, tenantId, provisioningConfig.isSharedWithAllTenants());
|
|
|
|
registerPushNotificationStrategy(provider);
|
|
|
|
registerPushNotificationStrategy(provider);
|
|
|
|
//TODO:
|
|
|
|
//TODO:
|
|
|
|
//This is a temporory fix.
|
|
|
|
//This is a temporory fix.
|
|
|
|