Commit de38a77632a207938c407710fa6be5cf7bc03f53
1 parent
eb6f0f39
Refactoring of main DeviceRpcService name
Showing
4 changed files
with
10 additions
and
12 deletions
... | ... | @@ -41,7 +41,7 @@ import org.thingsboard.server.extensions.api.exception.ToErrorResponseEntity; |
41 | 41 | import org.thingsboard.server.extensions.api.plugins.PluginConstants; |
42 | 42 | import org.thingsboard.server.common.data.rpc.RpcRequest; |
43 | 43 | import org.thingsboard.server.service.rpc.LocalRequestMetaData; |
44 | -import org.thingsboard.server.service.rpc.RpcService; | |
44 | +import org.thingsboard.server.service.rpc.DeviceRpcService; | |
45 | 45 | import org.thingsboard.server.service.security.AccessValidator; |
46 | 46 | import org.thingsboard.server.service.security.model.SecurityUser; |
47 | 47 | |
... | ... | @@ -66,7 +66,7 @@ public class RpcController extends BaseController { |
66 | 66 | protected final ObjectMapper jsonMapper = new ObjectMapper(); |
67 | 67 | |
68 | 68 | @Autowired |
69 | - private RpcService rpcService; | |
69 | + private DeviceRpcService deviceRpcService; | |
70 | 70 | |
71 | 71 | @Autowired |
72 | 72 | private AccessValidator accessValidator; |
... | ... | @@ -124,7 +124,7 @@ public class RpcController extends BaseController { |
124 | 124 | timeout, |
125 | 125 | body |
126 | 126 | ); |
127 | - rpcService.process(rpcRequest, new LocalRequestMetaData(rpcRequest, currentUser, response)); | |
127 | + deviceRpcService.process(rpcRequest, new LocalRequestMetaData(rpcRequest, currentUser, response)); | |
128 | 128 | } |
129 | 129 | |
130 | 130 | @Override |
... | ... | @@ -135,7 +135,7 @@ public class RpcController extends BaseController { |
135 | 135 | } else { |
136 | 136 | entity = new ResponseEntity(HttpStatus.UNAUTHORIZED); |
137 | 137 | } |
138 | - rpcService.logRpcCall(currentUser, deviceId, body, oneWay, Optional.empty(), e); | |
138 | + deviceRpcService.logRpcCall(currentUser, deviceId, body, oneWay, Optional.empty(), e); | |
139 | 139 | response.setResult(entity); |
140 | 140 | } |
141 | 141 | }); | ... | ... |
application/src/main/java/org/thingsboard/server/service/rpc/DefaultDeviceRpcService.java
renamed from
application/src/main/java/org/thingsboard/server/service/rpc/DefaultRpcService.java
... | ... | @@ -18,7 +18,6 @@ package org.thingsboard.server.service.rpc; |
18 | 18 | import com.fasterxml.jackson.databind.ObjectMapper; |
19 | 19 | import lombok.extern.slf4j.Slf4j; |
20 | 20 | import org.springframework.beans.factory.annotation.Autowired; |
21 | -import org.springframework.http.HttpEntity; | |
22 | 21 | import org.springframework.http.HttpStatus; |
23 | 22 | import org.springframework.http.ResponseEntity; |
24 | 23 | import org.springframework.stereotype.Service; |
... | ... | @@ -34,7 +33,6 @@ import org.thingsboard.server.common.msg.cluster.ServerAddress; |
34 | 33 | import org.thingsboard.server.common.msg.rpc.ToDeviceRpcRequest; |
35 | 34 | import org.thingsboard.server.controller.BaseController; |
36 | 35 | import org.thingsboard.server.dao.audit.AuditLogService; |
37 | -import org.thingsboard.server.extensions.api.plugins.PluginContext; | |
38 | 36 | import org.thingsboard.server.extensions.api.plugins.msg.FromDeviceRpcResponse; |
39 | 37 | import org.thingsboard.server.extensions.api.plugins.msg.RpcError; |
40 | 38 | import org.thingsboard.server.service.cluster.routing.ClusterRoutingService; |
... | ... | @@ -58,7 +56,7 @@ import java.util.function.BiConsumer; |
58 | 56 | */ |
59 | 57 | @Service |
60 | 58 | @Slf4j |
61 | -public class DefaultRpcService implements RpcService { | |
59 | +public class DefaultDeviceRpcService implements DeviceRpcService { | |
62 | 60 | |
63 | 61 | private static final ObjectMapper jsonMapper = new ObjectMapper(); |
64 | 62 | ... | ... |
application/src/main/java/org/thingsboard/server/service/rpc/DeviceRpcService.java
renamed from
application/src/main/java/org/thingsboard/server/service/rpc/RpcService.java
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/action/TbAlarmNode.java
1 | 1 | /** |
2 | 2 | * Copyright © 2016-2018 The Thingsboard Authors |
3 | - * <p> | |
3 | + * | |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
6 | 6 | * You may obtain a copy of the License at |
7 | - * <p> | |
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | - * <p> | |
7 | + * | |
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | + * | |
10 | 10 | * Unless required by applicable law or agreed to in writing, software |
11 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ... | ... |