Merge pull request #7801 from dashevchenko/addedDeviceProfileServiceToTbContext
[3.4.3] Added DeviceProfileService and AssetProfileService to TBContext
This commit is contained in:
commit
985b985265
@ -50,6 +50,7 @@ import org.thingsboard.server.common.msg.queue.ServiceType;
|
||||
import org.thingsboard.server.common.msg.queue.TopicPartitionInfo;
|
||||
import org.thingsboard.server.common.msg.tools.TbRateLimits;
|
||||
import org.thingsboard.server.common.stats.TbApiUsageReportClient;
|
||||
import org.thingsboard.server.dao.asset.AssetProfileService;
|
||||
import org.thingsboard.server.dao.asset.AssetService;
|
||||
import org.thingsboard.server.dao.attributes.AttributesService;
|
||||
import org.thingsboard.server.dao.audit.AuditLogService;
|
||||
@ -58,6 +59,7 @@ import org.thingsboard.server.dao.customer.CustomerService;
|
||||
import org.thingsboard.server.dao.dashboard.DashboardService;
|
||||
import org.thingsboard.server.dao.device.ClaimDevicesService;
|
||||
import org.thingsboard.server.dao.device.DeviceCredentialsService;
|
||||
import org.thingsboard.server.dao.device.DeviceProfileService;
|
||||
import org.thingsboard.server.dao.device.DeviceService;
|
||||
import org.thingsboard.server.dao.edge.EdgeEventService;
|
||||
import org.thingsboard.server.dao.edge.EdgeService;
|
||||
@ -176,6 +178,14 @@ public class ActorSystemContext {
|
||||
@Getter
|
||||
private DeviceService deviceService;
|
||||
|
||||
@Autowired
|
||||
@Getter
|
||||
private DeviceProfileService deviceProfileService;
|
||||
|
||||
@Autowired
|
||||
@Getter
|
||||
private AssetProfileService assetProfileService;
|
||||
|
||||
@Autowired
|
||||
@Getter
|
||||
private DeviceCredentialsService deviceCredentialsService;
|
||||
|
||||
@ -71,12 +71,14 @@ import org.thingsboard.server.common.msg.TbMsgMetaData;
|
||||
import org.thingsboard.server.common.msg.TbMsgProcessingStackItem;
|
||||
import org.thingsboard.server.common.msg.queue.ServiceType;
|
||||
import org.thingsboard.server.common.msg.queue.TopicPartitionInfo;
|
||||
import org.thingsboard.server.dao.asset.AssetProfileService;
|
||||
import org.thingsboard.server.dao.asset.AssetService;
|
||||
import org.thingsboard.server.dao.attributes.AttributesService;
|
||||
import org.thingsboard.server.dao.cassandra.CassandraCluster;
|
||||
import org.thingsboard.server.dao.customer.CustomerService;
|
||||
import org.thingsboard.server.dao.dashboard.DashboardService;
|
||||
import org.thingsboard.server.dao.device.DeviceCredentialsService;
|
||||
import org.thingsboard.server.dao.device.DeviceProfileService;
|
||||
import org.thingsboard.server.dao.device.DeviceService;
|
||||
import org.thingsboard.server.dao.edge.EdgeEventService;
|
||||
import org.thingsboard.server.dao.edge.EdgeService;
|
||||
@ -559,6 +561,16 @@ class DefaultTbContext implements TbContext {
|
||||
return mainCtx.getDeviceService();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceProfileService getDeviceProfileService() {
|
||||
return mainCtx.getDeviceProfileService();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AssetProfileService getAssetProfileService() {
|
||||
return mainCtx.getAssetProfileService();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceCredentialsService getDeviceCredentialsService() {
|
||||
return mainCtx.getDeviceCredentialsService();
|
||||
|
||||
@ -42,12 +42,14 @@ import org.thingsboard.server.common.data.rule.RuleNodeState;
|
||||
import org.thingsboard.server.common.data.script.ScriptLanguage;
|
||||
import org.thingsboard.server.common.msg.TbMsg;
|
||||
import org.thingsboard.server.common.msg.TbMsgMetaData;
|
||||
import org.thingsboard.server.dao.asset.AssetProfileService;
|
||||
import org.thingsboard.server.dao.asset.AssetService;
|
||||
import org.thingsboard.server.dao.attributes.AttributesService;
|
||||
import org.thingsboard.server.dao.cassandra.CassandraCluster;
|
||||
import org.thingsboard.server.dao.customer.CustomerService;
|
||||
import org.thingsboard.server.dao.dashboard.DashboardService;
|
||||
import org.thingsboard.server.dao.device.DeviceCredentialsService;
|
||||
import org.thingsboard.server.dao.device.DeviceProfileService;
|
||||
import org.thingsboard.server.dao.device.DeviceService;
|
||||
import org.thingsboard.server.dao.edge.EdgeEventService;
|
||||
import org.thingsboard.server.dao.edge.EdgeService;
|
||||
@ -223,6 +225,10 @@ public interface TbContext {
|
||||
|
||||
DeviceService getDeviceService();
|
||||
|
||||
DeviceProfileService getDeviceProfileService();
|
||||
|
||||
AssetProfileService getAssetProfileService();
|
||||
|
||||
DeviceCredentialsService getDeviceCredentialsService();
|
||||
|
||||
TbClusterService getClusterService();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user