|
|
@ -40,6 +40,7 @@ import org.thingsboard.server.dao.dashboard.DashboardService; |
|
|
import org.thingsboard.server.dao.device.DeviceProfileService; |
|
|
import org.thingsboard.server.dao.device.DeviceProfileService; |
|
|
import org.thingsboard.server.dao.device.DeviceService; |
|
|
import org.thingsboard.server.dao.device.DeviceService; |
|
|
import org.thingsboard.server.dao.entity.AbstractCachedEntityService; |
|
|
import org.thingsboard.server.dao.entity.AbstractCachedEntityService; |
|
|
|
|
|
import org.thingsboard.server.dao.notification.NotificationSettingsService; |
|
|
import org.thingsboard.server.dao.ota.OtaPackageService; |
|
|
import org.thingsboard.server.dao.ota.OtaPackageService; |
|
|
import org.thingsboard.server.dao.queue.QueueService; |
|
|
import org.thingsboard.server.dao.queue.QueueService; |
|
|
import org.thingsboard.server.dao.resource.ResourceService; |
|
|
import org.thingsboard.server.dao.resource.ResourceService; |
|
|
@ -123,6 +124,9 @@ public class TenantServiceImpl extends AbstractCachedEntityService<TenantId, Ten |
|
|
@Autowired |
|
|
@Autowired |
|
|
private AdminSettingsService adminSettingsService; |
|
|
private AdminSettingsService adminSettingsService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private NotificationSettingsService notificationSettingsService; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
protected TbTransactionalCache<TenantId, Boolean> existsTenantCache; |
|
|
protected TbTransactionalCache<TenantId, Boolean> existsTenantCache; |
|
|
|
|
|
|
|
|
@ -175,6 +179,7 @@ public class TenantServiceImpl extends AbstractCachedEntityService<TenantId, Ten |
|
|
deviceProfileService.createDefaultDeviceProfile(savedTenant.getId()); |
|
|
deviceProfileService.createDefaultDeviceProfile(savedTenant.getId()); |
|
|
assetProfileService.createDefaultAssetProfile(savedTenant.getId()); |
|
|
assetProfileService.createDefaultAssetProfile(savedTenant.getId()); |
|
|
apiUsageStateService.createDefaultApiUsageState(savedTenant.getId(), null); |
|
|
apiUsageStateService.createDefaultApiUsageState(savedTenant.getId(), null); |
|
|
|
|
|
notificationSettingsService.createDefaultNotificationConfigs(savedTenant.getId()); |
|
|
} |
|
|
} |
|
|
return savedTenant; |
|
|
return savedTenant; |
|
|
} |
|
|
} |
|
|
|